Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/13/2014 01:56:43 AM (11 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/Mingle.php

    r5428 r5516  
    7373            'to_type'        => 'forum',
    7474            'to_fieldname'   => 'menu_order'
     75        );
     76
     77        // Forum type (Set a default value 'forum', Stored in postmeta)
     78        $this->field_map[] = array(
     79            'to_type'      => 'forum',
     80            'to_fieldname' => '_bbp_forum_type',
     81            'default'      => 'forum'
     82        );
     83
     84        // Forum status (Set a default value 'open', Stored in postmeta)
     85        $this->field_map[] = array(
     86            'to_type'      => 'forum',
     87            'to_fieldname' => '_bbp_status',
     88            'default'      => 'open'
    7589        );
    7690
Note: See TracChangeset for help on using the changeset viewer.