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:
parent
61ce27e467
commit
f1f0eb61ff
|
@ -194,7 +194,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
$this->extra_tablenav( 'bar' );
|
$this->extra_tablenav( 'bar' );
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
|
/** 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.
|
// Back compat for pre-4.0 view links.
|
||||||
if ( ! empty( $views ) ) {
|
if ( ! empty( $views ) ) {
|
||||||
|
|
Loading…
Reference in New Issue