diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index 87191625c7..468c2246b8 100644
a
|
b
|
|
10 | 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_options' ) ) { |
13 | | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
| 13 | wp_die( esc_html__( 'Sorry, you are not allowed to manage options for this site.' ) ); |
14 | 14 | } |
15 | 15 | |
16 | 16 | // Used in the HTML title tag. |
… |
… |
$structures = array( |
244 | 244 | </tr> |
245 | 245 | <tr> |
246 | 246 | <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[1] ); ?>" <?php checked( $structures[1], $permalink_structure ); ?> /> <?php _e( 'Day and name' ); ?></label></th> |
247 | | <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . gmdate( 'Y' ) . '/' . gmdate( 'm' ) . '/' . gmdate( 'd' ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> |
| 247 | <td><code><?php echo get_option( 'home' ) . esc_html( $blog_prefix ) . esc_html( $prefix ) . '/' . gmdate( 'Y' ) . '/' . gmdate( 'm' ) . '/' . gmdate( 'd' ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> |
248 | 248 | </tr> |
249 | 249 | <tr> |
250 | 250 | <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[2] ); ?>" <?php checked( $structures[2], $permalink_structure ); ?> /> <?php _e( 'Month and name' ); ?></label></th> |
251 | | <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . gmdate( 'Y' ) . '/' . gmdate( 'm' ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> |
| 251 | <td><code><?php echo get_option( 'home' ) . esc_html( $blog_prefix ) . esc_html( $prefix ) . '/' . gmdate( 'Y' ) . '/' . gmdate( 'm' ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> |
252 | 252 | </tr> |
253 | 253 | <tr> |
254 | 254 | <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[3] ); ?>" <?php checked( $structures[3], $permalink_structure ); ?> /> <?php _e( 'Numeric' ); ?></label></th> |
255 | | <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></td> |
| 255 | <td><code><?php echo get_option( 'home' ) . esc_html( $blog_prefix ) . esc_html( $prefix ) . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></td> |
256 | 256 | </tr> |
257 | 257 | <tr> |
258 | 258 | <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[4] ); ?>" <?php checked( $structures[4], $permalink_structure ); ?> /> <?php _e( 'Post name' ); ?></label></th> |
259 | | <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> |
| 259 | <td><code><?php echo get_option( 'home' ) . esc_html( $blog_prefix ) . esc_html( $prefix ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> |
260 | 260 | </tr> |
261 | 261 | <tr> |
262 | 262 | <th scope="row"> |
… |
… |
$structures = array( |
265 | 265 | </label> |
266 | 266 | </th> |
267 | 267 | <td> |
268 | | <code><?php echo get_option( 'home' ) . $blog_prefix; ?></code> |
| 268 | <code><?php echo get_option( 'home' ) . esc_html( $blog_prefix ); ?></code> |
269 | 269 | <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr( $permalink_structure ); ?>" class="regular-text code" /> |
270 | 270 | <div class="available-structure-tags hide-if-no-js"> |
271 | 271 | <div id="custom_selection_updated" aria-live="assertive" class="screen-reader-text"></div> |
… |
… |
$structures = array( |
338 | 338 | <p> |
339 | 339 | <?php |
340 | 340 | /* translators: %s: Placeholder that must come at the start of the URL. */ |
341 | | printf( __( 'If you like, you may enter custom structures for your category and tag URLs here. For example, using <code>topics</code> as your category base would make your category links like <code>%s/topics/uncategorized/</code>. If you leave these blank the defaults will be used.' ), get_option( 'home' ) . $blog_prefix . $prefix ); |
| 341 | printf( __( 'If you like, you may enter custom structures for your category and tag URLs here. For example, using <code>topics</code> as your category base would make your category links like <code>%s/topics/uncategorized/</code>. If you leave these blank the defaults will be used.' ), get_option( 'home' ) . esc_html( $blog_prefix ) . esc_html( $prefix ) ); |
342 | 342 | ?> |
343 | 343 | </p> |
344 | 344 | |
345 | 345 | <table class="form-table" role="presentation"> |
346 | 346 | <tr> |
347 | 347 | <th><label for="category_base"><?php /* translators: Prefix for category permalinks. */ _e( 'Category base' ); ?></label></th> |
348 | | <td><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td> |
| 348 | <td><?php echo esc_html( $blog_prefix ); ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td> |
349 | 349 | </tr> |
350 | 350 | <tr> |
351 | 351 | <th><label for="tag_base"><?php _e( 'Tag base' ); ?></label></th> |
352 | | <td><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr( $tag_base ); ?>" class="regular-text code" /></td> |
| 352 | <td><?php echo esc_html( $blog_prefix ); ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr( $tag_base ); ?>" class="regular-text code" /></td> |
353 | 353 | </tr> |
354 | 354 | <?php do_settings_fields( 'permalink', 'optional' ); ?> |
355 | 355 | </table> |