mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Use interpolation instead of concatenation for the manage_{$screen->id}_columns
hook name.
Props Otto42. See #26869. Built from https://develop.svn.wordpress.org/trunk@28348 git-svn-id: http://core.svn.wordpress.org/trunk@28176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8906f83802
commit
32e674f44e
@ -34,7 +34,7 @@ function get_column_headers( $screen ) {
|
||||
*
|
||||
* @param array $columns An array of column headers. Default empty.
|
||||
*/
|
||||
$column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', array() );
|
||||
$column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() );
|
||||
}
|
||||
|
||||
return $column_headers[ $screen->id ];
|
||||
|
Loading…
Reference in New Issue
Block a user