Merge pull request #11085 from shivapoudel/unused

Remove unused global var
This commit is contained in:
Mike Jolley 2016-06-10 14:48:41 +01:00 committed by GitHub
commit 0aa39eafef
2 changed files with 2 additions and 4 deletions

View File

@ -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' );

View File

@ -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 ) {