While preparing to merge the WP Globals check for the `WordPress-Theme` ruleset I found a place when `setup_postdata()` is used an error is triggered. Should the following code trigger an error? ```php global $post; $post = get_post( '10' ); setup_postdata( $post ); wp_reset_postdata(); ``` This is also used in Twenty Seventeen https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentyseventeen/inc/template-tags.php#L142
While preparing to merge the WP Globals check for the
WordPress-Themeruleset I found a place whensetup_postdata()is used an error is triggered.Should the following code trigger an error?
This is also used in Twenty Seventeen https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentyseventeen/inc/template-tags.php#L142