Ticket #7925: 7925.01.patch
File 7925.01.patch, 3.4 KB (added by , 7 years ago) |
---|
-
src/bp-templates/bp-nouveau/buddypress-functions.php
96 96 } else { 97 97 add_action( 'admin_init', function() { 98 98 if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX ) { 99 require $this->includes_dir . 'ajax.php';99 require bp_nouveau()->includes_dir . 'ajax.php'; 100 100 } 101 101 }, 0 ); 102 102 } 103 103 104 104 add_action( 'bp_customize_register', function() { 105 105 if ( bp_is_root_blog() && current_user_can( 'customize' ) ) { 106 require $this->includes_dir . 'customizer.php';106 require bp_nouveau()->includes_dir . 'customizer.php'; 107 107 } 108 108 }, 0 ); 109 109 -
src/bp-templates/bp-nouveau/includes/activity/loader.php
58 58 // Check to see if action is activity-specific. 59 59 ( false !== strpos( $_REQUEST['action'], 'activity' ) || ( 'post_update' === $_REQUEST['action'] ) ) 60 60 ) { 61 require $this->dir . 'ajax.php';61 require bp_nouveau()->activity->dir . 'ajax.php'; 62 62 } 63 63 } ); 64 64 } -
src/bp-templates/bp-nouveau/includes/blogs/loader.php
52 52 } else { 53 53 add_action( 'admin_init', function() { 54 54 if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'blogs_' ) ) { 55 require $this->dir . 'ajax.php';55 require bp_nouveau()->blogs->dir . 'ajax.php'; 56 56 } 57 57 } ); 58 58 } -
src/bp-templates/bp-nouveau/includes/friends/loader.php
50 50 } else { 51 51 add_action( 'admin_init', function() { 52 52 if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'friends_' ) ) { 53 require $this->dir . 'ajax.php';53 require bp_nouveau()->friends->dir . 'ajax.php'; 54 54 } 55 55 } ); 56 56 } -
src/bp-templates/bp-nouveau/includes/groups/loader.php
55 55 } else { 56 56 add_action( 'admin_init', function() { 57 57 if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'groups_' ) ) { 58 require $this->dir . 'ajax.php';58 require bp_nouveau()->groups->dir . 'ajax.php'; 59 59 } 60 60 } ); 61 61 } -
src/bp-templates/bp-nouveau/includes/messages/loader.php
53 53 } else { 54 54 add_action( 'admin_init', function() { 55 55 if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'messages_' ) ) { 56 require $this->dir . 'ajax.php';56 require bp_nouveau()->messages->dir . 'ajax.php'; 57 57 } 58 58 } ); 59 59 }