mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Coding Standards: Remove redundant ignore annotations, take 4.
This removes ignore annotations related to sniffs which are not used by WP Core (like sniffs in the `WordPress-Extra` ruleset). Follow-up to [48072], [51003], [55204], [56714]. Props jrf. See #59161. git-svn-id: https://develop.svn.wordpress.org/trunk@56752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2011,11 +2011,8 @@ function wp_autosave_post_revisioned_meta_fields( $new_autosave ) {
|
||||
*
|
||||
* Ignoring sanitization to avoid altering meta. Ignoring the nonce check because
|
||||
* this is hooked on inner core hooks where a valid nonce was already checked.
|
||||
*
|
||||
* @phpcs:disable WordPress.Security
|
||||
*/
|
||||
$posted_data = isset( $_POST['data']['wp_autosave'] ) ? $_POST['data']['wp_autosave'] : $_POST;
|
||||
// phpcs:enable
|
||||
|
||||
$post_type = get_post_type( $new_autosave['post_parent'] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user