Make WordPress Core

Changeset 18950


Ignore:
Timestamp:
10/12/2011 04:24:55 PM (13 years ago)
Author:
nacin
Message:

Restore object handling in add_contextual_help(). see #18785.

File:
1 edited

Legend:

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

    r18949 r18950  
    249249 */
    250250function add_contextual_help( $screen, $help ) {
    251     WP_Screen::add_old_compat_help( $screen, $help );
     251    if ( is_string( $screen ) )
     252        $screen = convert_to_screen( $screen );
     253
     254    WP_Screen::add_old_compat_help( $screen->id, $help );
    252255}
    253256
Note: See TracChangeset for help on using the changeset viewer.