Changeset 61654
- Timestamp:
- 02/16/2026 10:38:01 PM (3 months ago)
- Location:
- trunk/src/wp-content/themes/twentytwentyone
- Files:
-
- 10 edited
-
classes/class-twenty-twenty-one-customize.php (modified) (1 diff)
-
classes/class-twenty-twenty-one-dark-mode.php (modified) (1 diff)
-
image.php (modified) (1 diff)
-
inc/back-compat.php (modified) (1 diff)
-
inc/custom-css.php (modified) (1 diff)
-
inc/template-functions.php (modified) (2 diffs)
-
inc/template-tags.php (modified) (6 diffs)
-
searchform.php (modified) (1 diff)
-
template-parts/header/site-branding.php (modified) (1 diff)
-
template-parts/header/site-nav.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php
r60537 r61654 114 114 // Background color. 115 115 // Include the custom control class. 116 require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-color-control.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound116 require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-color-control.php' ); 117 117 118 118 // Register the custom control. -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r61500 r61654 138 138 139 139 // Custom notice control. 140 require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-notice-control.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound140 require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-notice-control.php' ); 141 141 142 142 $wp_customize->add_setting( -
trunk/src/wp-content/themes/twentytwentyone/image.php
r60537 r61654 82 82 '<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s × %4$s</a></span>', 83 83 /* translators: Hidden accessibility text. */ 84 esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentytwentyone' ), // phpcs:ignore WordPress.Security.EscapeOutput84 esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentytwentyone' ), 85 85 esc_url( wp_get_attachment_url() ), 86 86 absint( $metadata['width'] ), -
trunk/src/wp-content/themes/twentytwentyone/inc/back-compat.php
r60537 r61654 80 80 */ 81 81 function twenty_twenty_one_preview() { 82 if ( isset( $_GET['preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification82 if ( isset( $_GET['preview'] ) ) { 83 83 wp_die( 84 84 sprintf( -
trunk/src/wp-content/themes/twentytwentyone/inc/custom-css.php
r61302 r61654 37 37 * malicious attempts to close </style> and open a <script>. 38 38 */ 39 echo wp_strip_all_tags( $css ); // phpcs:ignore WordPress.Security.EscapeOutput39 echo wp_strip_all_tags( $css ); 40 40 } 41 41 return $css; -
trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php
r61302 r61654 336 336 // Include file if function doesn't exist. 337 337 if ( ! function_exists( 'twenty_twenty_one_generate_css' ) ) { 338 require_once get_theme_file_path( 'inc/custom-css.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound338 require_once get_theme_file_path( 'inc/custom-css.php' ); 339 339 } 340 340 … … 406 406 if ( $blocks_content ) { 407 407 /** This filter is documented in wp-includes/post-template.php */ 408 echo apply_filters( 'the_content', $blocks_content ); // phpcs:ignore WordPress.Security.EscapeOutput408 echo apply_filters( 'the_content', $blocks_content ); 409 409 return true; 410 410 } -
trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php
r61091 r61654 28 28 /* translators: %s: Publish date. */ 29 29 esc_html__( 'Published %s', 'twentytwentyone' ), 30 $time_string // phpcs:ignore WordPress.Security.EscapeOutput30 $time_string 31 31 ); 32 32 echo '</span>'; … … 80 80 $post_format = get_post_format(); 81 81 if ( 'aside' === $post_format || 'status' === $post_format ) { 82 echo '<p><a href="' . esc_url( get_permalink() ) . '">' . twenty_twenty_one_continue_reading_text() . '</a></p>'; // phpcs:ignore WordPress.Security.EscapeOutput82 echo '<p><a href="' . esc_url( get_permalink() ) . '">' . twenty_twenty_one_continue_reading_text() . '</a></p>'; 83 83 } 84 84 … … 106 106 /* translators: %s: List of categories. */ 107 107 '<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>', 108 $categories_list // phpcs:ignore WordPress.Security.EscapeOutput108 $categories_list 109 109 ); 110 110 } … … 115 115 /* translators: %s: List of tags. */ 116 116 '<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>', 117 $tags_list // phpcs:ignore WordPress.Security.EscapeOutput117 $tags_list 118 118 ); 119 119 } … … 148 148 /* translators: %s: List of categories. */ 149 149 '<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>', 150 $categories_list // phpcs:ignore WordPress.Security.EscapeOutput150 $categories_list 151 151 ); 152 152 } … … 157 157 /* translators: %s: List of tags. */ 158 158 '<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>', 159 $tags_list // phpcs:ignore WordPress.Security.EscapeOutput159 $tags_list 160 160 ); 161 161 } -
trunk/src/wp-content/themes/twentytwentyone/searchform.php
r49826 r61654 21 21 $twentytwentyone_aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : ''; 22 22 ?> 23 <form role="search" <?php echo $twentytwentyone_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above.?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">23 <form role="search" <?php echo $twentytwentyone_aria_label; ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 24 24 <label for="<?php echo esc_attr( $twentytwentyone_unique_id ); ?>"><?php _e( 'Search…', 'twentytwentyone' ); // phpcs:ignore: WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations ?></label> 25 25 <input type="search" id="<?php echo esc_attr( $twentytwentyone_unique_id ); ?>" class="search-field" value="<?php echo get_search_query(); ?>" name="s" /> -
trunk/src/wp-content/themes/twentytwentyone/template-parts/header/site-branding.php
r59907 r61654 37 37 <?php if ( $description && true === get_theme_mod( 'display_title_and_tagline', true ) ) : ?> 38 38 <p class="site-description"> 39 <?php echo $description; // phpcs:ignore WordPress.Security.EscapeOutput?>39 <?php echo $description; ?> 40 40 </p> 41 41 <?php endif; ?> -
trunk/src/wp-content/themes/twentytwentyone/template-parts/header/site-nav.php
r53880 r61654 15 15 <button id="primary-mobile-menu" class="button" aria-controls="primary-menu-list" aria-expanded="false"> 16 16 <span class="dropdown-icon open"><?php esc_html_e( 'Menu', 'twentytwentyone' ); ?> 17 <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'menu' ); // phpcs:ignore WordPress.Security.EscapeOutput?>17 <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'menu' ); ?> 18 18 </span> 19 19 <span class="dropdown-icon close"><?php esc_html_e( 'Close', 'twentytwentyone' ); ?> 20 <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'close' ); // phpcs:ignore WordPress.Security.EscapeOutput?>20 <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'close' ); ?> 21 21 </span> 22 22 </button><!-- #primary-mobile-menu -->
Note: See TracChangeset
for help on using the changeset viewer.