Skip to:
Content

BuddyPress.org

Changeset 11043


Ignore:
Timestamp:
08/30/2016 04:48:19 PM (3 years ago)
Author:
boonebgorges
Message:

XProfile: Scrutinizer fixes after [11041].

  • Add missing documentation for get_date_formats().
  • Rmeove unused variable assignment.

See #5500.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    r11041 r11043  
    454454
    455455        $class = $current_field->type != $type ? 'display: none;' : '';
    456         $current_type_obj = bp_xprofile_create_field_type( $type );
    457456
    458457        $settings = self::get_field_settings( $current_field->id );
     
    601600    }
    602601
     602    /**
     603     * Gets the default date formats available when configuring a Date field.
     604     *
     605     * @since 2.7.0
     606     *
     607     * @return array
     608     */
    603609    public function get_date_formats() {
    604610        $date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y', 'buddypress' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) );
    605611
     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         */
    606620        return apply_filters( 'bp_xprofile_date_field_date_formats', $date_formats );
    607621    }
Note: See TracChangeset for help on using the changeset viewer.