Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/27/2017 11:24:00 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Converter: more OOP, specifically for the BBCode parser.

This change introduces a bbcode_parser_properties array to the base converter, allowing custom BBCode parser properties to be passed into the parent method via the child, minimizing the amount of code in each individual forum converter.

Trunk, for 2.6.

File:
1 edited

Legend:

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

    r6573 r6670  
    2121     *
    2222     */
    23     function __construct() {
     23    public function __construct() {
    2424        parent::__construct();
    25         $this->setup_globals();
    2625    }
    2726
     
    540539
    541540    /**
    542      * Translate the post status from MyBB v1.6.10 numeric's to WordPress's strings.
     541     * Translate the post status from MyBB v1.6.10 numerics to WordPress's strings.
    543542     *
    544543     * @param int $status MyBB v1.6.10 numeric topic status
     
    560559
    561560    /**
    562      * Translate the topic sticky status type from MyBB v1.6.10 numeric's to WordPress's strings.
     561     * Translate the topic sticky status type from MyBB v1.6.10 numerics to WordPress's strings.
    563562     *
    564563     * @param int $status MyBB v1.6.10 numeric forum type
Note: See TracChangeset for help on using the changeset viewer.