Changeset 11901 for trunk/src/bp-templates/bp-nouveau/includes/ajax.php
- Timestamp:
- 03/19/2018 04:43:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/ajax.php
r11899 r11901 12 12 * Load the template loop for the current object. 13 13 * 14 * @return string Prints template loop for the specified object15 14 * @since 3.0.0 15 * 16 * @return string Template loop for the specified object 16 17 */ 17 18 function bp_nouveau_ajax_object_template_loader() { … … 41 42 $scope = ''; 42 43 if ( ! empty( $_POST['scope'] ) ) { 43 $scope = $_POST['scope'];44 $scope = sanitize_text_field( $_POST['scope'] ); 44 45 } 45 46 … … 71 72 break; 72 73 default: 73 $feed_url = home_url( bp_get_activity_root_slug() . '/feed/');74 $feed_url = bp_get_sitewide_activity_feed_link(); 74 75 break; 75 76 } 76 77 77 $result['feed_url'] = apply_filters( 'bp_ legacy_theme_activity_feed_url', $feed_url, $scope );78 $result['feed_url'] = apply_filters( 'bp_nouveau_ajax_object_template_loader', $feed_url, $scope ); 78 79 } 79 80 … … 113 114 114 115 $template_path = bp_locate_template( array( $template_part ), false ); 115 $template_path = apply_filters( 'bp_ legacy_object_template_path', $template_path );116 $template_path = apply_filters( 'bp_nouveau_object_template_path', $template_path ); 116 117 117 118 load_template( $template_path ); … … 129 130 * 130 131 * @param array $ajax_actions { 131 * Multi-dimensional array. For example:132 * Optional. Multi-dimensional array. For example: 132 133 * 133 134 * $ajax_actions = array( … … 140 141 * - 'nopriv' indicates whether the AJAX action is allowed for logged-out users. 141 142 * } 143 * 142 144 * @return array 143 145 */
Note: See TracChangeset
for help on using the changeset viewer.