[wp-trac] [WordPress Trac] #24568: Modernizr a part of WordPress?
WordPress Trac
noreply at wordpress.org
Wed Jun 12 09:00:59 UTC 2013
#24568: Modernizr a part of WordPress?
--------------------------+-----------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
--------------------------+-----------------------------
I think that Modernizr is currently the best and highly useful library for
detecting browser features. Something as useful as jQuery or Iris
Colorpicker.
Shouldn't it become a part of WordPress? Many plugins and themes add it
and developers need to use "function_exists" checks to prevent conflicts.
Having:
{{{
<script>
if ( Modernizr.touch ) {
}
</script>
}}}
instead of for instance:
{{{
<?php
if ( wp_is_mobile() ) {
}
?>
}}}
would be great!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24568>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list