Changeset 7095 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 05/22/2013 04:38:44 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/_inc/ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r7015 r7095 169 169 return; 170 170 171 // Bail if no object passed 172 if ( empty( $_POST['object'] ) ) 173 return; 174 175 // Sanitize the object 176 $object = sanitize_title( $_POST['object'] ); 177 178 // Bail if object is not an active component 179 if ( ! bp_is_active( $object ) ) 180 return; 181 171 182 /** 172 183 * AJAX requests happen too early to be seen by bp_update_is_directory() … … 175 186 * of themselves rather than the directory version. 176 187 */ 177 178 188 if ( ! bp_current_action() ) 179 189 bp_update_is_directory( true, bp_current_component() ); 180 181 // Sanitize the post object182 $object = esc_attr( $_POST['object'] );183 190 184 191 // Locate the object template
Note: See TracChangeset
for help on using the changeset viewer.