Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/26/2018 12:06:50 PM (8 years ago)
Author:
djpaul
Message:

Increase WordPress minimum supported version to 4.6.

See https://codex.buddypress.org/getting-started/wordpress-version-compatibility/ for
how we decide which version of WordPress to maintain backwards compatibilty to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r11447 r12264  
    537537        if ( wp_script_is( 'bp-moment-locale', 'registered' ) ) {
    538538                wp_enqueue_script( 'bp-moment-locale' );
    539 
    540                 if ( function_exists( 'wp_add_inline_script' ) ) {
    541                         wp_add_inline_script ( 'bp-livestamp', bp_core_moment_js_config() );
    542                 } else {
    543                         add_action( 'wp_footer', '_bp_core_moment_js_config_footer', 20 );
    544                 }
     539                wp_add_inline_script ( 'bp-livestamp', bp_core_moment_js_config() );
    545540        }
    546541
     
    569564        return $inline_js;
    570565}
    571 
    572 /**
    573  * Print moment.js config in page footer.
    574  *
    575  * Will be removed once we set our minimum version of WP 4.5.
    576  *
    577  * @since 2.7.0
    578  *
    579  * @access private
    580  */
    581 function _bp_core_moment_js_config_footer() {
    582         if ( ! wp_script_is( 'bp-moment-locale' ) ) {
    583                 return;
    584         }
    585 
    586         printf( '<script>%s</script>', bp_core_moment_js_config() );
    587 }
Note: See TracChangeset for help on using the changeset viewer.