Skip to content

Commit 6899e4d

Browse files
committed
Remove plugin global deprecating function
It unfortunately triggers a notice on every page load https://skyverge.slack.com/archives/woocommerce/p1464147410000620
1 parent 61f9d34 commit 6899e4d

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

i18n/languages/woocommerce-sequential-order-numbers.pot

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,24 @@ msgstr ""
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
1515

16-
#: woocommerce-sequential-order-numbers.php:458
16+
#: woocommerce-sequential-order-numbers.php:67
17+
#. translators: Placeholders: %s - plugin name
18+
msgid "You cannot clone instances of %s."
19+
msgstr ""
20+
21+
#: woocommerce-sequential-order-numbers.php:79
22+
#. translators: Placeholders: %s - plugin name
23+
msgid "You cannot unserialize instances of %s."
24+
msgstr ""
25+
26+
#: woocommerce-sequential-order-numbers.php:493
1727
#. Translators: %s - error message(s)
1828
msgid ""
1929
"Error activating and installing <strong>WooCommerce Sequential Order "
2030
"Numbers</strong>: %s"
2131
msgstr ""
2232

23-
#: woocommerce-sequential-order-numbers.php:459
33+
#: woocommerce-sequential-order-numbers.php:494
2434
msgid "&laquo; Go Back"
2535
msgstr ""
2636

woocommerce-sequential-order-numbers.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -544,26 +544,10 @@ function wc_sequential_order_numbers() {
544544
}
545545

546546

547-
/**
548-
* Returns the One True Instance of Sequential Order Numbers after warning that
549-
* the global has been deprecated
550-
*
551-
* @since 1.7.0
552-
* @return \WC_Seq_Order_Number
553-
*/
554-
function wc_sequential_order_numbers_deprecated_global() {
555-
556-
/* @deprecated since 1.7.0 */
557-
_deprecated_function( "\$GLOBALS['wc_seq_order_number']", '1.7.0', 'wc_sequential_order_numbers()' );
558-
559-
return wc_sequential_order_numbers();
560-
}
561-
562-
563547
/**
564548
* The WC_Seq_Order_Number global object
565549
* @deprecated 1.7.0
566550
* @name $wc_seq_order_number
567551
* @global WC_Seq_Order_Number $GLOBALS['wc_seq_order_number']
568552
*/
569-
$GLOBALS['wc_seq_order_number'] = wc_sequential_order_numbers_deprecated_global();
553+
$GLOBALS['wc_seq_order_number'] = wc_sequential_order_numbers();

0 commit comments

Comments
 (0)