WordPress.org

Ready to get started?Download WordPress

Forums

Edit to get_editable_authors() in admin-db.php (1 post)

  1. Jon Bourne
    Member
    Posted 8 years ago #

    I have made this change on line 37 of admin-db.php that may be of use to others.

    $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );

    Added " ORDER BY display_name" to the SQL query to sort the results by display name. When a blog has a long list of authors, such as at a newspaper, where I work, selecting an author is cumbersome when the list of authors is sorted by ID.

Topic Closed

This topic has been closed to new replies.

About this Topic