Plugin Directory

Changeset 3107155


Ignore:
Timestamp:
06/25/2024 07:05:37 AM (18 months ago)
Author:
daomapsieucap
Message:

Update to version 3.2.1 from GitHub

Location:
fiber-admin
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • fiber-admin/tags/3.2.1/changelog.txt

    r3106133 r3107155  
    11== Changelog ==
     2
     3= 3.2.1 =
     4*Release Date - 25 June 2024*
     5
     6* Fixed: Fix missing helper function fiad_get_file_upload_path.
    27
    38= 3.2.0 =
    49*Release Date - 23 June 2024*
    510
     11* Fixed: Fix wrong HTML tag when mailto link exists.
     12* Fixed: Exclude Simple Multisite Crossposting meta keys when duplicating posts.
    613* Removed: Remove Coming soon / Maintenance mode.
    714
  • fiber-admin/tags/3.2.1/fiberadmin.php

    r3106133 r3107155  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           3.2.0
     6 * Version:           3.2.1
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.4
  • fiber-admin/tags/3.2.1/includes/content.php

    r2962829 r3107155  
    4242    public function fiad_auto_convert_email_address($content){
    4343        $content         = do_shortcode($content);// get content without shortcode
    44         $content_pattern = "/>([^<]*)</";
     44        $content_pattern = "/<.+?>([^<>].*?[^<>])<\/.+?>/";
    4545       
    4646        return preg_replace_callback($content_pattern, [$this, 'fiad_replace_email_with_link'], $content);
     
    5050        $email_pattern = "/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,})/";
    5151        $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        }
    5660       
    57         return str_replace($matches[1], $new_content, $matches[0]);
     61        return $matches[0];
    5862    }
    5963   
  • fiber-admin/tags/3.2.1/includes/duplicate.php

    r2997423 r3107155  
    113113            if($post_meta){
    114114                foreach($post_meta as $meta_key => $meta_values){
    115                     if('_wp_old_slug' == $meta_key){ // exclude special meta key
     115                    if('_wp_old_slug' == $meta_key || '_crosspost_to_data' == $meta_key || strpos($meta_key, '_crosspost_to_') !== false){ // exclude special meta keys
    116116                        continue;
    117117                    }
  • fiber-admin/tags/3.2.1/includes/helpers.php

    r3106133 r3107155  
    160160    }
    161161}
     162
     163if(!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  
    55Tested up to: 6.5.4
    66Requires PHP: 7.4
    7 Stable tag: 3.2.0
     7Stable tag: 3.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 3.2.0 =
    50 *Release Date - 23 June 2024*
     49= 3.2.1 =
     50*Release Date - 25 June 2024*
    5151
    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  
    11== Changelog ==
     2
     3= 3.2.1 =
     4*Release Date - 25 June 2024*
     5
     6* Fixed: Fix missing helper function fiad_get_file_upload_path.
    27
    38= 3.2.0 =
    49*Release Date - 23 June 2024*
    510
     11* Fixed: Fix wrong HTML tag when mailto link exists.
     12* Fixed: Exclude Simple Multisite Crossposting meta keys when duplicating posts.
    613* Removed: Remove Coming soon / Maintenance mode.
    714
  • fiber-admin/trunk/fiberadmin.php

    r3106133 r3107155  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           3.2.0
     6 * Version:           3.2.1
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.4
  • fiber-admin/trunk/includes/content.php

    r2962829 r3107155  
    4242    public function fiad_auto_convert_email_address($content){
    4343        $content         = do_shortcode($content);// get content without shortcode
    44         $content_pattern = "/>([^<]*)</";
     44        $content_pattern = "/<.+?>([^<>].*?[^<>])<\/.+?>/";
    4545       
    4646        return preg_replace_callback($content_pattern, [$this, 'fiad_replace_email_with_link'], $content);
     
    5050        $email_pattern = "/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,})/";
    5151        $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        }
    5660       
    57         return str_replace($matches[1], $new_content, $matches[0]);
     61        return $matches[0];
    5862    }
    5963   
  • fiber-admin/trunk/includes/duplicate.php

    r2997423 r3107155  
    113113            if($post_meta){
    114114                foreach($post_meta as $meta_key => $meta_values){
    115                     if('_wp_old_slug' == $meta_key){ // exclude special meta key
     115                    if('_wp_old_slug' == $meta_key || '_crosspost_to_data' == $meta_key || strpos($meta_key, '_crosspost_to_') !== false){ // exclude special meta keys
    116116                        continue;
    117117                    }
  • fiber-admin/trunk/includes/helpers.php

    r3106133 r3107155  
    160160    }
    161161}
     162
     163if(!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  
    55Tested up to: 6.5.4
    66Requires PHP: 7.4
    7 Stable tag: 3.2.0
     7Stable tag: 3.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 3.2.0 =
    50 *Release Date - 23 June 2024*
     49= 3.2.1 =
     50*Release Date - 25 June 2024*
    5151
    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.