WordPress.org

Make WordPress Core

Changeset 17356


Ignore:
Timestamp:
01/24/11 04:16:55 (3 years ago)
Author:
markjaquith
Message:

Make sure we don't double-add -user or -network suffixes in convert_to_screen(). props SergeyBiryukov. fixes #16348

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r17337 r17356  
    16611661 */ 
    16621662function convert_to_screen( $screen ) { 
    1663     $screen = str_replace( array('.php', '-new', '-add' ), '', $screen); 
     1663    $screen = str_replace( array('.php', '-new', '-add', '-network', '-user' ), '', $screen); 
    16641664 
    16651665    if ( is_network_admin() ) 
Note: See TracChangeset for help on using the changeset viewer.