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 | admin/menu/class-replacevar-editor.php +6 -4 18.128.5 View file →
@@ -64,9 +64,9 @@
64 64 'description_placeholder' => '',
65 65 'has_new_badge' => false,
66 66 'is_disabled' => false,
67 67 'has_premium_badge' => false,
68 - ]
68 + ],
69 69 );
70 70
71 71 $this->validate_arguments( $arguments );
72 72
@@ -121,9 +121,9 @@
121 121 esc_attr( $this->arguments['label_description'] ),
122 122 esc_attr( $this->arguments['description_placeholder'] ),
123 123 esc_attr( $this->arguments['has_new_badge'] ),
124 124 esc_attr( $this->arguments['is_disabled'] ),
125 - esc_attr( $this->arguments['has_premium_badge'] )
125 + esc_attr( $this->arguments['has_premium_badge'] ),
126 126 );
127 127 }
128 128
129 129 /**
@@ -130,8 +130,10 @@
130 130 * Validates the replacement variable editor arguments.
131 131 *
132 132 * @param array $arguments The arguments to validate.
133 133 *
134 + * @return void
135 + *
134 136 * @throws InvalidArgumentException Thrown when not all required arguments are present.
135 137 */
136 138 protected function validate_arguments( array $arguments ) {
137 139 $required_arguments = [
@@ -147,10 +149,10 @@
147 149 throw new InvalidArgumentException(
148 150 sprintf(
149 151 /* translators: %1$s expands to the missing field name. */
150 152 __( 'Not all required fields are given. Missing field %1$s', 'wordpress-seo' ),
151 - $field_name
152 - )
153 + $field_name,
154 + ),
153 155 );
154 156 }
155 157 }
156 158 }