Plugin Directory

Changeset 2350488


Ignore:
Timestamp:
08/01/2020 03:45:23 PM (5 years ago)
Author:
DevynCJohnson
Message:

v2020.08.01.1

Location:
bbcode-deluxe
Files:
2 edited
7 copied

Legend:

Unmodified
Added
Removed
  • bbcode-deluxe/tags/2020.08.01.1/bbcode-deluxe.php

    r2350473 r2350488  
    33Plugin URI: http://dcjtech.info/
    44Description: Adds support for BBCode to Wordpress and BBPress
    5 Version: 2020.08.01
     5Version: 2020.08.01.1
    66Author: Devyn Collier Johnson (DevynCJohnson)
    77Author URI: http://dcjtech.info/
     
    4242function nested_quotes($content, $not_used = false)
    4343{
     44    if (!mb_strpos($content, '[quote')) {
     45        return $content;
     46    }
    4447    $counter = 0;
    4548    $tag_counter_string = '';
     
    4750    $content = str_replace('[quote', '[', $content);
    4851    $content = str_replace('[/quote]', '[/]', $content);
    49     while (strpos($content, '[/]')) {
     52    while (mb_strpos($content, '[/]')) {
    5053        $content = preg_replace('/(?<=\[)([^]*?)(?=\[\/\])/gu', '[]$0[/]', $content, 1);
    5154        $tag_counter_string = 'quote-'.strval($counter);
     
    6063function fix_captions($content, $not_used = false)
    6164{
     65    if (!mb_strpos($content, '[caption')) {
     66        return $content;
     67    }
    6268    $content = preg_replace('/[\n\r]/gu', '', $content);
    6369    $content = str_replace('[/caption]', '', $content);
    6470    $content = str_replace('[caption', '', $content);
    6571    $content = preg_replace('/<\/a>([^>]*?)/gu', '</a><figcaption class="wp-caption-text aligncenter">$0</figcaption></figure>', $content);
    66     while (strpos($content, '')) {
     72    while (mb_strpos($content, '')) {
    6773        $content = preg_replace('/[^\]]*? align="alignleft"[^\]]*?\]/gu', '<figure class="wp-caption alignleft">', $content);
    6874        $content = preg_replace('/[^\]]*? align="alignright"[^\]]*?\]/gu', '<figure class="wp-caption alignright">', $content);
  • bbcode-deluxe/tags/2020.08.01.1/readme.txt

    r2350473 r2350488  
    2424* Plugin URI: https://wordpress.org/plugins/bbcode-deluxe/
    2525* Description: Adds support for BBCode to Wordpress and BBPress
    26 * Version: 2020.08.01
     26* Version: 2020.08.01.1
    2727* Author: Devyn Collier Johnson (DevynCJohnson)
    2828* Author URI: http://dcjtech.info/
  • bbcode-deluxe/trunk/bbcode-deluxe.php

    r2350473 r2350488  
    33Plugin URI: http://dcjtech.info/
    44Description: Adds support for BBCode to Wordpress and BBPress
    5 Version: 2020.08.01
     5Version: 2020.08.01.1
    66Author: Devyn Collier Johnson (DevynCJohnson)
    77Author URI: http://dcjtech.info/
     
    4242function nested_quotes($content, $not_used = false)
    4343{
     44    if (!mb_strpos($content, '[quote')) {
     45        return $content;
     46    }
    4447    $counter = 0;
    4548    $tag_counter_string = '';
     
    4750    $content = str_replace('[quote', '[', $content);
    4851    $content = str_replace('[/quote]', '[/]', $content);
    49     while (strpos($content, '[/]')) {
     52    while (mb_strpos($content, '[/]')) {
    5053        $content = preg_replace('/(?<=\[)([^]*?)(?=\[\/\])/gu', '[]$0[/]', $content, 1);
    5154        $tag_counter_string = 'quote-'.strval($counter);
     
    6063function fix_captions($content, $not_used = false)
    6164{
     65    if (!mb_strpos($content, '[caption')) {
     66        return $content;
     67    }
    6268    $content = preg_replace('/[\n\r]/gu', '', $content);
    6369    $content = str_replace('[/caption]', '', $content);
    6470    $content = str_replace('[caption', '', $content);
    6571    $content = preg_replace('/<\/a>([^>]*?)/gu', '</a><figcaption class="wp-caption-text aligncenter">$0</figcaption></figure>', $content);
    66     while (strpos($content, '')) {
     72    while (mb_strpos($content, '')) {
    6773        $content = preg_replace('/[^\]]*? align="alignleft"[^\]]*?\]/gu', '<figure class="wp-caption alignleft">', $content);
    6874        $content = preg_replace('/[^\]]*? align="alignright"[^\]]*?\]/gu', '<figure class="wp-caption alignright">', $content);
  • bbcode-deluxe/trunk/readme.txt

    r2350473 r2350488  
    2424* Plugin URI: https://wordpress.org/plugins/bbcode-deluxe/
    2525* Description: Adds support for BBCode to Wordpress and BBPress
    26 * Version: 2020.08.01
     26* Version: 2020.08.01.1
    2727* Author: Devyn Collier Johnson (DevynCJohnson)
    2828* Author URI: http://dcjtech.info/
Note: See TracChangeset for help on using the changeset viewer.