diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/includes/class-wp-screen.php --- a/wp/wp-admin/includes/class-wp-screen.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/includes/class-wp-screen.php Wed Sep 21 18:19:35 2022 +0200 @@ -377,7 +377,7 @@ return $screen; } } else { - $screen = new WP_Screen(); + $screen = new self(); $screen->id = $id; } @@ -539,9 +539,9 @@ * * @since 3.3.0 * - * @param string $option Option name. - * @param string $key Optional. Specific array key for when the option is an array. - * Default false. + * @param string $option Option name. + * @param string|false $key Optional. Specific array key for when the option is an array. + * Default false. * @return string The option value if set, null otherwise. */ public function get_option( $option, $key = false ) { @@ -794,7 +794,7 @@ * {@see get_current_screen()->remove_help_tab()} instead. * * @param array $old_compat_help Old contextual help. - * @param WP_Screen $this Current WP_Screen instance. + * @param WP_Screen $screen Current WP_Screen instance. */ self::$_old_compat_help = apply_filters_deprecated( 'contextual_help_list', @@ -814,7 +814,7 @@ * * @param string $old_help Help text that appears on the screen. * @param string $screen_id Screen ID. - * @param WP_Screen $this Current WP_Screen instance. + * @param WP_Screen $screen Current WP_Screen instance. */ $old_help = apply_filters_deprecated( 'contextual_help', @@ -935,7 +935,7 @@ * * @param array $empty_columns Empty array. * @param string $screen_id Screen ID. - * @param WP_Screen $this Current WP_Screen instance. + * @param WP_Screen $screen Current WP_Screen instance. */ $columns = apply_filters( 'screen_layout_columns', array(), $this->id, $this ); @@ -1087,7 +1087,7 @@ * * @param bool $show_button Whether to show Screen Options submit button. * Default false. - * @param WP_Screen $this Current WP_Screen instance. + * @param WP_Screen $screen Current WP_Screen instance. */ $show_button = apply_filters( 'screen_options_show_submit', false, $this ); @@ -1113,9 +1113,14 @@ } ?>
- + +

+ + +

id && has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) { if ( isset( $_GET['welcome'] ) ) {