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/helpers/schema/replace-vars-helper.php +5 -3 18.228.5 View file →
@@ -89,9 +89,9 @@
89 89 'main_schema_id' => $context->main_schema_id,
90 90 'author_id' => $this->id_helper->get_user_schema_id( $context->indexable->author_id, $context ),
91 91 'person_id' => $context->site_url . Schema_IDs::PERSON_HASH,
92 92 'primary_image_id' => $context->canonical . Schema_IDs::PRIMARY_IMAGE_HASH,
93 - 'webpage_id' => $context->canonical . Schema_IDs::WEBPAGE_HASH,
93 + 'webpage_id' => $context->main_schema_id,
94 94 'website_id' => $context->site_url . Schema_IDs::WEBSITE_HASH,
95 95 'organization_id' => $context->site_url . Schema_IDs::ORGANIZATION_HASH,
96 96 ];
97 97
@@ -109,13 +109,15 @@
109 109 * Registers a replace var and its value.
110 110 *
111 111 * @param string $variable The replace variable.
112 112 * @param string $value The value that the variable should be replaced with.
113 + *
114 + * @return void
113 115 */
114 116 protected function register_replacement( $variable, $value ) {
115 117 $this->replace_vars->safe_register_replacement(
116 118 $variable,
117 - $this->get_identity_function( $value )
119 + $this->get_identity_function( $value ),
118 120 );
119 121 }
120 122
121 123 /**
@@ -125,9 +127,9 @@
125 127 *
126 128 * @return Closure A function that returns the given value.
127 129 */
128 130 protected function get_identity_function( $value ) {
129 - return static function() use ( $value ) {
131 + return static function () use ( $value ) {
130 132 return $value;
131 133 };
132 134 }
133 135 }