[wp-trac] [WordPress Trac] #19503: Add major core version global for easier plugin/theme development
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 11 00:15:31 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 johnbillion):
You can also use `floatval($wp_version)` to get the major version number.
A `$wp_major_version` variable would be nice though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19503#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list