diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php
index a01d94be3f..311bdd0b54 100644
--- a/src/wp-admin/includes/class-wp-screen.php
+++ b/src/wp-admin/includes/class-wp-screen.php
@@ -965,11 +965,8 @@ final class WP_Screen {
* @param array $options {
* @type bool $wrap Whether the screen-options-wrap div will be included. Defaults to true.
* }
- * @global array $wp_meta_boxes
*/
public function render_screen_options( $options = array() ) {
- global $wp_meta_boxes;
-
$options = wp_parse_args( $options, array(
'wrap' => true,
) );
@@ -1003,32 +1000,38 @@ final class WP_Screen {
* Render the meta boxes preferences.
*
* @since 4.4.0
+ *
+ * @global array $wp_meta_boxes
*/
public function render_meta_boxes_preferences() {
global $wp_meta_boxes;
- if ( isset( $wp_meta_boxes[ $this->id ] ) ) : ?>
-
+
-
-
- $title ) {
- // Can't hide these for they are special
- if ( in_array( $column, $special ) ) {
- continue;
- }
-
- if ( empty( $title ) ) {
- continue;
- }
-
- if ( 'comments' == $column ) {
- $title = __( 'Comments' );
- }
-
- $id = "$column-hide";
- echo '\n";
- }
- ?>
-
-
+
+
+ $title ) {
+ // Can't hide these for they are special
+ if ( in_array( $column, $special ) ) {
+ continue;
+ }
+
+ if ( empty( $title ) ) {
+ continue;
+ }
+
+ if ( 'comments' == $column ) {
+ $title = __( 'Comments' );
+ }
+
+ $id = "$column-hide";
+ echo '\n";
+ }
+ ?>
+
+