Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/20/2018 08:29:17 PM (8 years ago)
Author:
boonebgorges
Message:

Avoid the use of $this inside closures in Nouveau AJAX handlers.

This construction is not compatible with PHP 5.3.

Props r-a-y.
Fixes #7925.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r12156 r12192  
    9797            add_action( 'admin_init', function() {
    9898                if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX ) {
    99                     require $this->includes_dir . 'ajax.php';
     99                    require bp_nouveau()->includes_dir . 'ajax.php';
    100100                }
    101101            }, 0 );
     
    104104        add_action( 'bp_customize_register', function() {
    105105            if ( bp_is_root_blog() && current_user_can( 'customize' ) ) {
    106                 require $this->includes_dir . 'customizer.php';
     106                require bp_nouveau()->includes_dir . 'customizer.php';
    107107            }
    108108        }, 0 );
Note: See TracChangeset for help on using the changeset viewer.