Changeset 9755 for trunk/src/bp-core/classes/class-bp-attachment.php
- Timestamp:
- 04/16/2015 10:11:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment.php
r9660 r9755 478 478 return wp_crop_image( $r['original_file'], (int) $r['crop_x'], (int) $r['crop_y'], (int) $r['crop_w'], (int) $r['crop_h'], (int) $r['dst_w'], (int) $r['dst_h'], $r['src_abs'], $r['dst_file'] ); 479 479 } 480 481 /** 482 * Build script datas for the Uploader UI 483 * 484 * Override this method from your child class to build the script datas 485 * 486 * @since BuddyPress (2.3.0) 487 * 488 * @return array the javascript localization data 489 */ 490 public function script_data() { 491 $script_data = array( 492 'action' => $this->action, 493 'file_data_name' => $this->file_input, 494 'max_file_size' => $this->original_max_filesize, 495 'feedback_messages' => array( 496 1 => __( 'Sorry, uploading the file failed.', 'buddypress' ), 497 2 => __( 'File successfully uploaded.', 'buddypress' ), 498 ), 499 ); 500 501 return $script_data; 502 } 480 503 }
Note: See TracChangeset
for help on using the changeset viewer.