Merge pull request #11085 from shivapoudel/unused
Remove unused global var
This commit is contained in:
commit
0aa39eafef
|
@ -167,8 +167,6 @@ class WC_Admin_Permalink_Settings {
|
|||
return;
|
||||
}
|
||||
|
||||
global $wpdb;
|
||||
|
||||
// We need to save the options ourselves; settings api does not trigger save for the permalinks page.
|
||||
if ( isset( $_POST['permalink_structure'] ) ) {
|
||||
$permalinks = get_option( 'woocommerce_permalinks' );
|
||||
|
|
|
@ -31,8 +31,8 @@ function wc_sanitize_taxonomy_name( $taxonomy ) {
|
|||
*
|
||||
* Cannot use wc_clean because it sometimes strips % chars and breaks the user's setting.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @param string $taxonomy
|
||||
* @since 2.6.0
|
||||
* @param string $value
|
||||
* @return string
|
||||
*/
|
||||
function wc_sanitize_permalink( $value ) {
|
||||
|
|
Loading…
Reference in New Issue