WordPress.org

Make WordPress Core

Ticket #16238: 16238.3.diff

File 16238.3.diff, 684 bytes (added by nacin, 5 years ago)
  • wp-admin/includes/template.php

     
    16611661 */ 
    16621662function convert_to_screen( $screen ) { 
    16631663        $screen = str_replace( array('.php', '-new', '-add' ), '', $screen); 
     1664 
     1665        if ( is_network_admin() && substr( $screen, -8 ) != '-network' ) 
     1666                $screen .= '-network'; 
     1667        elseif ( is_user_admin() && substr( $screen, -5 ) != '-user' ) 
     1668                $screen .= '-user'; 
     1669 
    16641670        $screen = (string) apply_filters( 'screen_meta_screen', $screen ); 
    16651671        $screen = (object) array('id' => $screen, 'base' => $screen); 
    16661672        return $screen;