Skip to content

Commit

Permalink
Merge pull request #258 from vektor-inc/develop
Browse files Browse the repository at this point in the history
6.7.1
  • Loading branch information
kurudrive committed Feb 3, 2019
2 parents 972e826 + 6a39627 commit 989a4dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,6 @@ function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;

//カスタム投稿タイプアーカイブを表示する時、投稿アーカイブのcurrent_page_parentクラスを削除。
if ( is_post_type_archive() ) {

$index = array_search( 'current_page_parent', $classes );
array_splice( $classes, $index, 1 );

}

$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
$class_names = ' class="' . esc_attr( $class_names ) . '"';
$output .= $indent . '<li id="menu-item-' . $item->ID . '"' . $value . $class_names . '>';
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://lightning.nagoya
Description: Lightning is a very simple & easy to customize theme which is based on the Bootstrap. It is also very friendly with custom post types and custom taxonomies. When you add a new one, the breadcrumbs will be adjusted and posts will look beautifully without editing or adding a template files.
Author: Vektor,Inc.
Author URI: https://www.vektor-inc.co.jp
Version:6.7.0
Version:6.7.1
Tags: two-columns, one-column, right-sidebar, custom-colors, custom-menu, editor-style, E-Commerce
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down

0 comments on commit 989a4dd

Please sign in to comment.