Fixed undefined post
This commit is contained in:
parent
24f88dbd2e
commit
a27ac728f3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue