Skip to content

Commit

Permalink
Merge pull request #75 from bkraul/develop
Browse files Browse the repository at this point in the history
Removed leftover debug cal that was breaking display
  • Loading branch information
bkraul authored Jul 18, 2019
2 parents 8980db2 + b7baf53 commit 1c581ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions BBCodePlus/BBCodePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function register() {
$this->name = plugin_lang_get( 'title' );
$this->description = plugin_lang_get( 'description' );
$this->page = 'config';
$this->version = '2.1.7';
$this->version = '2.1.8';

$this->requires['MantisCore'] = '2.0.0';
# this plugin can coexist with MantisCoreFormatting.
Expand Down Expand Up @@ -290,11 +290,10 @@ function add_tags() {
* @return string $p_string
*/
function string_process_bbcode( $p_string, $p_multiline = TRUE ) {
// convert mentions and titled links to BBCode mentions (if available).
# convert mentions and titled links to BBCode mentions (if available).
$p_string = preg_replace( '/<span class="mention"><a .*?href="(.*?)">(.*?)<\/a><\/span>/is', '[url=$1 mention]$2[/url]', $p_string);
$p_string = preg_replace( '/<a href="([^"]*)" title="([^"]*)">([^"]*)<\/a>/is', '[url=$1]$3[/url]', $p_string);
$p_string = preg_replace( '/<a href="([^"]*)" title="([^"]*)" class="resolved">([^"]*)<\/a>/is', '[url=$1 resolved]$3[/url]', $p_string);
echo $p_string;
# strip all the auto generated URLs by MantisCoreFormatting plugin to avoid mangling.
if ( ON == $this->t_MantisCoreFormatting_process_urls ) {
$p_string = string_strip_hrefs( $p_string );
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ If you would like to contribute to BBCode plus, please [read this guide first](h

## Change Log

### 2.1.8

- Removed leftover debug call that was breaking display.

### 2.1.7

- Corrected outstanding bug with resolved bug links.
Expand Down

0 comments on commit 1c581ae

Please sign in to comment.