Make WordPress Core

Changeset 54120


Ignore:
Timestamp:
09/11/2022 06:16:27 PM (2 years ago)
Author:
jorbin
Message:

Customize: Use Semantically correct function

Functionally, add_action and add_filter are essentially the same, but semantically they are not.

Props Drivingralle.
Fixes #56285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r53331 r54120  
    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    }
Note: See TracChangeset for help on using the changeset viewer.