Please fix
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Please fix’ is closed to new replies.