[wp-trac] [WordPress Trac] #23739: Modernizr

WordPress Trac noreply at wordpress.org
Wed Jun 12 15:48:51 UTC 2013


#23739: Modernizr
--------------------------------+----------------------
 Reporter:  yramagicman         |       Owner:
     Type:  feature request     |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  External Libraries  |     Version:  3.5
 Severity:  normal              |  Resolution:  wontfix
 Keywords:  close               |
--------------------------------+----------------------

Comment (by Looimaster):

 I see and I'm very happy that full jQuery UI is there. It should stay
 there.

 Well, I think that Modernizr should be used in WordPress core because it
 is as simple as this:

 {{{
 if ( Modernizr.touch ) {
   // do something like replace <video> with its poster image
 }
 }}}

 or

 {{{
 .touch .element { display: none; }
 }}}

 And detecting user agents in wp_is_mobile() isn't reliable and not
 applicable to CSS. That's just my suggestion. jQuery is used by 95 out of
 100 people and Modernizr would be used by perhaps 10/100 people.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23739#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list