Use interpolation instead of concatenation for the `manage_{$screen->id}_columns` hook name.
Props Otto42. See #26869. git-svn-id: https://develop.svn.wordpress.org/trunk@28348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
30c21227be
commit
bbd130fe15
|
@ -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