Changeset 6670 for trunk/src/includes/admin/converters/SMF.php
- Timestamp:
- 08/27/2017 11:24:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/SMF.php
r6573 r6670 21 21 * 22 22 */ 23 function __construct() {23 public function __construct() { 24 24 parent::__construct(); 25 $this->setup_globals();26 25 } 27 26 … … 30 29 */ 31 30 public function setup_globals() { 31 32 // Setup smiley URL & path 33 $this->bbcode_parser_properties = array( 34 'smiley_url' => false, 35 'smiley_dir' => false 36 ); 32 37 33 38 /** Forum Section ******************************************************/ … … 676 681 677 682 /** 678 * Translate the post status from SMF v2.0.4 numeric 's to WordPress's strings.683 * Translate the post status from SMF v2.0.4 numerics to WordPress's strings. 679 684 * 680 685 * @param int $status SMF v2.0.4 numeric topic status … … 696 701 697 702 /** 698 * Translate the topic sticky status type from SMF v2.0.4 numeric 's to WordPress's strings.703 * Translate the topic sticky status type from SMF v2.0.4 numerics to WordPress's strings. 699 704 * 700 705 * @param int $status SMF v2.0.4 numeric forum type … … 797 802 798 803 // Replace non-break space ' ' with space ' ' 799 $SMF_markup = preg_replace 804 $SMF_markup = preg_replace( '/ /', ' ', $SMF_markup ); 800 805 801 806 // Now that SMF custom HTML has been stripped put the cleaned HTML back in $field … … 803 808 804 809 // Parse out any bbCodes in $field with the BBCode 'parser.php' 805 require_once bbpress()->admin->admin_dir . 'parser.php'; 806 $bbcode = BBCode::getInstance(); 807 $bbcode->enable_smileys = false; 808 $bbcode->smiley_regex = false; 809 return html_entity_decode( $bbcode->Parse( $field ) ); 810 return parent::callback_html( $field ); 810 811 } 811 812 }
Note: See TracChangeset
for help on using the changeset viewer.