Ticket #35590: 35590.2.diff
File 35590.2.diff, 1.4 KB (added by , 8 years ago) |
---|
-
src/wp-includes/rest-api/class-wp-rest-server.php
875 875 } 876 876 877 877 /** 878 * Call a filterbefore executing any REST API callbacks.878 * Filters the response before executing any REST API callbacks. 879 879 * 880 880 * Allows plugins to perform additional validation after a 881 881 * request is initialized and matched to a registered route, … … 930 930 } 931 931 932 932 /** 933 * Call a filterimmediately after executing any REST API933 * Filters the response immediately after executing any REST API 934 934 * callbacks. 935 935 * 936 936 * Allows plugins to perform any needed cleanup, for example, 937 * to undo changes made during `rest_request_before_callbacks`.938 * 937 * to undo changes made during {@see 'rest_request_before_callbacks'}. 938 *. 939 939 * Note that this filter will not be called for requests that 940 940 * fail to authenticate or match to a registered route. 941 941 * 942 942 * Note that an endpoint's `permission_callback` can still be 943 * called after this filter - see the `rest_send_allow_header` 944 * function. 943 * called after this filter - see `rest_send_allow_header()`. 945 944 * 946 945 * @since 4.7.0 947 946 *