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/string-helper.php +6 -6 18.028.5 View file →
@@ -9,14 +9,14 @@
9 9
10 10 /**
11 11 * Strips all HTML tags including script and style.
12 12 *
13 - * @param string $string The string to strip the tags from.
13 + * @param string $text The text to strip the tags from.
14 14 *
15 15 * @return string The processed string.
16 16 */
17 - public function strip_all_tags( $string ) {
18 - return \wp_strip_all_tags( $string );
17 + public function strip_all_tags( $text ) {
18 + return \wp_strip_all_tags( $text );
19 19 }
20 20
21 21 /**
22 22 * Standardize whitespace in a string.
@@ -22,14 +22,14 @@
22 22 * Standardize whitespace in a string.
23 23 *
24 24 * Replace line breaks, carriage returns, tabs with a space, then remove double spaces.
25 25 *
26 - * @param string $string String input to standardize.
26 + * @param string $text Text input to standardize.
27 27 *
28 28 * @return string
29 29 */
30 - public function standardize_whitespace( $string ) {
31 - return \trim( \str_replace( ' ', ' ', \str_replace( [ "\t", "\n", "\r", "\f" ], ' ', $string ) ) );
30 + public function standardize_whitespace( $text ) {
31 + return \trim( \str_replace( ' ', ' ', \str_replace( [ "\t", "\n", "\r", "\f" ], ' ', $text ) ) );
32 32 }
33 33
34 34 /**
35 35 * First strip out registered and enclosing shortcodes using native WordPress strip_shortcodes function.