Make WordPress Core

Changeset 41524


Ignore:
Timestamp:
09/19/2017 09:20:09 PM (8 years ago)
Author:
ocean90
Message:

Taxonomy/Users: Use correct escaping function for URLs.

Merge of [41522] to the 4.7 branch.

Location:
branches/4.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/edit-tag-form.php

    r41418 r41524  
    7575    <p><strong><?php echo $message; ?></strong></p>
    7676    <?php if ( $wp_http_referer ) { ?>
    77     <p><a href="<?php echo esc_url( wp_validate_redirect( wp_sanitize_redirect( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ); ?>"><?php
     77    <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ); ?>"><?php
    7878        /* translators: %s: taxonomy name */
    7979        printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name );
  • branches/4.7/src/wp-admin/user-edit.php

    r41418 r41524  
    183183    <?php endif; ?>
    184184    <?php if ( $wp_http_referer && false === strpos( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) : ?>
    185     <p><a href="<?php echo esc_url( wp_validate_redirect( wp_sanitize_redirect( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
     185    <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
    186186    <?php endif; ?>
    187187</div>
Note: See TracChangeset for help on using the changeset viewer.