Coding Standards: Dynamic hooks should be named using interpolation not concatenation.
Props arena, desrosj. Fixes #47052. Built from https://develop.svn.wordpress.org/trunk@45881 git-svn-id: http://core.svn.wordpress.org/trunk@45692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -75,13 +75,13 @@ class Custom_Image_Header {
|
||||
return;
|
||||
}
|
||||
|
||||
add_action( "admin_print_scripts-$page", array( $this, 'js_includes' ) );
|
||||
add_action( "admin_print_styles-$page", array( $this, 'css_includes' ) );
|
||||
add_action( "admin_head-$page", array( $this, 'help' ) );
|
||||
add_action( "admin_head-$page", array( $this, 'take_action' ), 50 );
|
||||
add_action( "admin_head-$page", array( $this, 'js' ), 50 );
|
||||
add_action( "admin_print_scripts-{$page}", array( $this, 'js_includes' ) );
|
||||
add_action( "admin_print_styles-{$page}", array( $this, 'css_includes' ) );
|
||||
add_action( "admin_head-{$page}", array( $this, 'help' ) );
|
||||
add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 );
|
||||
add_action( "admin_head-{$page}", array( $this, 'js' ), 50 );
|
||||
if ( $this->admin_header_callback ) {
|
||||
add_action( "admin_head-$page", $this->admin_header_callback, 51 );
|
||||
add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user