Fixed undefined post

This commit is contained in:
Claudio Sanches 2016-11-18 12:17:29 -02:00
parent 24f88dbd2e
commit a27ac728f3
1 changed files with 1 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ class WC_Admin_Post_Types {
public function bulk_action() {
global $wp_version;
if ( version_compare( $wp_version, '4.7-beta', '>=' ) ) {
if ( version_compare( $wp_version, '4.7-beta', '>=' ) || empty( $_REQUEST['post'] ) ) {
return;
}