diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 8db0cde433..a320f0e193 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -57,7 +57,9 @@ function get_hidden_columns( $screen ) { $hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' ); - if ( ! $hidden ) { + $use_defaults = ! is_array( $hidden ); + + if ( $use_defaults ) { $hidden = array(); /** @@ -75,11 +77,13 @@ function get_hidden_columns( $screen ) { * Filter the list of hidden columns. * * @since 4.4.0 + * @since 4.4.1 Added the `use_defaults` parameter. * * @param array $hidden An array of hidden columns. * @param WP_Screen $screen WP_Screen object of the current screen. + * @param bool $use_defaults Whether to show the default columns. */ - return apply_filters( 'hidden_columns', $hidden, $screen ); + return apply_filters( 'hidden_columns', $hidden, $screen, $use_defaults ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index a22182bfa0..b488b7f055 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4.1-alpha-36153'; +$wp_version = '4.4.1-alpha-36155'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.