Skip to:
Content

BuddyPress.org

Ticket #7351: empty-profile-date.diff

File empty-profile-date.diff, 579 bytes (added by nickmomrik, 8 years ago)
  • bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

     
    591591         */
    592592        public static function display_filter( $field_value, $field_id = '' ) {
    593593
     594                if ( empty( $field_value ) ) {
     595                        return $field_value;
     596                }
     597
    594598                // If Unix timestamp.
    595599                if ( ! is_numeric( $field_value ) ) {
    596600                        $field_value = strtotime( $field_value );