Skip to:
Content

bbPress.org


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

    r6573 r6670  
    2121         *
    2222         */
    23         function __construct() {
     23        public function __construct() {
    2424                parent::__construct();
    25                 $this->setup_globals();
    2625        }
    2726
    … …  
    530529
    531530        /**
    532          * Translate the forum type from PHPFox v3.5.x numeric's to WordPress's strings.
     531         * Translate the forum type from PHPFox v3.5.x numerics to WordPress's strings.
    533532         *
    534533         * @param int $status PHPFox v3.5.x numeric forum type
    … …  
    550549
    551550        /**
    552          * Translate the forum status from PHPFox v3.5.x numeric's to WordPress's strings.
     551         * Translate the forum status from PHPFox v3.5.x numerics to WordPress's strings.
    553552         *
    554553         * @param int $status PHPFox v3.5.x numeric forum status
    … …  
    570569
    571570        /**
    572          * Translate the post status from PHPFox v3.5.x numeric's to WordPress's strings.
     571         * Translate the post status from PHPFox v3.5.x numerics to WordPress's strings.
    573572         *
    574573         * @param int $status PHPFox v3.5.x numeric topic status
    … …  
    590589
    591590        /**
    592          * Translate the topic sticky status type from PHPFox v3.5.x numeric's to WordPress's strings.
     591         * Translate the topic sticky status type from PHPFox v3.5.x numerics to WordPress's strings.
    593592         *
    594593         * @param int $status PHPFox v3.5.x numeric forum type
Note: See TracChangeset for help on using the changeset viewer.