mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user