Changeset 11043
- Timestamp:
- 08/30/2016 04:48:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
r11041 r11043 454 454 455 455 $class = $current_field->type != $type ? 'display: none;' : ''; 456 $current_type_obj = bp_xprofile_create_field_type( $type );457 456 458 457 $settings = self::get_field_settings( $current_field->id ); … … 601 600 } 602 601 602 /** 603 * Gets the default date formats available when configuring a Date field. 604 * 605 * @since 2.7.0 606 * 607 * @return array 608 */ 603 609 public function get_date_formats() { 604 610 $date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y', 'buddypress' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) ); 605 611 612 613 /** 614 * Filters the available date formats for XProfile date fields. 615 * 616 * @since 2.7.0 617 * 618 * @param array $date_formats 619 */ 606 620 return apply_filters( 'bp_xprofile_date_field_date_formats', $date_formats ); 607 621 }
Note: See TracChangeset
for help on using the changeset viewer.