Changeset 47974
- Timestamp:
- 06/10/2020 06:42:10 PM (4 years ago)
- Location:
- branches/4.6
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
- Property svn:mergeinfo changed
/trunk merged: 47947-47951
- Property svn:mergeinfo changed
-
branches/4.6/src/wp-admin/includes/media.php
r40461 r47974 2808 2808 if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) { 2809 2809 echo ': ' . __( 'Displayed on attachment pages.' ); 2810 } ?></label> 2811 <?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?> 2810 } 2811 2812 ?> 2813 </label> 2814 <?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?> 2812 2815 2813 2816 </div> -
branches/4.6/src/wp-admin/includes/misc.php
r38024 r47974 437 437 break; 438 438 default: 439 if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { 440 /** 441 * Filters a screen option value before it is set. 442 * 443 * The filter can also be used to modify non-standard [items]_per_page 444 * settings. See the parent function for a full list of standard options. 445 * 446 * Returning false to the filter will skip saving the current option. 447 * 448 * @since 2.8.0 449 * @since 5.4.2 Only applied to options ending with '_page', 450 * or the 'layout_columns' option. 451 * 452 * @see set_screen_options() 453 * 454 * @param bool $keep Whether to save or skip saving the screen option value. 455 * Default false. 456 * @param string $option The option name. 457 * @param int $value The number of rows to use. 458 */ 459 $value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 460 } 439 461 440 462 /** 441 463 * Filters a screen option value before it is set. 442 464 * 443 * The filter can also be used to modify non-standard [items]_per_page 444 * settings. See the parent function for a full list of standard options. 465 * The dynamic portion of the hook, `$option`, refers to the option name. 445 466 * 446 467 * Returning false to the filter will skip saving the current option. 447 468 * 448 * @since 2.8.0469 * @since 5.4.2 449 470 * 450 471 * @see set_screen_options() 451 472 * 452 * @param bool|int $value Screen option value. Default false to skip. 453 * @param string $option The option name. 454 * @param int $value The number of rows to use. 473 * @param bool $keep Whether to save or skip saving the screen option value. 474 * Default false. 475 * @param string $option The option name. 476 * @param int $value The number of rows to use. 455 477 */ 456 $value = apply_filters( 'set-screen-option', false, $option, $value );478 $value = apply_filters( "set_screen_option_{$option}", false, $option, $value ); 457 479 458 480 if ( false === $value ) -
branches/4.6/src/wp-admin/themes.php
r38071 r47974 323 323 <?php foreach ( $broken_themes as $broken_theme ) : ?> 324 324 <tr> 325 <td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?></td>325 <td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?></td> 326 326 <td><?php echo $broken_theme->errors()->get_error_message(); ?></td> 327 327 <?php -
branches/4.6/src/wp-includes/pluggable.php
r46496 r47974 1282 1282 **/ 1283 1283 function wp_validate_redirect($location, $default = '') { 1284 $location = trim( $location, " \t\n\r\0\x08\x0B");1284 $location = wp_sanitize_redirect( trim( $location, " \t\n\r\0\x08\x0B" ) ); 1285 1285 // browsers will assume 'http' is your protocol, and will obey a redirect to a URL starting with '//' 1286 1286 if ( substr($location, 0, 2) == '//' )
Note: See TracChangeset
for help on using the changeset viewer.