Title: contributing source?
Last modified: August 21, 2016

---

# contributing source?

 *  [yivi](https://wordpress.org/support/users/yivi/)
 * (@yivi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/contributing-source/)
 * Line 373 is:
 *     ```
       } elseif( $_GET[ 'action' ] == 'delete' ) {
       ```
   
 * But should be:
 *     ```
       } elseif( isset( $_GET[ 'action' ] ) && $_GET[ 'action' ] == 'delete' ) {
       ```
   
 * And in line 447 you have:
 *     ```
       $domains[] = array( 'domain' => $orig_url[ 'host' ], 'path' => $orig_url['path'], 'active' => 0 );
       ```
   
 * Which could be rewritten as this to avoid Notices when path is empty (e.g, the
   site is hosted at root):
 *     ```
       $domains[] = array( 'domain' => $orig_url[ 'host' ], 'path' => isset($orig_url[ 'path' ])?$orig_url['path'] : '', 'active' => 0 );
       ```
   
 * Also, in line 462 you have
 *     ```
       $url = "{$protocol}{$details[ 'domain' ]}{$deatils['path']}";
       ```
   
 * Which can trigger a E_NOTICE as well, same as before, and I replaced with:
 *     ```
       $path = isset($details['path']) ? $details['path'] : "";
       $url = "{$protocol}{$details[ 'domain' ]}$path";
       ```
   
 * I couldn’t find where to contribute code, the SVN tree seems to be read only,
   or am I failing to understand something?
 * Regards!
 * I.-
 * (Otherwise you get a notice when entering “Domain Mapping” from one of the Sites(
   as opposed to when you enter from Network Admin).
 * Thanks and regards!
 * [http://wordpress.org/plugins/wordpress-mu-domain-mapping/](http://wordpress.org/plugins/wordpress-mu-domain-mapping/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/contributing-source/#post-4196780)
 * > the SVN tree seems to be read only
 * That’s correct. There isn’t any way for you to directly update plugin code in
   the WP.org repo unless you are owner of the plugin in question or if the owner
   of the plugin has given you update access.

Viewing 1 replies (of 1 total)

The topic ‘contributing source?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/contributing-source/#post-4196780)
 * Status: not resolved