Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/27/2017 11:24:00 PM (8 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/AEF.php

    r6573 r6670  
    2020     * Main Constructor
    2121     */
    22     function __construct() {
     22    public function __construct() {
    2323        parent::__construct();
    24         $this->setup_globals();
    2524    }
    2625
     
    593592
    594593    /**
    595      * Translate the forum status from AEF v1.0.9 numeric's to WordPress's strings.
     594     * Translate the forum status from AEF v1.0.9 numerics to WordPress's strings.
    596595     *
    597596     * @param int $status AEF v1.0.9 numeric forum status
     
    613612
    614613    /**
    615      * Translate the post status from AEF v1.0.9 numeric's to WordPress's strings.
     614     * Translate the post status from AEF v1.0.9 numerics to WordPress's strings.
    616615     *
    617616     * @param int $status AEF v1.0.9 numeric topic status
     
    633632
    634633    /**
    635      * Translate the topic sticky status type from AEF 1.x numeric's to WordPress's strings.
     634     * Translate the topic sticky status type from AEF 1.x numerics to WordPress's strings.
    636635     *
    637636     * @param int $status AEF 1.x numeric forum type
Note: See TracChangeset for help on using the changeset viewer.