Skip to:
Content

bbPress.org

Changeset 6051


Ignore:
Timestamp:
06/02/2016 02:22:05 AM (3 years ago)
Author:
netweb
Message:

Introduce bbp_get_major_wp_version() function to help checking against WordPress versions

See #2874

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/abstraction.php

    r5951 r6051  
    129129    return apply_filters( 'bbp_pretty_urls', $retval );
    130130}
     131
     132/**
     133 * Parse the WordPress core version number
     134 *
     135 * @since 2.6.0 bbPress (r6051)
     136 *
     137 * @global string $wp_version
     138 *
     139 * @return string $wp_version
     140 */
     141function bbp_get_major_wp_version() {
     142    global $wp_version;
     143
     144    return (float) $wp_version;
     145}
Note: See TracChangeset for help on using the changeset viewer.