public function _remove_current_classes( $items, $args ) {
		if ( is_customize_preview() ) {
			return $items;
		}

		if ( ! static::_is_caching_nav_menus() ) {
			return $items;
		}

		if ( ! $this->_is_caching_nav_menu( $args->theme_location ) ) {
			return $items;
		}

		foreach ( $items as $items_index => $item ) {
			foreach ( $item->classes as $index => $class ) {
				if ( false === strpos( $class, 'current' ) ) {
					continue;
				}
				unset( $items[ $items_index ]->classes[ $index ] );
			}
		}
		return $items;
	}
public function _remove_current_classes( $items, $args ) {
		if ( is_customize_preview() ) {
			return $items;
		}

		if ( ! static::_is_caching_nav_menus() ) {
			return $items;
		}

		if ( ! $this->_is_caching_nav_menu( $args->theme_location ) ) {
			return $items;
		}

		foreach ( $items as $items_index => $item ) {
			foreach ( $item->classes as $index => $class ) {
				if ( false === strpos( $class, 'current' ) ) {
					continue;
				}
				unset( $items[ $items_index ]->classes[ $index ] );
			}
		}
		return $items;
	}
public function _remove_current_classes ( $ items , $ args ) { if ( is_customize_preview ( ) ) { return $ items ; } if ( ! static :: _is_caching_nav_menus ( ) ) { return $ items ; } if ( ! $ this -> _is_caching_nav_menu ( $ args -> theme_location ) ) { return $ items ; } foreach ( $ items as $ items_index => $ item ) { foreach ( $ item -> classes as $ index => $ class ) { if ( false === strpos ( $ class , 'current' ) ) { continue ; } unset ( $ items [ $ items_index ] -> classes [ $ index ] ) ; } } return $ items ; }
Remove current classes

@param string $items The menu items, sorted by each menu item's menu order.
@param stdClass $args  An object containing wp_nav_menu() arguments.
@return string
Remove current classes