Make WordPress Core


Ignore:
Timestamp:
09/19/2017 11:10:17 AM (7 years ago)
Author:
ocean90
Message:

Taxonomy/Users: Provide a fallback for incorrect HTTP referrers.

Merge of [41398] to the 4.8 branch.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

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

    r40668 r41417  
    7575    <p><strong><?php echo $message; ?></strong></p>
    7676    <?php if ( $wp_http_referer ) { ?>
    77     <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php
     77    <p><a href="<?php echo esc_url( wp_validate_redirect( wp_sanitize_redirect( $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 );
Note: See TracChangeset for help on using the changeset viewer.