Changeset 6670 for trunk/src/includes/admin/converters/bbPress1.php
- Timestamp:
- 08/27/2017 11:24:00 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/converters/bbPress1.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/bbPress1.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 *****************************************************/ … … 626 631 627 632 /** 628 * Translate the post status from bbPress 1's numeric 's to WordPress's633 * Translate the post status from bbPress 1's numerics to WordPress's 629 634 * strings. 630 635 * … … 651 656 652 657 /** 653 * Translate the forum type from bbPress 1.x numeric 's to WordPress's strings.658 * Translate the forum type from bbPress 1.x numerics to WordPress's strings. 654 659 * 655 660 * @param int $status bbPress 1.x numeric forum type … … 666 671 667 672 /** 668 * Translate the topic status from bbPress 1's numeric 's to WordPress's673 * Translate the topic status from bbPress 1's numerics to WordPress's 669 674 * strings. 670 675 * … … 687 692 688 693 /** 689 * Translate the topic sticky status type from bbPress 1.x numeric 's to WordPress's strings.694 * Translate the topic sticky status type from bbPress 1.x numerics to WordPress's strings. 690 695 * 691 696 * @param int $status bbPress 1.x numeric forum type … … 752 757 return $field; 753 758 } 754 755 /**756 * This callback:757 *758 * - turns off smiley parsing759 * - processes any custom parser.php attributes760 * - decodes necessary HTML entities761 */762 protected function callback_html( $field ) {763 require_once bbpress()->admin->admin_dir . 'parser.php';764 $bbcode = BBCode::getInstance();765 $bbcode->enable_smileys = false;766 $bbcode->smiley_regex = false;767 return html_entity_decode( $bbcode->Parse( $field ) );768 }769 759 }
Note: See TracChangeset
for help on using the changeset viewer.