PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | inc/class-wpseo-custom-taxonomies.php +3 -3 18.3 → trunk View file →
@@ -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