Changeset 2350488
- Timestamp:
- 08/01/2020 03:45:23 PM (5 years ago)
- Location:
- bbcode-deluxe
- Files:
-
- 2 edited
- 7 copied
-
tags/2020.08.01.1 (copied) (copied from bbcode-deluxe/trunk)
-
tags/2020.08.01.1/bbcode-admin.php (copied) (copied from bbcode-deluxe/trunk/bbcode-admin.php)
-
tags/2020.08.01.1/bbcode-deluxe.php (copied) (copied from bbcode-deluxe/trunk/bbcode-deluxe.php) (4 diffs)
-
tags/2020.08.01.1/class-bbcode.php (copied) (copied from bbcode-deluxe/trunk/class-bbcode.php)
-
tags/2020.08.01.1/license.txt (copied) (copied from bbcode-deluxe/trunk/license.txt)
-
tags/2020.08.01.1/options-form-template.php (copied) (copied from bbcode-deluxe/trunk/options-form-template.php)
-
tags/2020.08.01.1/readme.txt (copied) (copied from bbcode-deluxe/trunk/readme.txt) (1 diff)
-
trunk/bbcode-deluxe.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bbcode-deluxe/tags/2020.08.01.1/bbcode-deluxe.php
r2350473 r2350488 3 3 Plugin URI: http://dcjtech.info/ 4 4 Description: Adds support for BBCode to Wordpress and BBPress 5 Version: 2020.08.01 5 Version: 2020.08.01.1 6 6 Author: Devyn Collier Johnson (DevynCJohnson) 7 7 Author URI: http://dcjtech.info/ … … 42 42 function nested_quotes($content, $not_used = false) 43 43 { 44 if (!mb_strpos($content, '[quote')) { 45 return $content; 46 } 44 47 $counter = 0; 45 48 $tag_counter_string = ''; … … 47 50 $content = str_replace('[quote', '[', $content); 48 51 $content = str_replace('[/quote]', '[/]', $content); 49 while ( strpos($content, '[/]')) {52 while (mb_strpos($content, '[/]')) { 50 53 $content = preg_replace('/(?<=\[)([^]*?)(?=\[\/\])/gu', '[]$0[/]', $content, 1); 51 54 $tag_counter_string = 'quote-'.strval($counter); … … 60 63 function fix_captions($content, $not_used = false) 61 64 { 65 if (!mb_strpos($content, '[caption')) { 66 return $content; 67 } 62 68 $content = preg_replace('/[\n\r]/gu', '', $content); 63 69 $content = str_replace('[/caption]', '', $content); 64 70 $content = str_replace('[caption', '', $content); 65 71 $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, '')) { 67 73 $content = preg_replace('/[^\]]*? align="alignleft"[^\]]*?\]/gu', '<figure class="wp-caption alignleft">', $content); 68 74 $content = preg_replace('/[^\]]*? align="alignright"[^\]]*?\]/gu', '<figure class="wp-caption alignright">', $content); -
bbcode-deluxe/tags/2020.08.01.1/readme.txt
r2350473 r2350488 24 24 * Plugin URI: https://wordpress.org/plugins/bbcode-deluxe/ 25 25 * Description: Adds support for BBCode to Wordpress and BBPress 26 * Version: 2020.08.01 26 * Version: 2020.08.01.1 27 27 * Author: Devyn Collier Johnson (DevynCJohnson) 28 28 * Author URI: http://dcjtech.info/ -
bbcode-deluxe/trunk/bbcode-deluxe.php
r2350473 r2350488 3 3 Plugin URI: http://dcjtech.info/ 4 4 Description: Adds support for BBCode to Wordpress and BBPress 5 Version: 2020.08.01 5 Version: 2020.08.01.1 6 6 Author: Devyn Collier Johnson (DevynCJohnson) 7 7 Author URI: http://dcjtech.info/ … … 42 42 function nested_quotes($content, $not_used = false) 43 43 { 44 if (!mb_strpos($content, '[quote')) { 45 return $content; 46 } 44 47 $counter = 0; 45 48 $tag_counter_string = ''; … … 47 50 $content = str_replace('[quote', '[', $content); 48 51 $content = str_replace('[/quote]', '[/]', $content); 49 while ( strpos($content, '[/]')) {52 while (mb_strpos($content, '[/]')) { 50 53 $content = preg_replace('/(?<=\[)([^]*?)(?=\[\/\])/gu', '[]$0[/]', $content, 1); 51 54 $tag_counter_string = 'quote-'.strval($counter); … … 60 63 function fix_captions($content, $not_used = false) 61 64 { 65 if (!mb_strpos($content, '[caption')) { 66 return $content; 67 } 62 68 $content = preg_replace('/[\n\r]/gu', '', $content); 63 69 $content = str_replace('[/caption]', '', $content); 64 70 $content = str_replace('[caption', '', $content); 65 71 $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, '')) { 67 73 $content = preg_replace('/[^\]]*? align="alignleft"[^\]]*?\]/gu', '<figure class="wp-caption alignleft">', $content); 68 74 $content = preg_replace('/[^\]]*? align="alignright"[^\]]*?\]/gu', '<figure class="wp-caption alignright">', $content); -
bbcode-deluxe/trunk/readme.txt
r2350473 r2350488 24 24 * Plugin URI: https://wordpress.org/plugins/bbcode-deluxe/ 25 25 * Description: Adds support for BBCode to Wordpress and BBPress 26 * Version: 2020.08.01 26 * Version: 2020.08.01.1 27 27 * Author: Devyn Collier Johnson (DevynCJohnson) 28 28 * Author URI: http://dcjtech.info/
Note: See TracChangeset
for help on using the changeset viewer.