Skip to:
Content

bbPress.org

Changeset 6669


Ignore:
Timestamp:
08/27/2017 10:22:45 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Converter: use WordPress smiley URL & path in default callback_html() method.

This change makes sure that smiley paths and URLs are correctly converted inside of post content areas. Previous to this, the default smiley/img.gif path would be used, resulting in broken smiley images, even after conversion.

Trunk, for 2.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/classes/class-bbp-converter-base.php

    r6665 r6669  
    11241124    protected function callback_html( $field ) {
    11251125        require_once bbpress()->admin->admin_dir . 'parser.php';
     1126
     1127        // Setup the BBCode parser
    11261128        $bbcode = BBCode::getInstance();
     1129
     1130        // Setup smiley URL & path
     1131        $bbcode->smiley_url = includes_url( 'images/smilies' );
     1132        $bbcode->smiley_dir = '/' . WPINC . '/images/smilies';
     1133
    11271134        return html_entity_decode( $bbcode->Parse( $field ) );
    11281135    }
Note: See TracChangeset for help on using the changeset viewer.