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:
parent
69204000ca
commit
42afb446db
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in New Issue