Skip to content

Commit

Permalink
Issue #3109: isnull typo -> is_null (3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglewis committed Aug 21, 2015
1 parent 1b99582 commit 38ca9a2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/Migrate-CPTUI/Migrate-CPTUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}

Expand Down Expand Up @@ -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 );
}
}
Expand Down Expand Up @@ -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 );
}

Expand Down

0 comments on commit 38ca9a2

Please sign in to comment.