From beb1613be77df417d58aa2f5aaf3225d52764de0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 11 Oct 2011 21:45:28 +0000 Subject: [PATCH] Restore $screen argument for contextual_help* filters. see #18785. git-svn-id: https://develop.svn.wordpress.org/trunk@18945 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/screen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index d5f12a9eb7..e9e3dc4598 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -662,12 +662,12 @@ final class WP_Screen { public function render_screen_meta() { // Call old contextual_help_list filter. - self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help ); + self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help, $this ); if ( isset( self::$_old_compat_help[ $this->id ] ) || empty(self::$_help_tabs[ $this->id ] ) ) { // Call old contextual_help filter. if ( isset( self::$_old_compat_help[ $this->id ] ) ) - $contextual_help = apply_filters( 'contextual_help', self::$_old_compat_help[ $this->id ], $this->id ); + $contextual_help = apply_filters( 'contextual_help', self::$_old_compat_help[ $this->id ], $this->id, $this ); if ( empty( $contextual_help ) ) { $default_help = __( 'Documentation' );