Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/10/2014 06:44:33 AM (10 years ago)
Author:
netweb
Message:

Move callback callback_check_anonymous from individual importers to BBP_Converter_Base in converter.php.

  • Allows us to lean on callback_userid to determine multiple anonymous or guest topic and reply authors during import and reduces code duplication

Props netweb. See #2347

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/Drupal7.php

    r5541 r5544  
    657657        return $count;
    658658    }
    659 
    660     /**
    661      * Check the anonymous topic or reply status
    662      *
    663      * @since  (r5539)
    664      *
    665      * @param int $status Drupal v7.x anonymous topic/reply status
    666      * @return string WordPress safe
    667      */
    668     public function callback_check_anonymous( $status = 0 ) {
    669         if ( $status == 0 ) {
    670             $status = 'true';
    671         } else {
    672             $status = 'false';
    673         }
    674         return $status;
    675     }
    676659}
Note: See TracChangeset for help on using the changeset viewer.