WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
Suggested code: Larger item limit and improved search (1 post)

  1. FlashUK
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by FlashUK
  • This topic is not a support question
  • WordPress version: 3.1.4