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/SMF.php

    r5539 r5544  
    678678        $count = absint( (int) $count - 1 );
    679679        return $count;
    680     }
    681 
    682     /**
    683      * Check the anonymous topic or reply status
    684      *
    685      * @since  (r5539)
    686      *
    687      * @param int $status SMF v2.x anonymous topic/reply status
    688      * @return string WordPress safe
    689      */
    690     public function callback_check_anonymous( $status = 0 ) {
    691         if ( $status == 0 ) {
    692             $status = 'true';
    693         } else {
    694             $status = 'false';
    695         }
    696         return $status;
    697680    }
    698681
Note: See TracChangeset for help on using the changeset viewer.