From 38ca9a23d353c6ae4fc39bfd855bd5d44d008efc Mon Sep 17 00:00:00 2001 From: pglewis Date: Fri, 21 Aug 2015 18:20:18 -0400 Subject: [PATCH] Issue #3109: `isnull` typo -> `is_null` (3.0) --- components/Migrate-CPTUI/Migrate-CPTUI.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/Migrate-CPTUI/Migrate-CPTUI.php b/components/Migrate-CPTUI/Migrate-CPTUI.php index 465f5ae005..e10d5b95fc 100644 --- a/components/Migrate-CPTUI/Migrate-CPTUI.php +++ b/components/Migrate-CPTUI/Migrate-CPTUI.php @@ -58,12 +58,12 @@ class Pods_Migrate_CPTUI extends Pods_Component { public function __construct() { $this->post_option_name = $this->get_option_name( $this->post_option_name_list ); - if ( ! isnull( $this->post_option_name ) ) { + if ( ! is_null( $this->post_option_name ) ) { $this->post_types = (array) get_option( $this->post_option_name, array() ); } $this->taxonomy_option_name = $this->get_option_name( $this->taxonomy_option_name_list ); - if ( ! isnull( $this->taxonomy_option_name ) ) { + if ( ! is_null( $this->taxonomy_option_name ) ) { $this->taxonomies = (array) get_option( $this->taxonomy_option_name, array() ); } @@ -153,21 +153,21 @@ public function ajax_migrate( $params ) { if ( 1 == pods_v( 'cleanup', $params, 0 ) ) { if ( ! empty( $post_types ) ) { - if ( ! isnull( $this->post_option_name ) ) { + if ( ! is_null( $this->post_option_name ) ) { update_option( $this->post_option_name, $post_types ); } } else { - if ( ! isnull( $this->post_option_name ) ) { + if ( ! is_null( $this->post_option_name ) ) { delete_option( $this->post_option_name ); } } if ( ! empty( $taxonomies ) ) { - if ( ! isnull( $this->taxonomy_option_name ) ) { + if ( ! is_null( $this->taxonomy_option_name ) ) { update_option( $this->taxonomy_option_name, $taxonomies ); } } else { - if ( ! isnull( $this->taxonomy_option_name ) ) { + if ( ! is_null( $this->taxonomy_option_name ) ) { delete_option( $this->taxonomy_option_name ); } } @@ -343,11 +343,11 @@ private function migrate_taxonomy( $taxonomy ) { */ public function clean() { - if ( ! isnull( $this->post_option_name ) ) { + if ( ! is_null( $this->post_option_name ) ) { delete_option( $this->post_option_name ); } - if ( ! isnull( $this->taxonomy_option_name ) ) { + if ( ! is_null( $this->taxonomy_option_name ) ) { delete_option( $this->taxonomy_option_name ); }