Make WordPress Core


Ignore:
Timestamp:
06/04/2021 10:47:01 AM (3 years ago)
Author:
SergeyBiryukov
Message:

REST API: Rename the $creating parameter of rest_after_save_widget action to $update.

This brings some consistency with similar actions for posts, e.g. save_post or wp_insert_post.

Follow-up to [51068], [51069].

See #53317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php

    r51068 r51071  
    214214         *
    215215         * @since 5.8.0
    216          * @param array           $sidebar  The updated sidebar.
    217          * @param WP_REST_Request $request  Request object.
     216         *
     217         * @param array           $sidebar The updated sidebar.
     218         * @param WP_REST_Request $request Request object.
    218219         */
    219220        do_action( 'rest_save_sidebar', $sidebar, $request );
Note: See TracChangeset for help on using the changeset viewer.