Support » Plugin: WordPress MU Domain Mapping » Suggested code: Larger item limit and improved search

  • Hi,

    Just making a note, just made minor changes to the plugin myself to improve the admin panel.

    We have more than 20 domains mapped, so I had to alter the limit.
    Line 203: $rows = $wpdb->get_results( "SELECT * FROM {$wpdb->dmtable} ORDER BY id DESC LIMIT 0,200" );

    And improved the search to use keywords rather than an exact match:
    Line 178: $rows = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->dmtable} WHERE domain LIKE '%%%s%%'", $_POST[ 'domain' ] ) );

    These are just quick improvements. Thanks for making a panel in the first place 🙂

    Keep up the good work!

  • The topic ‘Suggested code: Larger item limit and improved search’ is closed to new replies.