Changeset 3107155
- Timestamp:
- 06/25/2024 07:05:37 AM (18 months ago)
- Location:
- fiber-admin
- Files:
-
- 12 edited
- 1 copied
-
tags/3.2.1 (copied) (copied from fiber-admin/trunk)
-
tags/3.2.1/changelog.txt (modified) (1 diff)
-
tags/3.2.1/fiberadmin.php (modified) (1 diff)
-
tags/3.2.1/includes/content.php (modified) (2 diffs)
-
tags/3.2.1/includes/duplicate.php (modified) (1 diff)
-
tags/3.2.1/includes/helpers.php (modified) (1 diff)
-
tags/3.2.1/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/fiberadmin.php (modified) (1 diff)
-
trunk/includes/content.php (modified) (2 diffs)
-
trunk/includes/duplicate.php (modified) (1 diff)
-
trunk/includes/helpers.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fiber-admin/tags/3.2.1/changelog.txt
r3106133 r3107155 1 1 == Changelog == 2 3 = 3.2.1 = 4 *Release Date - 25 June 2024* 5 6 * Fixed: Fix missing helper function fiad_get_file_upload_path. 2 7 3 8 = 3.2.0 = 4 9 *Release Date - 23 June 2024* 5 10 11 * Fixed: Fix wrong HTML tag when mailto link exists. 12 * Fixed: Exclude Simple Multisite Crossposting meta keys when duplicating posts. 6 13 * Removed: Remove Coming soon / Maintenance mode. 7 14 -
fiber-admin/tags/3.2.1/fiberadmin.php
r3106133 r3107155 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 3.2. 06 * Version: 3.2.1 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.4 -
fiber-admin/tags/3.2.1/includes/content.php
r2962829 r3107155 42 42 public function fiad_auto_convert_email_address($content){ 43 43 $content = do_shortcode($content);// get content without shortcode 44 $content_pattern = "/ >([^<]*)</";44 $content_pattern = "/<.+?>([^<>].*?[^<>])<\/.+?>/"; 45 45 46 46 return preg_replace_callback($content_pattern, [$this, 'fiad_replace_email_with_link'], $content); … … 50 50 $email_pattern = "/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,})/"; 51 51 $replace = '<a href="mailto:$1" title="$1">$1</a>'; 52 // matches[0]: return the whole content with html tags 53 // matches[1]: return the content between tags 54 $email_content = $matches[1]; 55 $new_content = preg_replace($email_pattern, $replace, $email_content); 52 if(strpos($matches[0], 'mailto') === false){ 53 // matches[0]: return the whole content with html tags 54 // matches[1]: return the content between tags 55 $email_content = $matches[1]; 56 $new_content = preg_replace($email_pattern, $replace, $email_content); 57 58 return str_replace($matches[1], $new_content, $matches[0]); 59 } 56 60 57 return str_replace($matches[1], $new_content, $matches[0]);61 return $matches[0]; 58 62 } 59 63 -
fiber-admin/tags/3.2.1/includes/duplicate.php
r2997423 r3107155 113 113 if($post_meta){ 114 114 foreach($post_meta as $meta_key => $meta_values){ 115 if('_wp_old_slug' == $meta_key ){ // exclude special meta key115 if('_wp_old_slug' == $meta_key || '_crosspost_to_data' == $meta_key || strpos($meta_key, '_crosspost_to_') !== false){ // exclude special meta keys 116 116 continue; 117 117 } -
fiber-admin/tags/3.2.1/includes/helpers.php
r3106133 r3107155 160 160 } 161 161 } 162 163 if(!function_exists('fiad_get_file_upload_path')){ 164 function fiad_get_file_upload_path($url){ 165 return explode('wp-content', $url)[1]; 166 } 167 } -
fiber-admin/tags/3.2.1/readme.txt
r3106133 r3107155 5 5 Tested up to: 6.5.4 6 6 Requires PHP: 7.4 7 Stable tag: 3.2. 07 Stable tag: 3.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 3.2. 0=50 *Release Date - 2 3June 2024*49 = 3.2.1 = 50 *Release Date - 25 June 2024* 51 51 52 * Removed: Remove Coming soon / Maintenance mode.52 * Fixed: Fix missing helper function fiad_get_file_upload_path. -
fiber-admin/trunk/changelog.txt
r3106133 r3107155 1 1 == Changelog == 2 3 = 3.2.1 = 4 *Release Date - 25 June 2024* 5 6 * Fixed: Fix missing helper function fiad_get_file_upload_path. 2 7 3 8 = 3.2.0 = 4 9 *Release Date - 23 June 2024* 5 10 11 * Fixed: Fix wrong HTML tag when mailto link exists. 12 * Fixed: Exclude Simple Multisite Crossposting meta keys when duplicating posts. 6 13 * Removed: Remove Coming soon / Maintenance mode. 7 14 -
fiber-admin/trunk/fiberadmin.php
r3106133 r3107155 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 3.2. 06 * Version: 3.2.1 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.4 -
fiber-admin/trunk/includes/content.php
r2962829 r3107155 42 42 public function fiad_auto_convert_email_address($content){ 43 43 $content = do_shortcode($content);// get content without shortcode 44 $content_pattern = "/ >([^<]*)</";44 $content_pattern = "/<.+?>([^<>].*?[^<>])<\/.+?>/"; 45 45 46 46 return preg_replace_callback($content_pattern, [$this, 'fiad_replace_email_with_link'], $content); … … 50 50 $email_pattern = "/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,})/"; 51 51 $replace = '<a href="mailto:$1" title="$1">$1</a>'; 52 // matches[0]: return the whole content with html tags 53 // matches[1]: return the content between tags 54 $email_content = $matches[1]; 55 $new_content = preg_replace($email_pattern, $replace, $email_content); 52 if(strpos($matches[0], 'mailto') === false){ 53 // matches[0]: return the whole content with html tags 54 // matches[1]: return the content between tags 55 $email_content = $matches[1]; 56 $new_content = preg_replace($email_pattern, $replace, $email_content); 57 58 return str_replace($matches[1], $new_content, $matches[0]); 59 } 56 60 57 return str_replace($matches[1], $new_content, $matches[0]);61 return $matches[0]; 58 62 } 59 63 -
fiber-admin/trunk/includes/duplicate.php
r2997423 r3107155 113 113 if($post_meta){ 114 114 foreach($post_meta as $meta_key => $meta_values){ 115 if('_wp_old_slug' == $meta_key ){ // exclude special meta key115 if('_wp_old_slug' == $meta_key || '_crosspost_to_data' == $meta_key || strpos($meta_key, '_crosspost_to_') !== false){ // exclude special meta keys 116 116 continue; 117 117 } -
fiber-admin/trunk/includes/helpers.php
r3106133 r3107155 160 160 } 161 161 } 162 163 if(!function_exists('fiad_get_file_upload_path')){ 164 function fiad_get_file_upload_path($url){ 165 return explode('wp-content', $url)[1]; 166 } 167 } -
fiber-admin/trunk/readme.txt
r3106133 r3107155 5 5 Tested up to: 6.5.4 6 6 Requires PHP: 7.4 7 Stable tag: 3.2. 07 Stable tag: 3.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 3.2. 0=50 *Release Date - 2 3June 2024*49 = 3.2.1 = 50 *Release Date - 25 June 2024* 51 51 52 * Removed: Remove Coming soon / Maintenance mode.52 * Fixed: Fix missing helper function fiad_get_file_upload_path.
Note: See TracChangeset
for help on using the changeset viewer.