Make WordPress Core


Ignore:
Timestamp:
01/29/2017 11:49:49 AM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Merge similar strings in _deprecated_argument() calls.

Add translator comments.

Props ramiy, SergeyBiryukov.
Fixes #39020.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r39932 r40028  
    19141914
    19151915    if ( 'misc' == $option_group ) {
    1916         _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1916        _deprecated_argument( __FUNCTION__, '3.0.0',
     1917            /* translators: %s: misc */
     1918            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1919                'misc'
     1920            )
     1921        );
    19171922        $option_group = 'general';
    19181923    }
    19191924
    19201925    if ( 'privacy' == $option_group ) {
    1921         _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1926        _deprecated_argument( __FUNCTION__, '3.5.0',
     1927            /* translators: %s: privacy */
     1928            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1929                'privacy'
     1930            )
     1931        );
    19221932        $option_group = 'reading';
    19231933    }
     
    19501960
    19511961    if ( 'misc' == $option_group ) {
    1952         _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1962        _deprecated_argument( __FUNCTION__, '3.0.0',
     1963            /* translators: %s: misc */
     1964            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1965                'misc'
     1966            )
     1967        );
    19531968        $option_group = 'general';
    19541969    }
    19551970
    19561971    if ( 'privacy' == $option_group ) {
    1957         _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1972        _deprecated_argument( __FUNCTION__, '3.5.0',
     1973            /* translators: %s: privacy */
     1974            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1975                'privacy'
     1976            )
     1977        );
    19581978        $option_group = 'reading';
    19591979    }
     
    19641984    }
    19651985    if ( '' !== $deprecated ) {
    1966         _deprecated_argument( __FUNCTION__, '4.7.0', __( '$sanitize_callback is deprecated. The callback from register_setting() is used instead.' ) );
     1986        _deprecated_argument( __FUNCTION__, '4.7.0',
     1987            /* translators: 1: $sanitize_callback, 2: register_setting() */
     1988            sprintf( __( '%1$s is deprecated. The callback from %2$s is used instead.' ),
     1989                '<code>$sanitize_callback</code>',
     1990                '<code>register_setting()</code>'
     1991            )
     1992        );
    19671993        remove_filter( "sanitize_option_{$option_name}", $deprecated );
    19681994    }
Note: See TracChangeset for help on using the changeset viewer.