@@ 1211-1219 (lines=9) @@ | ||
1208 | function add_settings_section($id, $title, $callback, $page) { |
|
1209 | global $wp_settings_sections; |
|
1210 | ||
1211 | if ( 'misc' == $page ) { |
|
1212 | _deprecated_argument( __FUNCTION__, '3.0.0', |
|
1213 | /* translators: %s: misc */ |
|
1214 | sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), |
|
1215 | 'misc' |
|
1216 | ) |
|
1217 | ); |
|
1218 | $page = 'general'; |
|
1219 | } |
|
1220 | ||
1221 | if ( 'privacy' == $page ) { |
|
1222 | _deprecated_argument( __FUNCTION__, '3.5.0', |
|
@@ 1272-1280 (lines=9) @@ | ||
1269 | function add_settings_field($id, $title, $callback, $page, $section = 'default', $args = array()) { |
|
1270 | global $wp_settings_fields; |
|
1271 | ||
1272 | if ( 'misc' == $page ) { |
|
1273 | _deprecated_argument( __FUNCTION__, '3.0.0', |
|
1274 | /* translators: %s: misc */ |
|
1275 | sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), |
|
1276 | 'misc' |
|
1277 | ) |
|
1278 | ); |
|
1279 | $page = 'general'; |
|
1280 | } |
|
1281 | ||
1282 | if ( 'privacy' == $page ) { |
|
1283 | _deprecated_argument( __FUNCTION__, '3.5.0', |
@@ 1916-1924 (lines=9) @@ | ||
1913 | $wp_registered_settings = array(); |
|
1914 | } |
|
1915 | ||
1916 | if ( 'misc' == $option_group ) { |
|
1917 | _deprecated_argument( __FUNCTION__, '3.0.0', |
|
1918 | /* translators: %s: misc */ |
|
1919 | sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), |
|
1920 | 'misc' |
|
1921 | ) |
|
1922 | ); |
|
1923 | $option_group = 'general'; |
|
1924 | } |
|
1925 | ||
1926 | if ( 'privacy' == $option_group ) { |
|
1927 | _deprecated_argument( __FUNCTION__, '3.5.0', |
|
@@ 1962-1970 (lines=9) @@ | ||
1959 | function unregister_setting( $option_group, $option_name, $deprecated = '' ) { |
|
1960 | global $new_whitelist_options, $wp_registered_settings; |
|
1961 | ||
1962 | if ( 'misc' == $option_group ) { |
|
1963 | _deprecated_argument( __FUNCTION__, '3.0.0', |
|
1964 | /* translators: %s: misc */ |
|
1965 | sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), |
|
1966 | 'misc' |
|
1967 | ) |
|
1968 | ); |
|
1969 | $option_group = 'general'; |
|
1970 | } |
|
1971 | ||
1972 | if ( 'privacy' == $option_group ) { |
|
1973 | _deprecated_argument( __FUNCTION__, '3.5.0', |