• Save of Domains is not working. Please fix issue:

    Line 150 change of the save function:

    			case "save":
    				if ( isset( $_POST[ 'blog_id' ] ) ) {
    					$orig_domain = isset( $_POST[ 'orig_domain' ] ) ? $_POST[ 'orig_domain' ] : '';
    					$active = isset( $_POST[ 'active' ] ) ? $_POST[ 'active' ] : '';
    
    					if ( $orig_domain == '' ) {
    						$wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->dmtable} ( <code>blog_id</code>, <code>domain</code>, <code>active</code> ) VALUES ( %d, %s, %d )", $_POST[ 'blog_id' ], $domain, $active ) );
    						echo "<p><strong>" . __( 'Domain Add', 'wordpress-mu-domain-mapping' ) . "</strong></p>";
    					} else {
    						$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->dmtable} SET blog_id = %d, domain = %s, active = %d WHERE domain = %s", $_POST[ 'blog_id' ], $domain, $active, $orig_domain ) );
    						echo "<p><strong>" . __( 'Domain Updated', 'wordpress-mu-domain-mapping' ) . "</strong></p>";
    					}
    				}
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    Can you clarify what the issue is?

    Thread Starter Stefan M.

    (@stefan-m-1)

    Settings -> Domains

    When I add a new domain and an ID, press save, nothing happens. It is not stored into the database.
    With the fix, it does save again.

    I do have this issue on all installations.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please fix’ is closed to new replies.