media_upload_max_image_resize

The timeline below displays how wordpress function media_upload_max_image_resize has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.3

/**
 * Displays the checkbox to scale images.
 *
 * @since 3.3.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: Link start tag, 2: Link end tag, 3: Width, 4: Height. */
    printf(__('Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).'), $a, $end, (int) get_option('large_size_w', '1024'), (int) get_option('large_size_h', '1024'));
    ?>
	</label></p>
	<?php 
}

WordPress Version: 5.1

/**
 * Displays the checkbox to scale images.
 *
 * @since 3.3.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: link start tag, 2: link end tag, 3: width, 4: height */
    printf(__('Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).'), $a, $end, (int) get_option('large_size_w', '1024'), (int) get_option('large_size_h', '1024'));
    ?>
</label></p>
	<?php 
}

WordPress Version: 3.7

/**
 * Displays the checkbox to scale images.
 *
 * @since 3.3.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 &times; %4$d).'), $a, $end, (int) get_option('large_size_w', '1024'), (int) get_option('large_size_h', '1024'));
    ?>
</label></p>
<?php 
}