~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-includes/load.php

  • Committer: Jamon Camisso
  • Date: 2017-01-12 15:30:45 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: jamon.camisso@canonical.com-20170112153045-dekfwsu8mcsdxa7x
New upstream release 4.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
 * @access private
473
473
 */
474
474
function wp_start_object_cache() {
 
475
        global $wp_filter;
 
476
 
475
477
        $first_init = false;
476
478
        if ( ! function_exists( 'wp_cache_init' ) ) {
477
479
                if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
479
481
                        if ( function_exists( 'wp_cache_init' ) ) {
480
482
                                wp_using_ext_object_cache( true );
481
483
                        }
 
484
 
 
485
                        // Re-initialize any hooks added manually by object-cache.php
 
486
                        if ( $wp_filter ) {
 
487
                                $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter );
 
488
                        }
482
489
                }
483
490
 
484
491
                $first_init = true;