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

    r6573 r6670  
    2121     *
    2222     */
    23     function __construct() {
     23    public function __construct() {
    2424        parent::__construct();
    25         $this->setup_globals();
    2625    }
    2726
     
    3231
    3332        /** Forum Section *****************************************************/
    34 
    3533
    3634        // Old forum id (Stored in postmeta)
     
    500498    }
    501499    /**
    502      * Translate the forum type from Kunena v2.x numeric's to WordPress's strings.
     500     * Translate the forum type from Kunena v2.x numerics to WordPress's strings.
    503501     *
    504502     * @param int $status Kunena v2.x numeric forum type
     
    515513
    516514    /**
    517      * Translate the forum status from Kunena v2.x numeric's to WordPress's strings.
     515     * Translate the forum status from Kunena v2.x numerics to WordPress's strings.
    518516     *
    519517     * @param int $status Kunena v2.x numeric forum status
     
    535533
    536534    /**
    537      * Translate the post status from Kunena v2.x numeric's to WordPress's strings.
     535     * Translate the post status from Kunena v2.x numerics to WordPress's strings.
    538536     *
    539537     * @param int $status Kunena v2.x numeric topic status
Note: See TracChangeset for help on using the changeset viewer.