Ticket #53426: 53426-1.2.diff
File 53426-1.2.diff, 11.9 KB (added by , 3 years ago) |
---|
-
wp-admin/about.php
23 23 24 24 <div class="about__header"> 25 25 <div class="about__header-image"> 26 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg'); ?>" />26 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo esc_url( admin_url( 'images/about-badge.svg' ) ); ?>" /> 27 27 </div> 28 28 29 29 <div class="about__header-title"> … … 233 233 <div class="about__section has-subtle-background-color"> 234 234 <div class="column about__image"> 235 235 <picture> 236 <source media="(max-width: 600px)" srcset="<?php echo admin_url( 'images/about-color-palette-vert.svg'); ?>" />237 <img alt="" src="<?php echo admin_url( 'images/about-color-palette.svg'); ?>" />236 <source media="(max-width: 600px)" srcset="<?php echo esc_url( admin_url( 'images/about-color-palette-vert.svg' ) ); ?>" /> 237 <img alt="" src="<?php echo esc_url( admin_url( 'images/about-color-palette.svg' ) ); ?>" /> 238 238 </picture> 239 239 </div> 240 240 </div> -
wp-admin/comment.php
232 232 <th scope="row"><?php /* translators: Field name in comment form. */ _ex( 'Comment', 'noun' ); ?></th> 233 233 <td class="comment-content"> 234 234 <?php comment_text( $comment ); ?> 235 <p class="edit-comment"><a href="<?php echo admin_url( "comment.php?action=editcomment&c={$comment->comment_ID}"); ?>"><?php esc_html_e( 'Edit' ); ?></a></p>235 <p class="edit-comment"><a href="<?php echo esc_url( admin_url( "comment.php?action=editcomment&c={$comment->comment_ID}" ) ); ?>"><?php esc_html_e( 'Edit' ); ?></a></p> 236 236 </td> 237 237 </tr> 238 238 </table> … … 241 241 242 242 <p> 243 243 <?php submit_button( $button, 'primary', 'submit', false ); ?> 244 <a href="<?php echo admin_url( 'edit-comments.php'); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a>244 <a href="<?php echo esc_url( admin_url( 'edit-comments.php' ) ); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a> 245 245 </p> 246 246 247 247 <?php wp_nonce_field( $nonce_action ); ?> -
wp-admin/credits.php
22 22 23 23 <div class="about__header"> 24 24 <div class="about__header-image"> 25 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg'); ?>" />25 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo esc_url( admin_url( 'images/about-badge.svg' ) ); ?>" /> 26 26 </div> 27 27 28 28 <div class="about__header-container"> -
wp-admin/edit-tag-form.php
275 275 276 276 <?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?> 277 277 <span id="delete-link"> 278 <a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) ); ?>"><?php _e( 'Delete' ); ?></a>278 <a class="delete" href="<?php echo esc_url( admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ); ?>"><?php _e( 'Delete' ); ?></a> 279 279 </span> 280 280 <?php endif; ?> 281 281 -
wp-admin/freedoms.php
25 25 26 26 <div class="about__header"> 27 27 <div class="about__header-image"> 28 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg'); ?>" />28 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo esc_url( admin_url( 'images/about-badge.svg' ) ); ?>" /> 29 29 </div> 30 30 31 31 <div class="about__header-container"> -
wp-admin/includes/dashboard.php
1926 1926 <h3><?php _e( 'Get Started' ); ?></h3> 1927 1927 <a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo wp_customize_url(); ?>"><?php _e( 'Customize Your Site' ); ?></a> 1928 1928 <?php endif; ?> 1929 <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php'); ?>"><?php _e( 'Customize Your Site' ); ?></a>1929 <a class="button button-primary button-hero hide-if-customize" href="<?php echo esc_url( admin_url( 'themes.php' ) ); ?>"><?php _e( 'Customize Your Site' ); ?></a> 1930 1930 <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?> 1931 1931 <?php $themes_link = current_user_can( 'customize' ) ? add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ) : admin_url( 'themes.php' ); ?> 1932 1932 <p class="hide-if-no-customize"> -
wp-admin/includes/image-edit.php
90 90 <input type="hidden" id="imgedit-y-<?php echo $post_id; ?>" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> 91 91 92 92 <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> 93 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" src="<?php echo admin_url( 'admin-ajax.php', 'relative'); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand( 1, 99999 ); ?>" alt="" />93 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" src="<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand( 1, 99999 ); ?>" alt="" /> 94 94 </div> 95 95 96 96 <div class="imgedit-submit"> -
wp-admin/media-new.php
72 72 <div class="wrap"> 73 73 <h1><?php echo esc_html( $title ); ?></h1> 74 74 75 <form enctype="multipart/form-data" method="post" action="<?php echo admin_url( 'media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">75 <form enctype="multipart/form-data" method="post" action="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form"> 76 76 77 77 <?php media_upload_form(); ?> 78 78 -
wp-admin/nav-menus.php
685 685 <hr class="wp-header-end"> 686 686 687 687 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>"> 688 <a href="<?php echo admin_url( 'nav-menus.php'); ?>" class="nav-tab<?php echo $nav_tab_active_class; ?>"<?php echo $nav_aria_current; ?>><?php esc_html_e( 'Edit Menus' ); ?></a>688 <a href="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>" class="nav-tab<?php echo $nav_tab_active_class; ?>"<?php echo $nav_aria_current; ?>><?php esc_html_e( 'Edit Menus' ); ?></a> 689 689 <?php 690 690 if ( $num_locations && $menu_count ) { 691 691 $active_tab_class = ''; … … 836 836 <span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span> 837 837 </span><!-- /add-edit-menu-action --> 838 838 <?php else : ?> 839 <form method="get" action="<?php echo admin_url( 'nav-menus.php'); ?>">839 <form method="get" action="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"> 840 840 <input type="hidden" name="action" value="edit" /> 841 841 <label for="select-menu-to-edit" class="selected-menu"><?php _e( 'Select a menu to edit:' ); ?></label> 842 842 <select name="menu" id="select-menu-to-edit"> -
wp-admin/privacy.php
19 19 20 20 <div class="about__header"> 21 21 <div class="about__header-image"> 22 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg'); ?>" />22 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo esc_url( admin_url( 'images/about-badge.svg' ) ); ?>" /> 23 23 </div> 24 24 25 25 <div class="about__header-container"> -
wp-admin/themes.php
250 250 </h1> 251 251 252 252 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 253 <a href="<?php echo admin_url( 'theme-install.php'); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a>253 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a> 254 254 <?php endif; ?> 255 255 256 256 <form class="search-form"></form> -
wp-admin/upload.php
87 87 <?php 88 88 if ( current_user_can( 'upload_files' ) ) { 89 89 ?> 90 <a href="<?php echo admin_url( 'media-new.php'); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_x( 'Add New', 'file' ); ?></a>90 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_x( 'Add New', 'file' ); ?></a> 91 91 <?php 92 92 } 93 93 ?> … … 270 270 <?php 271 271 if ( current_user_can( 'upload_files' ) ) { 272 272 ?> 273 <a href="<?php echo admin_url( 'media-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a>273 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a> 274 274 <?php 275 275 } 276 276 -
wp-admin/users.php
617 617 <?php 618 618 if ( current_user_can( 'create_users' ) ) { 619 619 ?> 620 <a href="<?php echo admin_url( 'user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>620 <a href="<?php echo esc_url( admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 621 621 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 622 <a href="<?php echo admin_url( 'user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>622 <a href="<?php echo esc_url( admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 623 623 <?php 624 624 } 625 625 -
wp-includes/class-wp-embed.php
88 88 ?> 89 89 <script type="text/javascript"> 90 90 jQuery(document).ready(function($){ 91 $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative'); ?>");91 $.get("<?php echo esc_url( admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ) ); ?>"); 92 92 }); 93 93 </script> 94 94 <?php