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/generators/open-graph-image-generator.php +10 -4 18.428.5 View file →
@@ -83,9 +83,9 @@
83 83 try {
84 84 /**
85 85 * Filter: wpseo_add_opengraph_images - Allow developers to add images to the Open Graph tags.
86 86 *
87 - * @api Yoast\WP\SEO\Values\Open_Graph\Images The current object.
87 + * @param Yoast\WP\SEO\Values\Open_Graph\Images $image_container The current object.
88 88 */
89 89 \apply_filters( 'wpseo_add_opengraph_images', $image_container );
90 90 } catch ( Error $error ) {
91 91 $image_container = $backup_image_container;
@@ -97,9 +97,9 @@
97 97 try {
98 98 /**
99 99 * Filter: wpseo_add_opengraph_additional_images - Allows to add additional images to the Open Graph tags.
100 100 *
101 - * @api Yoast\WP\SEO\Values\Open_Graph\Images The current object.
101 + * @param Yoast\WP\SEO\Values\Open_Graph\Images $image_container The current object.
102 102 */
103 103 \apply_filters( 'wpseo_add_opengraph_additional_images', $image_container );
104 104 } catch ( Error $error ) {
105 105 $image_container = $backup_image_container;
@@ -136,8 +136,10 @@
136 136 * Adds an image based on the given indexable.
137 137 *
138 138 * @param Indexable $indexable The indexable.
139 139 * @param Images $image_container The image container.
140 + *
141 + * @return void
140 142 */
141 143 protected function add_from_indexable( Indexable $indexable, Images $image_container ) {
142 144 if ( $indexable->open_graph_image_meta ) {
143 145 $image_container->add_image_by_meta( $indexable->open_graph_image_meta );
@@ -159,10 +161,10 @@
159 161 \array_merge(
160 162 (array) $meta_data,
161 163 [
162 164 'url' => $indexable->open_graph_image,
163 - ]
164 - )
165 + ],
166 + ),
165 167 );
166 168 }
167 169 }
168 170
@@ -169,8 +171,10 @@
169 171 /**
170 172 * Retrieves the default Open Graph image.
171 173 *
172 174 * @param Images $image_container The image container.
175 + *
176 + * @return void
173 177 */
174 178 protected function add_from_default( Images $image_container ) {
175 179 if ( $image_container->has_images() ) {
176 180 return;
@@ -193,8 +197,10 @@
193 197 * Retrieves the default Open Graph image.
194 198 *
195 199 * @param Meta_Tags_Context $context The context.
196 200 * @param Images $image_container The image container.
201 + *
202 + * @return void
197 203 */
198 204 protected function add_from_templates( Meta_Tags_Context $context, Images $image_container ) {
199 205 if ( $image_container->has_images() ) {
200 206 return;