61fbf572cb
* Only call wp_reset_postdata() if the global post variable was changed. * Make global_post_variable_changed static. * rely on the output of setup_postdata for verifying if the global variable was successfully changed. * ditch the static var and defaulting to false instead. * Rely on static as the post reset only happens when the loop of inner blocks ends and not right away. * Update the variable when the postdata is reset. |
||
---|---|---|
plugins/woocommerce-blocks |