[wp-trac] [WordPress Trac] #19503: Add major core version global for easier plugin/theme development

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 10 19:03:43 UTC 2011


#19503: Add major core version global for easier plugin/theme development
------------------------------------+------------------------------
 Reporter:  johnjamesjacoby         |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by sirzooro):

 You can use following code to reliable check for WP 3.3+:[[BR]]
 `version_compare( $wp_version, '3.2.999', '>' );`

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


More information about the wp-trac mailing list