Changeset 31681
- Timestamp:
- 03/09/2015 02:10:36 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r31645 r31681 427 427 */ 428 428 do_action( 'post_edit_form_tag', $post ); 429 430 $referer = wp_get_referer(); 429 431 ?>> 430 432 <?php wp_nonce_field($nonce_action); ?> … … 435 437 <input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post_type ) ?>" /> 436 438 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status) ?>" /> 437 <input type="hidden" id="referredby" name="referredby" value="<?php echo esc_url(wp_get_referer()); ?>" />439 <input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" /> 438 440 <?php if ( ! empty( $active_post_lock ) ) { ?> 439 441 <input type="hidden" id="active_post_lock" value="<?php echo esc_attr( implode( ':', $active_post_lock ) ); ?>" /> -
trunk/src/wp-admin/edit-form-comment.php
r31641 r31681 169 169 do_meta_boxes(null, 'normal', $comment); 170 170 171 $referer = wp_get_referer(); 171 172 ?> 172 173 </div> … … 174 175 <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" /> 175 176 <input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" /> 176 <input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url( wp_get_referer() ); ?>" />177 <input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" /> 177 178 <?php wp_original_referer_field(true, 'previous'); ?> 178 179 <input type="hidden" name="noredir" value="1" /> -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r31513 r31681 362 362 $comment = $a_comment; 363 363 $the_comment_class = wp_get_comment_status( $comment->comment_ID ); 364 if ( ! $the_comment_class ) { 365 $the_comment_class = ''; 366 } 364 367 $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) ); 365 368 -
trunk/src/wp-admin/includes/post.php
r31392 r31681 1221 1221 if ( $ptype->hierarchical ) { 1222 1222 $uri = get_page_uri($post); 1223 $uri = untrailingslashit($uri); 1224 $uri = strrev( stristr( strrev( $uri ), '/' ) ); 1225 $uri = untrailingslashit($uri); 1223 if ( $uri ) { 1224 $uri = untrailingslashit($uri); 1225 $uri = strrev( stristr( strrev( $uri ), '/' ) ); 1226 $uri = untrailingslashit($uri); 1227 } 1226 1228 1227 1229 /** This filter is documented in wp-admin/edit-tag-form.php */ -
trunk/src/wp-admin/network/themes.php
r31200 r31681 175 175 <?php submit_button( _n( 'Yes, Delete this theme', 'Yes, Delete these themes', $themes_to_delete ), 'button', 'submit', false ); ?> 176 176 </form> 177 <form method="post" action="<?php echo esc_url(wp_get_referer()); ?>" style="display:inline;"> 177 <?php 178 $referer = wp_get_referer(); 179 ?> 180 <form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;"> 178 181 <?php submit_button( __( 'No, Return me to the theme list' ), 'button', 'submit', false ); ?> 179 182 </form> -
trunk/src/wp-admin/plugins.php
r31333 r31681 322 322 <?php submit_button( $data_to_delete ? __( 'Yes, Delete these files and data' ) : __( 'Yes, Delete these files' ), 'button', 'submit', false ); ?> 323 323 </form> 324 <form method="post" action="<?php echo esc_url(wp_get_referer()); ?>" style="display:inline;"> 324 <?php 325 $referer = wp_get_referer(); 326 ?> 327 <form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;"> 325 328 <?php submit_button( __( 'No, Return me to the plugin list' ), 'button', 'submit', false ); ?> 326 329 </form> -
trunk/src/wp-admin/upgrade.php
r31124 r31681 82 82 case 0: 83 83 $goback = wp_get_referer(); 84 $goback = esc_url_raw( $goback ); 85 $goback = urlencode( $goback ); 84 if ( $goback ) { 85 $goback = esc_url_raw( $goback ); 86 $goback = urlencode( $goback ); 87 } 86 88 ?> 87 89 <h2><?php _e( 'Database Update Required' ); ?></h2> -
trunk/src/wp-includes/class-http.php
r31290 r31681 183 183 if ( $r['reject_unsafe_urls'] ) 184 184 $url = wp_http_validate_url( $url ); 185 $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) ); 185 if ( $url ) { 186 $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) ); 187 } 186 188 } 187 189 -
trunk/src/wp-includes/theme.php
r31224 r31681 1051 1051 * @since 2.1.0 1052 1052 * 1053 * @return string 1053 * @return string|false 1054 1054 */ 1055 1055 function get_header_image() { … … 1154 1154 */ 1155 1155 function header_image() { 1156 echo esc_url( get_header_image() ); 1156 $image = get_header_image(); 1157 if ( $image ) { 1158 echo esc_url( $image ); 1159 } 1157 1160 } 1158 1161
Note: See TracChangeset
for help on using the changeset viewer.