Changeset 40028 for trunk/src/wp-includes/option.php
- Timestamp:
- 01/29/2017 11:49:49 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/option.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r39932 r40028 1914 1914 1915 1915 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 ); 1917 1922 $option_group = 'general'; 1918 1923 } 1919 1924 1920 1925 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 ); 1922 1932 $option_group = 'reading'; 1923 1933 } … … 1950 1960 1951 1961 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 ); 1953 1968 $option_group = 'general'; 1954 1969 } 1955 1970 1956 1971 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 ); 1958 1978 $option_group = 'reading'; 1959 1979 } … … 1964 1984 } 1965 1985 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 ); 1967 1993 remove_filter( "sanitize_option_{$option_name}", $deprecated ); 1968 1994 }
Note: See TracChangeset
for help on using the changeset viewer.