Set versions to deprecate to 2.2, instead of 2.1 ofc

This commit is contained in:
Coen Jacobs 2013-05-21 12:04:28 +02:00
parent 9478379041
commit c5b67cf6a3
2 changed files with 2 additions and 2 deletions

View File

@ -1034,7 +1034,7 @@ class WC_Shortcodes {
), $atts);
if ( isset( $atts['per_page'] ) ) {
_deprecated_argument( __CLASS__ . '->' . __FUNCTION__, '2.1', __( 'Use $args["posts_per_page"] instead. Deprecated argument will be removed in WC 2.1.', 'woocommerce' ) );
_deprecated_argument( __CLASS__ . '->' . __FUNCTION__, '2.1', __( 'Use $args["posts_per_page"] instead. Deprecated argument will be removed in WC 2.2.', 'woocommerce' ) );
$atts['posts_per_page'] = $atts['per_page'];
unset( $atts['per_page'] );
}

View File

@ -847,7 +847,7 @@ if ( ! function_exists( 'woocommerce_related_products' ) ) {
*/
function woocommerce_related_products( $args = array(), $columns = false, $orderby = false ) {
if ( ! is_array( $args ) ) {
_deprecated_argument( __CLASS__ . '->' . __FUNCTION__, '2.1', __( 'Use $args argument as an array instead. Deprecated argument will be removed in WC 2.1.', 'woocommerce' ) );
_deprecated_argument( __CLASS__ . '->' . __FUNCTION__, '2.1', __( 'Use $args argument as an array instead. Deprecated argument will be removed in WC 2.2.', 'woocommerce' ) );
$argsvalue = $args;