| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Custom taxonomies cache. |
| 15 | 15 | * |
| 16 | - * @var array | |
| 16 | + * @var array|null | |
| 17 | 17 | */ |
| 18 | 18 | protected static $custom_taxonomies = null; |
| 19 | 19 | |
| 20 | 20 | /** |
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | * @return array The custom taxonomy prefixed names. |
| 24 | 24 | */ |
| 25 | 25 | public static function get_custom_taxonomies() { |
| 26 | 26 | // Use cached value if available. |
| 27 | - if ( ! is_null( self::$custom_taxonomies ) ) { | |
| 27 | + if ( self::$custom_taxonomies !== null ) { | |
| 28 | 28 | return self::$custom_taxonomies; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | self::$custom_taxonomies = []; |
| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | foreach ( $custom_taxonomies as $custom_taxonomy ) { |
| 40 | 40 | array_push( |
| 41 | 41 | self::$custom_taxonomies, |
| 42 | 42 | self::add_custom_taxonomies_prefix( $custom_taxonomy ), |
| 43 | - self::add_custom_taxonomies_description_prefix( $custom_taxonomy ) | |
| 43 | + self::add_custom_taxonomies_description_prefix( $custom_taxonomy ), | |
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |