Welcart Carina 1.0.1 をリリース
2016 年 12 月 26 日
Welcart Carina 1.0.1 をリリースしました。
今回の更新内容は次の通りです。
- カスタムヘッダー レイアウト崩れ
- カスタムヘッダー デフォルト画像
- ログインなどのボタンの背景色が表示されない(※PCサイズ)
- 複合検索ページでサニタイズ漏れ
カスタムヘッダー レイアウト崩れ
welcart_basic-carina/style.css 761行目~ スタイル追加
.main-image img{ margin: 0 auto; }
カスタムヘッダー デフォルト画像
管理画面からメイン画像を切り替えると、デフォルトのメイン画像に戻すことが出来ない
welcart_basic-carina/functions.php 20行目~
修正前
register_default_headers( array( 'wcct-default' => array( 'url' => '%s/images/image-top.jpg', 'thumbnail_url' => '%s/images/image-top.jpg', ) ) );
修正前
register_default_headers( array( 'wcct-default' => array( 'url' => '%2$s/images/image-top.jpg', 'thumbnail_url' => '%2$s/images/image-top.jpg', ) ) );
ログインなどのボタンの背景色が表示されない(※PCサイズ)
welcart_basic-carina/inc/theme-customizer.php 1068行目~ スタイル追加
.menu-on #mobile-menu .membership a.usces_login_a, #mobile-menu .membership a.usces_logout_a, .menu-on #mobile-menu .membership a.usces_logout_a
welcart_basic-carina/inc/theme-customizer.php 1267行目~ スタイル追加
.menu-on #mobile-menu .membership a.usces_login_a:hover, #mobile-menu .membership a.usces_logout_a:hover, .menu-on #mobile-menu .membership a.usces_logout_a:hover
welcart_basic-carina/inc/theme-customizer.php 1302行目~ スタイル追加
#mobile-menu .membership a,
welcart_basic-carina/inc/theme-customizer.php 1335行目~ スタイル追加
#mobile-menu .membership a:hover,
welcart_basic-carina/inc/theme-customizer.php 1418行目~ スタイル削除
#mobile-menu .membership a, .widget_welcart_login a { color: <?php echo $sub_bg; ?>; }
複合検索ページでサニタイズ漏れ
welcart_basic-carina/wc_templates/wc_search_page.php 19行目
<?php $uscpaged = ( isset($_REQUEST['paged']) ) ? $_REQUEST['paged'] : 1; ?>
修正後
<?php $uscpaged = ( isset($_REQUEST['paged']) ) ? (int)$_REQUEST['paged'] : 1; ?>
welcart_basic-carina/wc_templates/wc_search_page.php 108行目
<input name="paged" id="usces_paged" type="hidden" value="<?php echo $uscpaged; ?>" />
修正後
<input name="paged" id="usces_paged" type="hidden" value="<?php esc_attr_e( $uscpaged ); ?>" />
カテゴリー: お知らせ, デザインテーマについて