Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/13/2014 01:56:43 AM (12 years ago)
Author:
netweb
Message:

Include 'default' forum status and forum type meta keys in importers for databases that do not support these values.

  • Forum status: _bbp_status = open meta
  • Forum type: _bbp_forum_type = forum

Props netweb. See #2647

File:
1 edited

Legend:

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

    r5427 r5516  
    100100                );
    101101
     102                // Forum type (Set a default value 'forum', Stored in postmeta)
     103                $this->field_map[] = array(
     104                        'to_type'      => 'forum',
     105                        'to_fieldname' => '_bbp_forum_type',
     106                        'default'      => 'forum'
     107                );
     108
     109                // Forum status (Set a default value 'open', Stored in postmeta)
     110                $this->field_map[] = array(
     111                        'to_type'      => 'forum',
     112                        'to_fieldname' => '_bbp_status',
     113                        'default'      => 'open'
     114                );
     115
    102116                // Forum dates.
    103117                $this->field_map[] = array(
Note: See TracChangeset for help on using the changeset viewer.