Changeset 51177
- Timestamp:
- 06/17/2021 02:35:59 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r50535 r51177 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 … … 180 180 <div class="column about__image"> 181 181 <picture> 182 <source media="(max-width: 600px)" srcset="<?php echo admin_url( 'images/about-color-palette-vert.svg'); ?>" />183 <img alt="" src="<?php echo admin_url( 'images/about-color-palette.svg'); ?>" />182 <source media="(max-width: 600px)" srcset="<?php echo esc_url( admin_url( 'images/about-color-palette-vert.svg' ) ); ?>" /> 183 <img alt="" src="<?php echo esc_url( admin_url( 'images/about-color-palette.svg' ) ); ?>" /> 184 184 </picture> 185 185 </div> -
trunk/src/wp-admin/comment.php
r48991 r51177 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> … … 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 -
trunk/src/wp-admin/credits.php
r50523 r51177 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 -
trunk/src/wp-admin/edit-tag-form.php
r50769 r51177 301 301 <?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?> 302 302 <span id="delete-link"> 303 <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>303 <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> 304 304 </span> 305 305 <?php endif; ?> -
trunk/src/wp-admin/freedoms.php
r50523 r51177 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 -
trunk/src/wp-admin/includes/dashboard.php
r51120 r51177 1997 1997 <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> 1998 1998 <?php endif; ?> 1999 <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php'); ?>"><?php _e( 'Customize Your Site' ); ?></a>1999 <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> 2000 2000 <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?> 2001 2001 <?php $themes_link = current_user_can( 'customize' ) ? add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ) : admin_url( 'themes.php' ); ?> -
trunk/src/wp-admin/includes/image-edit.php
r50810 r51177 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; ?>')" 94 src="<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) . '?action=imgedit-preview&_ajax_nonce=' . $nonce . '&postid=' . $post_id . '&rand=' . rand( 1, 99999 ); ?>" alt="" /> 94 95 </div> 95 96 -
trunk/src/wp-admin/media-new.php
r49384 r51177 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(); ?> -
trunk/src/wp-admin/nav-menus.php
r51010 r51177 690 690 691 691 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>"> 692 <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>692 <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> 693 693 <?php 694 694 if ( $num_locations && $menu_count ) { … … 841 841 </span><!-- /add-edit-menu-action --> 842 842 <?php else : ?> 843 <form method="get" action="<?php echo admin_url( 'nav-menus.php'); ?>">843 <form method="get" action="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"> 844 844 <input type="hidden" name="action" value="edit" /> 845 845 <label for="select-menu-to-edit" class="selected-menu"><?php _e( 'Select a menu to edit:' ); ?></label> -
trunk/src/wp-admin/privacy.php
r50523 r51177 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 -
trunk/src/wp-admin/themes.php
r51083 r51177 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 -
trunk/src/wp-admin/upload.php
r51163 r51177 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 } … … 273 273 if ( current_user_can( 'upload_files' ) ) { 274 274 ?> 275 <a href="<?php echo admin_url( 'media-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a>275 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a> 276 276 <?php 277 277 } -
trunk/src/wp-admin/users.php
r50582 r51177 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 } -
trunk/src/wp-includes/class-wp-embed.php
r51058 r51177 87 87 return; 88 88 } 89 90 89 ?> 91 90 <script type="text/javascript"> 92 91 jQuery(document).ready(function($){ 93 $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>");92 $.get("<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) . '?action=oembed-cache&post=' . $post->ID; ?>"); 94 93 }); 95 94 </script>
Note: See TracChangeset
for help on using the changeset viewer.