PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
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 19.0 All 129 releases
← All changes | src/models/indexable-extension.php +2 -4 18.428.5 View file →
@@ -11,9 +11,9 @@
11 11
12 12 /**
13 13 * Holds the Indexable instance.
14 14 *
15 - * @var Indexable
15 + * @var Indexable|null
16 16 */
17 17 protected $indexable = null;
18 18
19 19 /**
@@ -21,11 +21,9 @@
21 21 *
22 22 * @return Indexable The indexable.
23 23 */
24 24 public function indexable() {
25 - if ( $this->indexable === null ) {
26 - $this->indexable = $this->belongs_to( 'Indexable', 'indexable_id', 'id' )->find_one();
27 - }
25 + $this->indexable ??= $this->belongs_to( 'Indexable', 'indexable_id', 'id' )->find_one();
28 26
29 27 return $this->indexable;
30 28 }
31 29 }