diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
index e3eeb83c42..7cb5379e32 100644
a
|
b
|
printf( |
333 | 333 | <legend class="screen-reader-text"><?php _e( 'Permalink structure' ); ?></legend> |
334 | 334 | <?php foreach ( $default_structures as $input ) : ?> |
335 | 335 | <div class="row"> |
336 | | <input id="permalink-input-<?php echo $input['id']; ?>" |
337 | | name="selection" aria-describedby="permalink-<?php echo $input['id']; ?>" |
| 336 | <input id="permalink-input-<?php echo esc_attr( $input['id'] ); ?>" |
| 337 | name="selection" aria-describedby="permalink-<?php echo esc_attr( $input['id'] ); ?>" |
338 | 338 | type="radio" value="<?php echo esc_attr( $input['value'] ); ?>" |
339 | 339 | <?php checked( $input['value'], $permalink_structure ); ?> |
340 | 340 | /> |
341 | 341 | <div> |
342 | | <label for="permalink-input-<?php echo $input['id']; ?>"><?php echo $input['label']; ?></label> |
| 342 | <label for="permalink-input-<?php echo esc_attr( $input['id'] ); ?>"><?php echo esc_html( $input['label'] ); ?></label> |
343 | 343 | <p> |
344 | | <code id="permalink-<?php echo $input['id']; ?>"><?php echo $input['example']; ?></code> |
| 344 | <code id="permalink-<?php echo esc_attr( $input['id'] ); ?>"><?php echo esc_html( $input['example'] ); ?></code> |
345 | 345 | </p> |
346 | 346 | </div> |
347 | 347 | </div><!-- .row --> |
… |
… |
printf( |
359 | 359 | <?php _e( 'Customize permalink structure by selecting available tags' ); ?> |
360 | 360 | </label> |
361 | 361 | <span class="code"> |
362 | | <code id="permalink-custom"><?php echo $url_base; ?></code> |
| 362 | <code id="permalink-custom"><?php echo esc_url( $url_base ); ?></code> |
363 | 363 | <input name="permalink_structure" id="permalink_structure" |
364 | 364 | type="text" value="<?php echo esc_attr( $permalink_structure ); ?>" |
365 | 365 | aria-describedby="permalink-custom" class="regular-text code" |
… |
… |
printf( |
381 | 381 | data-added="<?php echo esc_attr( sprintf( $tag_added, $tag ) ); ?>" |
382 | 382 | data-removed="<?php echo esc_attr( sprintf( $tag_removed, $tag ) ); ?>" |
383 | 383 | data-used="<?php echo esc_attr( sprintf( $tag_already_used, $tag ) ); ?>"> |
384 | | <?php echo '%' . $tag . '%'; ?> |
| 384 | <?php echo '%' . esc_html( $tag ) . '%'; ?> |
385 | 385 | </button> |
386 | 386 | </li> |
387 | 387 | <?php endforeach; ?> |