Raindrops 1.114 before has bug when using IE10

Raindrops 1.114 before has bug when using IE10

ie10-nav-menu

* Quick Fix

functions.php line:290

if ( $is_IE ) {
        preg_match( "|(MSIE )([0-9])(\.)|si", $_SERVER['HTTP_USER_AGENT'], $regs );
        if ( $regs[2] < 9 ) {
            $raindrops_fluid_minimum_width = '640';

        }
    }

above code change below

if ( $is_IE ) {
        preg_match( "|(MSIE )([0-9]{1,2})(\.)|si", $_SERVER['HTTP_USER_AGENT'], $regs );
        if ( $regs[2] < 9 ) {
            $raindrops_fluid_minimum_width = '640';

        }
    }

change from [0-9] to [0-9]{1,2}.

functions.php line:612

switch( true ) {
					/* 略*/
                case( $is_IE ):
                    preg_match( " |(MSIE )([0-9])(\.)|si", $_SERVER['HTTP_USER_AGENT'], $regs );
                    $classes[]      = 'ie'.$regs[2];
                break;
					/* 略*/

            }

switch( true ) {
					/* 略*/
                case( $is_IE ):
                    preg_match( " |(MSIE )([0-9]{1,2})(\.)|si", $_SERVER['HTTP_USER_AGENT'], $regs );
                    $classes[]      = 'ie'.$regs[2];
                break;
					/* 略*/

            }

change from [0-9] to [0-9]{1,2}

This bug will be fixed Raindrops.1.114


コメントは受け付けていません。