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.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/integrations/front-end/force-rewrite-title.php +6 -2 18.9 → trunk View file →
@@ -74,9 +74,9 @@
74 74 if ( \current_theme_supports( 'title-tag' ) ) {
75 75 return;
76 76 }
77 77
78 - \add_action( 'template_redirect', [ $this, 'force_rewrite_output_buffer' ], 99999 );
78 + \add_action( 'template_redirect', [ $this, 'force_rewrite_output_buffer' ], 99_999 );
79 79 \add_action( 'wp_footer', [ $this, 'flush_cache' ], -1 );
80 80 }
81 81
82 82 /**
@@ -113,8 +113,10 @@
113 113 }
114 114
115 115 /**
116 116 * Starts the output buffer so it can later be fixed by flush_cache().
117 + *
118 + * @return void
117 119 */
118 120 public function force_rewrite_output_buffer() {
119 121 $this->ob_started = true;
120 122 $this->start_output_buffering();
@@ -158,8 +160,10 @@
158 160 /**
159 161 * Starts the output buffering.
160 162 *
161 163 * @codeCoverageIgnore
164 + *
165 + * @return void
162 166 */
163 167 protected function start_output_buffering() {
164 168 \ob_start();
165 169 }
@@ -168,9 +172,9 @@
168 172 * Retrieves the buffered output.
169 173 *
170 174 * @codeCoverageIgnore
171 175 *
172 - * @return false|string The buffered output.
176 + * @return string|false The buffered output.
173 177 */
174 178 protected function get_buffered_output() {
175 179 return \ob_get_clean();
176 180 }