mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Permalinks: Properly escape strings in Permalinks Settings screen.
Props jaedm97, audrasjb, robinwpdeveloper, shraboni. Fixes #57143. Built from https://develop.svn.wordpress.org/trunk@55331 git-svn-id: http://core.svn.wordpress.org/trunk@54864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6310d1d21a
commit
47b1864c2e
@ -338,15 +338,19 @@ printf(
|
|||||||
</legend>
|
</legend>
|
||||||
<?php foreach ( $default_structures as $input ) : ?>
|
<?php foreach ( $default_structures as $input ) : ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<input id="permalink-input-<?php echo $input['id']; ?>"
|
<input id="permalink-input-<?php echo esc_attr( $input['id'] ); ?>"
|
||||||
name="selection" aria-describedby="permalink-<?php echo $input['id']; ?>"
|
name="selection" aria-describedby="permalink-<?php echo esc_attr( $input['id'] ); ?>"
|
||||||
type="radio" value="<?php echo esc_attr( $input['value'] ); ?>"
|
type="radio" value="<?php echo esc_attr( $input['value'] ); ?>"
|
||||||
<?php checked( $input['value'], $permalink_structure ); ?>
|
<?php checked( $input['value'], $permalink_structure ); ?>
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
<label for="permalink-input-<?php echo $input['id']; ?>"><?php echo $input['label']; ?></label>
|
<label for="permalink-input-<?php echo esc_attr( $input['id'] ); ?>">
|
||||||
|
<?php echo esc_html( $input['label'] ); ?>
|
||||||
|
</label>
|
||||||
<p>
|
<p>
|
||||||
<code id="permalink-<?php echo $input['id']; ?>"><?php echo $input['example']; ?></code>
|
<code id="permalink-<?php echo esc_attr( $input['id'] ); ?>">
|
||||||
|
<?php echo esc_html( $input['example'] ); ?>
|
||||||
|
</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- .row -->
|
</div><!-- .row -->
|
||||||
@ -367,7 +371,7 @@ printf(
|
|||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
<span class="code">
|
<span class="code">
|
||||||
<code id="permalink-custom"><?php echo $url_base; ?></code>
|
<code id="permalink-custom"><?php echo esc_url( $url_base ); ?></code>
|
||||||
<input name="permalink_structure" id="permalink_structure"
|
<input name="permalink_structure" id="permalink_structure"
|
||||||
type="text" value="<?php echo esc_attr( $permalink_structure ); ?>"
|
type="text" value="<?php echo esc_attr( $permalink_structure ); ?>"
|
||||||
aria-describedby="permalink-custom" class="regular-text code"
|
aria-describedby="permalink-custom" class="regular-text code"
|
||||||
@ -389,7 +393,7 @@ printf(
|
|||||||
data-added="<?php echo esc_attr( sprintf( $tag_added, $tag ) ); ?>"
|
data-added="<?php echo esc_attr( sprintf( $tag_added, $tag ) ); ?>"
|
||||||
data-removed="<?php echo esc_attr( sprintf( $tag_removed, $tag ) ); ?>"
|
data-removed="<?php echo esc_attr( sprintf( $tag_removed, $tag ) ); ?>"
|
||||||
data-used="<?php echo esc_attr( sprintf( $tag_already_used, $tag ) ); ?>">
|
data-used="<?php echo esc_attr( sprintf( $tag_already_used, $tag ) ); ?>">
|
||||||
<?php echo '%' . $tag . '%'; ?>
|
<?php echo '%' . esc_html( $tag ) . '%'; ?>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.2-beta1-55330';
|
$wp_version = '6.2-beta1-55331';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user