WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/01/2019 12:23:54 PM (8 months ago)
Author:
SergeyBiryukov
Message:

I18N: Merge similar strings about allowed space allocation in Multisite.

Props ramiy, Jonathandejong, pento.
Fixes #42223.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms-deprecated.php

    r40922 r45082  
    1717 */
    1818function wpmu_menu() {
    19     _deprecated_function(__FUNCTION__, '3.0.0' );
     19    _deprecated_function( __FUNCTION__, '3.0.0' );
    2020    // Deprecated. See #11763.
    2121}
     
    2828 */
    2929function wpmu_checkAvailableSpace() {
    30     _deprecated_function(__FUNCTION__, '3.0.0', 'is_upload_space_available()' );
     30    _deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );
    3131
    32     if ( !is_upload_space_available() )
    33         wp_die( __('Sorry, you must delete files before you can upload any more.') );
     32    if ( ! is_upload_space_available() ) {
     33        wp_die( sprintf(
     34            /* translators: %s: allowed space allocation */
     35            __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
     36            size_format( get_space_allowed() * MB_IN_BYTES )
     37        ) );
     38    }
    3439}
    3540
     
    4045 */
    4146function mu_options( $options ) {
    42     _deprecated_function(__FUNCTION__, '3.0.0' );
     47    _deprecated_function( __FUNCTION__, '3.0.0' );
    4348    return $options;
    4449}
     
    5156 */
    5257function activate_sitewide_plugin() {
    53     _deprecated_function(__FUNCTION__, '3.0.0', 'activate_plugin()' );
     58    _deprecated_function( __FUNCTION__, '3.0.0', 'activate_plugin()' );
    5459    return false;
    5560}
     
    6267 */
    6368function deactivate_sitewide_plugin( $plugin = false ) {
    64     _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' );
     69    _deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' );
    6570}
    6671
     
    7277 */
    7378function is_wpmu_sitewide_plugin( $file ) {
    74     _deprecated_function(__FUNCTION__, '3.0.0', 'is_network_only_plugin()' );
     79    _deprecated_function( __FUNCTION__, '3.0.0', 'is_network_only_plugin()' );
    7580    return is_network_only_plugin( $file );
    7681}
Note: See TracChangeset for help on using the changeset viewer.