Changeset 433
- Timestamp:
- 02/26/2014 03:13:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php
r426 r433 100 100 // Return error if not a valid activity request. 101 101 if ( true !== apply_filters( 'wporg_is_valid_activity_request', false ) ) { 102 die( '-1 Not a valid activity request .' );102 die( '-1 Not a valid activity request' ); 103 103 } 104 104 105 105 // Return error if activities are not enabled. 106 106 if ( ! bp_is_active( 'activity' ) ) { 107 die( '-1 Activity component not activated .' );107 die( '-1 Activity component not activated' ); 108 108 } 109 109 … … 137 137 break; 138 138 default: 139 $activity_id = '-1 Unrecognized activity source .';139 $activity_id = '-1 Unrecognized activity source'; 140 140 break; 141 141 } 142 142 143 143 if ( false === $activity_id ) { 144 $activity_id = '-1 Unable to save activity .';144 $activity_id = '-1 Unable to save activity'; 145 145 } 146 146 … … 160 160 161 161 if ( ! $user ) { 162 return "-1 Activity reported for unrecognized user ({$_POST['user']}).";162 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user'] ); 163 163 } 164 164 … … 208 208 209 209 if ( ! $user ) { 210 return "-1 Activity reported for unrecognized user ({$_POST['user']}).";210 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user'] ); 211 211 } 212 212 … … 240 240 241 241 if ( ! $user ) { 242 return "-1 Activity reported for unrecognized user ({$_POST['user']}).";242 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user'] ); 243 243 } 244 244 … … 277 277 278 278 if ( ! $user ) { 279 return "-1 Activity reported for unrecognized user ({$_POST['user']}).";279 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user'] ); 280 280 } 281 281 … … 360 360 361 361 if ( ! $user ) { 362 return "-1 Activity reported for unrecognized user ({$_POST['user_id']}).";362 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user_id'] ); 363 363 } 364 364 … … 434 434 435 435 if ( ! $user ) { 436 return "-1 Activity reported for unrecognized user ({$_POST['user']}).";436 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user'] ); 437 437 } 438 438
Note: See TracChangeset
for help on using the changeset viewer.