Prefer empty function over is_null. #2191

This commit is contained in:
Coen Jacobs 2013-01-10 11:33:26 +01:00
parent 71ed6e08f3
commit 4411297099
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ function woocommerce_status() {
if ( $values['shortcode'] ) {
$page = get_post( $page_id );
if ( is_null( $page ) ) {
if ( empty( $page ) ) {
echo '<mark class="error">' . sprintf( __( 'Page does not exist', 'woocommerce' ) ) . '</mark>';
$error = true;