Revert media.php too, see #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d2d9926055
commit
b9843de7a6
@ -1984,6 +1984,30 @@ function _insert_into_post_button($type) {
|
||||
';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@internal Missing Short Description}}
|
||||
*
|
||||
* @since 2.6.0
|
||||
*/
|
||||
function media_upload_max_image_resize() {
|
||||
$checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
|
||||
$a = $end = '';
|
||||
|
||||
if ( current_user_can( 'manage_options' ) ) {
|
||||
$a = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">';
|
||||
$end = '</a>';
|
||||
}
|
||||
?>
|
||||
<p class="hide-if-no-js"><label>
|
||||
<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
|
||||
<?php
|
||||
/* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/
|
||||
printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) );
|
||||
?>
|
||||
</label></p>
|
||||
<?php
|
||||
}
|
||||
|
||||
add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
|
||||
add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
|
||||
add_filter( 'async_upload_video', 'get_media_item', 10, 2 );
|
||||
|
Loading…
Reference in New Issue
Block a user