Media: `views_upload` filter expects an array, not a string.

see #28946.


git-svn-id: https://develop.svn.wordpress.org/trunk@29641 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2014-08-27 03:06:00 +00:00
parent 61ce27e467
commit f1f0eb61ff
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class WP_Media_List_Table extends WP_List_Table {
$this->extra_tablenav( 'bar' );
/** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
$views = apply_filters( "views_{$this->screen->id}", '' );
$views = apply_filters( "views_{$this->screen->id}", array() );
// Back compat for pre-4.0 view links.
if ( ! empty( $views ) ) {