Changeset 40028
- Timestamp:
- 01/29/2017 11:49:49 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r39936 r40028 1208 1208 1209 1209 if ( 'misc' == $page ) { 1210 _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); 1210 _deprecated_argument( __FUNCTION__, '3.0.0', 1211 /* translators: %s: misc */ 1212 sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 1213 'misc' 1214 ) 1215 ); 1211 1216 $page = 'general'; 1212 1217 } 1213 1218 1214 1219 if ( 'privacy' == $page ) { 1215 _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); 1220 _deprecated_argument( __FUNCTION__, '3.5.0', 1221 /* translators: %s: privacy */ 1222 sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 1223 'privacy' 1224 ) 1225 ); 1216 1226 $page = 'reading'; 1217 1227 } … … 1259 1269 1260 1270 if ( 'misc' == $page ) { 1261 _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 1271 _deprecated_argument( __FUNCTION__, '3.0.0', 1272 /* translators: %s: misc */ 1273 sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 1274 'misc' 1275 ) 1276 ); 1262 1277 $page = 'general'; 1263 1278 } 1264 1279 1265 1280 if ( 'privacy' == $page ) { 1266 _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) ); 1281 _deprecated_argument( __FUNCTION__, '3.5.0', 1282 /* translators: %s: privacy */ 1283 sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 1284 'privacy' 1285 ) 1286 ); 1267 1287 $page = 'reading'; 1268 1288 } -
trunk/src/wp-includes/category-template.php
r39639 r40028 343 343 // Back compat. 344 344 if ( isset( $args['type'] ) && 'link' == $args['type'] ) { 345 /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */346 345 _deprecated_argument( __FUNCTION__, '3.0.0', 346 /* translators: 1: "type => link", 2: "taxonomy => link_category" */ 347 347 sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 348 348 '<code>type => link</code>', -
trunk/src/wp-includes/category.php
r39188 r40028 42 42 // Back compat 43 43 if ( isset($args['type']) && 'link' == $args['type'] ) { 44 /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */45 44 _deprecated_argument( __FUNCTION__, '3.0.0', 45 /* translators: 1: "type => link", 2: "taxonomy => link_category" */ 46 46 sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 47 47 '<code>type => link</code>', -
trunk/src/wp-includes/class-wp-query.php
r39952 r40028 1714 1714 1715 1715 if ( isset( $q['caller_get_posts'] ) ) { 1716 _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) ); 1717 if ( !isset( $q['ignore_sticky_posts'] ) ) 1716 _deprecated_argument( 'WP_Query', '3.1.0', 1717 /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */ 1718 sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 1719 '<code>caller_get_posts</code>', 1720 '<code>ignore_sticky_posts</code>' 1721 ) 1722 ); 1723 1724 if ( ! isset( $q['ignore_sticky_posts'] ) ) { 1718 1725 $q['ignore_sticky_posts'] = $q['caller_get_posts']; 1726 } 1719 1727 } 1720 1728 -
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.