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

    r5539 r5544  
    826826
    827827    /**
    828      * Check the anonymous topic or reply status
    829      *
    830      * @since  (r5539)
    831      *
    832      * @param int $status phpBB v3.x anonymous topic/reply status
    833      * @return string WordPress safe
    834      */
    835     public function callback_check_anonymous( $status = 0 ) {
    836         if ( $status == 1 ) {
    837             $status = 'true';
    838         } else {
    839             $status = 'false';
    840         }
    841         return $status;
    842     }
    843 
    844     /**
    845828     * This callback processes any custom parser.php attributes and custom code with preg_replace
    846829     */
Note: See TracChangeset for help on using the changeset viewer.