~canonical-sysadmins/wordpress/4.5

« back to all changes in this revision

Viewing changes to wp-admin/includes/screen.php

  • Committer: Barry Price
  • Date: 2016-01-07 06:09:42 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: barry.price@canonical.com-20160107060942-1ghv2tqiwm8z0j36
Merge WP4.4.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
        $hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' );
59
59
 
60
 
        if ( ! $hidden ) {
 
60
        $use_defaults = ! is_array( $hidden );
 
61
 
 
62
        if ( $use_defaults ) {
61
63
                $hidden = array();
62
64
 
63
65
                /**
75
77
         * Filter the list of hidden columns.
76
78
         *
77
79
         * @since 4.4.0
 
80
         * @since 4.4.1         Added the `use_defaults` parameter.
78
81
         *
79
82
         * @param array     $hidden An array of hidden columns.
80
83
         * @param WP_Screen $screen WP_Screen object of the current screen.
 
84
         * @param bool      $use_defaults Whether to show the default columns.
81
85
         */
82
 
        return apply_filters( 'hidden_columns', $hidden, $screen );
 
86
        return apply_filters( 'hidden_columns', $hidden, $screen, $use_defaults );
83
87
}
84
88
 
85
89
/**