WordPress.org

Make WordPress Core

Changeset 17318


Ignore:
Timestamp:
01/16/11 05:38:44 (5 years ago)
Author:
markjaquith
Message:

Append -network or -user suffix in convert_to_screen(). props kawauso. fixes #16238

File:
1 edited

Legend:

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

    r17309 r17318  
    16621662function convert_to_screen( $screen ) { 
    16631663    $screen = str_replace( array('.php', '-new', '-add' ), '', $screen); 
     1664 
     1665    if ( is_network_admin() ) 
     1666        $screen .= '-network'; 
     1667    elseif ( is_user_admin() ) 
     1668        $screen .= '-user'; 
     1669 
    16641670    $screen = (string) apply_filters( 'screen_meta_screen', $screen ); 
    16651671    $screen = (object) array('id' => $screen, 'base' => $screen); 
Note: See TracChangeset for help on using the changeset viewer.