Set versions to deprecate to 2.2, instead of 2.1 ofc
This commit is contained in:
parent
9478379041
commit
c5b67cf6a3
|
@ -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'] );
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue