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

see #28946.

Built from https://develop.svn.wordpress.org/trunk@29641


git-svn-id: http://core.svn.wordpress.org/trunk@29415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2014-08-27 03:06:27 +00:00
parent 69204000ca
commit 42afb446db
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 ) ) {