upload_space_setting

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

WordPress Version: 6.5

/**
 * Displays the site upload space quota setting form on the Edit Site Settings screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the site to display the setting for.
 */
function upload_space_setting($id)
{
    switch_to_blog($id);
    $quota = get_option('blog_upload_space');
    restore_current_blog();
    if (!$quota) {
        $quota = '';
    }
    ?>
	<tr>
		<th><label for="blog-upload-space-number"><?php 
    _e('Site Upload Space Quota');
    ?></label></th>
		<td>
			<input type="number" step="1" min="0" style="width: 100px"
				name="option[blog_upload_space]" id="blog-upload-space-number"
				aria-describedby="blog-upload-space-desc" value="<?php 
    echo esc_attr($quota);
    ?>" />
			<span id="blog-upload-space-desc"><span class="screen-reader-text">
				<?php 
    /* translators: Hidden accessibility text. */
    _e('Size in megabytes');
    ?>
			</span> <?php 
    _e('MB (Leave blank for network default)');
    ?></span>
		</td>
	</tr>
	<?php 
}

WordPress Version: 6.2

/**
 * Displays the site upload space quota setting form on the Edit Site Settings screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the site to display the setting for.
 */
function upload_space_setting($id)
{
    switch_to_blog($id);
    $quota = get_option('blog_upload_space');
    restore_current_blog();
    if (!$quota) {
        $quota = '';
    }
    ?>
	<tr>
		<th><label for="blog-upload-space-number"><?php 
    _e('Site Upload Space Quota');
    ?></label></th>
		<td>
			<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php 
    echo $quota;
    ?>" />
			<span id="blog-upload-space-desc"><span class="screen-reader-text">
				<?php 
    /* translators: Hidden accessibility text. */
    _e('Size in megabytes');
    ?>
			</span> <?php 
    _e('MB (Leave blank for network default)');
    ?></span>
		</td>
	</tr>
	<?php 
}

WordPress Version: 4.5

/**
 * Displays the site upload space quota setting form on the Edit Site Settings screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the site to display the setting for.
 */
function upload_space_setting($id)
{
    switch_to_blog($id);
    $quota = get_option('blog_upload_space');
    restore_current_blog();
    if (!$quota) {
        $quota = '';
    }
    ?>
	<tr>
		<th><label for="blog-upload-space-number"><?php 
    _e('Site Upload Space Quota');
    ?></label></th>
		<td>
			<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php 
    echo $quota;
    ?>" />
			<span id="blog-upload-space-desc"><span class="screen-reader-text"><?php 
    _e('Size in megabytes');
    ?></span> <?php 
    _e('MB (Leave blank for network default)');
    ?></span>
		</td>
	</tr>
	<?php 
}

WordPress Version: 4.2

/**
 * Displays the edit blog upload space setting form on the Edit Blog screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the blog to display the setting for.
 */
function upload_space_setting($id)
{
    switch_to_blog($id);
    $quota = get_option('blog_upload_space');
    restore_current_blog();
    if (!$quota) {
        $quota = '';
    }
    ?>
	<tr>
		<th><label for="blog-upload-space-number"><?php 
    _e('Site Upload Space Quota');
    ?></label></th>
		<td>
			<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php 
    echo $quota;
    ?>" />
			<span id="blog-upload-space-desc"><span class="screen-reader-text"><?php 
    _e('Size in megabytes');
    ?></span> <?php 
    _e('MB (Leave blank for network default)');
    ?></span>
		</td>
	</tr>
	<?php 
}

WordPress Version: 4.1

/**
 * Displays the edit blog upload space setting form on the Edit Blog screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the blog to display the setting for.
 */
function upload_space_setting($id)
{
    switch_to_blog($id);
    $quota = get_option('blog_upload_space');
    restore_current_blog();
    if (!$quota) {
        $quota = '';
    }
    ?>
	<tr>
		<th><?php 
    _e('Site Upload Space Quota ');
    ?></th>
		<td><input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" value="<?php 
    echo $quota;
    ?>" /> <?php 
    _e('MB (Leave blank for network default)');
    ?></td>
	</tr>
	<?php 
}

WordPress Version: 3.7

// Edit blog upload space setting on Edit Blog page
function upload_space_setting($id)
{
    switch_to_blog($id);
    $quota = get_option('blog_upload_space');
    restore_current_blog();
    if (!$quota) {
        $quota = '';
    }
    ?>
	<tr>
		<th><?php 
    _e('Site Upload Space Quota ');
    ?></th>
		<td><input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" value="<?php 
    echo $quota;
    ?>" /> <?php 
    _e('MB (Leave blank for network default)');
    ?></td>
	</tr>
	<?php 
}