mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Customize: Use Semantically correct function
Functionally, `add_action` and `add_filter` are essentially the same, but semantically they are not. Props Drivingralle. Fixes #56285. git-svn-id: https://develop.svn.wordpress.org/trunk@54120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1322,7 +1322,7 @@ final class WP_Customize_Nav_Menus {
|
||||
add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue_deps' ) );
|
||||
add_filter( 'wp_nav_menu_args', array( $this, 'filter_wp_nav_menu_args' ), 1000 );
|
||||
add_filter( 'wp_nav_menu', array( $this, 'filter_wp_nav_menu' ), 10, 2 );
|
||||
add_filter( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
|
||||
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
|
||||
add_filter( 'customize_render_partials_response', array( $this, 'export_partial_rendered_nav_menu_instances' ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user