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/views/tool-file-editor.php +21 -21 18.428.5 View file →
@@ -25,11 +25,11 @@
25 25 if ( ! current_user_can( 'edit_files' ) ) {
26 26 $die_msg = sprintf(
27 27 /* translators: %s expands to robots.txt. */
28 28 __( 'You cannot create a %s file.', 'wordpress-seo' ),
29 - 'robots.txt'
29 + 'robots.txt',
30 30 );
31 - die( esc_html( $die_msg ) );
31 + exit( esc_html( $die_msg ) );
32 32 }
33 33
34 34 check_admin_referer( 'wpseo_create_robots' );
35 35
@@ -46,11 +46,11 @@
46 46 if ( ! current_user_can( 'edit_files' ) ) {
47 47 $die_msg = sprintf(
48 48 /* translators: %s expands to robots.txt. */
49 49 __( 'You cannot edit the %s file.', 'wordpress-seo' ),
50 - 'robots.txt'
50 + 'robots.txt',
51 51 );
52 - die( esc_html( $die_msg ) );
52 + exit( esc_html( $die_msg ) );
53 53 }
54 54
55 55 check_admin_referer( 'wpseo-robotstxt' );
56 56
@@ -62,9 +62,9 @@
62 62 fclose( $f );
63 63 $msg = sprintf(
64 64 /* translators: %s expands to robots.txt. */
65 65 __( 'Updated %s', 'wordpress-seo' ),
66 - 'robots.txt'
66 + 'robots.txt',
67 67 );
68 68 }
69 69 }
70 70 }
@@ -73,11 +73,11 @@
73 73 if ( ! current_user_can( 'edit_files' ) ) {
74 74 $die_msg = sprintf(
75 75 /* translators: %s expands to ".htaccess". */
76 76 __( 'You cannot edit the %s file.', 'wordpress-seo' ),
77 - '.htaccess'
77 + '.htaccess',
78 78 );
79 - die( esc_html( $die_msg ) );
79 + exit( esc_html( $die_msg ) );
80 80 }
81 81
82 82 check_admin_referer( 'wpseo-htaccess' );
83 83
@@ -113,9 +113,9 @@
113 113 echo '<p>';
114 114 printf(
115 115 /* translators: %s expands to robots.txt. */
116 116 esc_html__( 'You don\'t have a %s file, create one here:', 'wordpress-seo' ),
117 - 'robots.txt'
117 + 'robots.txt',
118 118 );
119 119 echo '</p>';
120 120
121 121 printf(
@@ -122,10 +122,10 @@
122 122 '<input type="submit" class="button" name="create_robots" value="%s">',
123 123 sprintf(
124 124 /* translators: %s expands to robots.txt. */
125 125 esc_attr__( 'Create %s file', 'wordpress-seo' ),
126 - 'robots.txt'
127 - )
126 + 'robots.txt',
127 + ),
128 128 );
129 129 echo '</form>';
130 130 }
131 131 else {
@@ -132,9 +132,9 @@
132 132 echo '<p>';
133 133 printf(
134 134 /* translators: %s expands to robots.txt. */
135 135 esc_html__( 'If you had a %s file and it was editable, you could edit it from here.', 'wordpress-seo' ),
136 - 'robots.txt'
136 + 'robots.txt',
137 137 );
138 138 echo '</p>';
139 139 }
140 140 }
@@ -150,9 +150,9 @@
150 150 echo '<p><em>';
151 151 printf(
152 152 /* translators: %s expands to robots.txt. */
153 153 esc_html__( 'If your %s were writable, you could edit it from here.', 'wordpress-seo' ),
154 - 'robots.txt'
154 + 'robots.txt',
155 155 );
156 156 echo '</em></p>';
157 157 echo '<textarea class="large-text code" disabled="disabled" rows="15" name="robotsnew">', esc_textarea( $content ), '</textarea><br/>';
158 158 }
@@ -162,9 +162,9 @@
162 162 echo '<label for="robotsnew" class="yoast-inline-label">';
163 163 printf(
164 164 /* translators: %s expands to robots.txt. */
165 165 esc_html__( 'Edit the content of your %s:', 'wordpress-seo' ),
166 - 'robots.txt'
166 + 'robots.txt',
167 167 );
168 168 echo '</label>';
169 169 echo '<textarea class="large-text code" rows="15" name="robotsnew" id="robotsnew">', esc_textarea( $content ), '</textarea><br/>';
170 170 printf(
@@ -171,10 +171,10 @@
171 171 '<div class="submit"><input class="button" type="submit" name="submitrobots" value="%s" /></div>',
172 172 sprintf(
173 173 /* translators: %s expands to robots.txt. */
174 174 esc_attr__( 'Save changes to %s', 'wordpress-seo' ),
175 - 'robots.txt'
176 - )
175 + 'robots.txt',
176 + ),
177 177 );
178 178 echo '</form>';
179 179 }
180 180 }
@@ -183,9 +183,9 @@
183 183 echo '<h2>';
184 184 printf(
185 185 /* translators: %s expands to ".htaccess". */
186 186 esc_html__( '%s file', 'wordpress-seo' ),
187 - '.htaccess'
187 + '.htaccess',
188 188 );
189 189 echo '</h2>';
190 190
191 191 if ( file_exists( $ht_access_file ) ) {
@@ -200,9 +200,9 @@
200 200 echo '<p><em>';
201 201 printf(
202 202 /* translators: %s expands to ".htaccess". */
203 203 esc_html__( 'If your %s were writable, you could edit it from here.', 'wordpress-seo' ),
204 - '.htaccess'
204 + '.htaccess',
205 205 );
206 206 echo '</em></p>';
207 207 echo '<textarea class="large-text code" disabled="disabled" rows="15" name="robotsnew">', esc_textarea( $contentht ), '</textarea><br/>';
208 208 }
@@ -212,9 +212,9 @@
212 212 echo '<label for="htaccessnew" class="yoast-inline-label">';
213 213 printf(
214 214 /* translators: %s expands to ".htaccess". */
215 215 esc_html__( 'Edit the content of your %s:', 'wordpress-seo' ),
216 - '.htaccess'
216 + '.htaccess',
217 217 );
218 218 echo '</label>';
219 219 echo '<textarea class="large-text code" rows="15" name="htaccessnew" id="htaccessnew">', esc_textarea( $contentht ), '</textarea><br/>';
220 220 printf(
@@ -221,10 +221,10 @@
221 221 '<div class="submit"><input class="button" type="submit" name="submithtaccess" value="%s" /></div>',
222 222 sprintf(
223 223 /* translators: %s expands to ".htaccess". */
224 224 esc_attr__( 'Save changes to %s', 'wordpress-seo' ),
225 - '.htaccess'
226 - )
225 + '.htaccess',
226 + ),
227 227 );
228 228 echo '</form>';
229 229 }
230 230 }
@@ -232,9 +232,9 @@
232 232 echo '<p>';
233 233 printf(
234 234 /* translators: %s expands to ".htaccess". */
235 235 esc_html__( 'If you had a %s file and it was editable, you could edit it from here.', 'wordpress-seo' ),
236 - '.htaccess'
236 + '.htaccess',
237 237 );
238 238 echo '</p>';
239 239 }
240 240 }