[wp-trac] [WordPress Trac] #19503: Add major core version global for easier plugin/theme development
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 13 19:42:27 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 |
------------------------------------+------------------------------
Changes (by mikeschinkel):
* cc: mikeschinkel@… (added)
Comment:
Replying to [comment:6 johnjamesjacoby]:
> Replying to [comment:5 sirzooro]:
> > You can use following code to reliable check for WP 3.3+:[[BR]]
> > `version_compare( $wp_version, '3.2.999', '>' );`
> True, but seems like a hack.
How about a `wp_major_version()` function instead?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19503#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list