Make WordPress Core


Ignore:
Timestamp:
10/11/2011 09:45:28 PM (14 years ago)
Author:
nacin
Message:

Restore $screen argument for contextual_help* filters. see #18785.

File:
1 edited

Legend:

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

    r18943 r18945  
    663663
    664664        // Call old contextual_help_list filter.
    665         self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help );
     665        self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help, $this );
    666666
    667667        if ( isset( self::$_old_compat_help[ $this->id ] ) || empty(self::$_help_tabs[ $this->id ] ) ) {
    668668            // Call old contextual_help filter.
    669669            if ( isset( self::$_old_compat_help[ $this->id ] ) )
    670                 $contextual_help = apply_filters( 'contextual_help', self::$_old_compat_help[ $this->id ], $this->id );
     670                $contextual_help = apply_filters( 'contextual_help', self::$_old_compat_help[ $this->id ], $this->id, $this );
    671671
    672672            if ( empty( $contextual_help ) ) {
Note: See TracChangeset for help on using the changeset viewer.