Ticket #39020: 39020.patch
| File 39020.patch, 1.4 KB (added by , 9 years ago) |
|---|
-
wp-includes/class-wp-query.php
1711 1711 $page = 1; 1712 1712 1713 1713 if ( isset( $q['caller_get_posts'] ) ) { 1714 _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) ); 1714 _deprecated_argument( 'WP_Query', '3.1.0', 1715 sprintf( 1716 __( '%1$s is deprecated. Use %2$s instead.' ), 1717 '<code>caller_get_posts</code>', 1718 '<code>ignore_sticky_posts</code>' 1719 ) 1720 ); 1715 1721 if ( !isset( $q['ignore_sticky_posts'] ) ) 1716 1722 $q['ignore_sticky_posts'] = $q['caller_get_posts']; 1717 1723 } -
wp-includes/option.php
1950 1950 unset( $new_whitelist_options[ $option_group ][ $pos ] ); 1951 1951 } 1952 1952 if ( '' !== $deprecated ) { 1953 _deprecated_argument( __FUNCTION__, '4.7.0', __( '$sanitize_callback is deprecated. The callback from register_setting() is used instead.' ) ); 1953 _deprecated_argument( __FUNCTION__, '4.7.0', 1954 sprintf( 1955 __( '%1$s is deprecated. Use %2$s instead.' ), 1956 '<code>$sanitize_callback</code>', 1957 '<code>register_setting()</code>' 1958 ) 1959 ); 1954 1960 remove_filter( "sanitize_option_{$option_name}", $deprecated ); 1955 1961 } 1956 1962