Skip to content

Commit 8f533d7

Browse files
committed
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
1 parent 640cca7 commit 8f533d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-customize-nav-menus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ public function customize_preview_init() {
13221322
add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue_deps' ) );
13231323
add_filter( 'wp_nav_menu_args', array( $this, 'filter_wp_nav_menu_args' ), 1000 );
13241324
add_filter( 'wp_nav_menu', array( $this, 'filter_wp_nav_menu' ), 10, 2 );
1325-
add_filter( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
1325+
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
13261326
add_filter( 'customize_render_partials_response', array( $this, 'export_partial_rendered_nav_menu_instances' ) );
13271327
}
13281328

0 commit comments

Comments
 (0)