Plugin Directory

Changeset 2723306


Ignore:
Timestamp:
05/13/2022 11:11:51 AM (4 years ago)
Author:
daomapsieucap
Message:

Update to version 2.0.6 from GitHub

Location:
fiber-admin
Files:
8 edited
1 copied

Legend:

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

    r2715179 r2723306  
    11== Changelog ==
     2
     3= 2.0.6 =
     4*Release Date - 13 May 2022*
     5
     6* Fixed: Fix duplicate width height attribute for SVG images.
    27
    38= 2.0.5 =
  • fiber-admin/tags/2.0.6/fiberadmin.php

    r2715179 r2723306  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           2.0.5
     6 * Version:           2.0.6
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
     
    2626 */
    2727
    28 const FIBERADMIN_VERSION  = '2.0.5';
     28const FIBERADMIN_VERSION  = '2.0.6';
    2929const FIBERADMIN_DEV_MODE = false;
    3030const FIBERADMIN_FILENAME = __FILE__;
  • fiber-admin/tags/2.0.6/includes/image.php

    r2715179 r2723306  
    4747            add_filter('wp_get_attachment_metadata', array($this, 'fiad_svg_attachment_metadata'), 10, 2);
    4848            add_filter('wp_generate_attachment_metadata', array($this, 'fiad_svg_attachment_metadata'), 10, 2);
    49             // Fix the output of images using wp_get_attachment_image
    50             add_filter('wp_get_attachment_image_attributes', array($this, 'fiad_svg_image_attributes'), 10, 3);
    5149        }
    5250    }
     
    142140    }
    143141   
    144     public function fiad_svg_image_attributes($attr, $attachment, $size){
    145        
    146         // If we're not getting a WP_Post object, bail early.
    147         // @see https://wordpress.org/support/topic/notice-trying-to-get-property-id/
    148         if(!$attachment instanceof WP_Post){
    149             return $attr;
    150         }
    151        
    152         $mime = get_post_mime_type($attachment->ID);
    153         if('image/svg+xml' === $mime){
    154             $default_height = 100;
    155             $default_width  = 100;
    156            
    157             $dimensions = $this->fiad_get_svg_dimensions(get_attached_file($attachment->ID));
    158            
    159             if($dimensions){
    160                 $default_height = $dimensions['height'];
    161                 $default_width  = $dimensions['width'];
    162             }
    163            
    164             $attr['height'] = ceil($default_height);
    165             $attr['width']  = ceil($default_width);
    166         }
    167        
    168         return $attr;
    169     }
    170    
    171142    protected function fiad_get_svg_dimensions($svg){
    172143        $svg    = @simplexml_load_file($svg);
  • fiber-admin/tags/2.0.6/readme.txt

    r2715179 r2723306  
    55Tested up to: 5.9.3
    66Requires PHP: 7.0
    7 Stable tag: 2.0.5
     7Stable tag: 2.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 2.0.5 =
    50 *Release Date - 27 April 2022*
     49= 2.0.6 =
     50*Release Date - 13 May 2022*
    5151
    52 * Fixed: Fix conflicts with SVG Support plugin.
     52* Fixed: Fix duplicate width height attribute for SVG images.
  • fiber-admin/trunk/changelog.txt

    r2715179 r2723306  
    11== Changelog ==
     2
     3= 2.0.6 =
     4*Release Date - 13 May 2022*
     5
     6* Fixed: Fix duplicate width height attribute for SVG images.
    27
    38= 2.0.5 =
  • fiber-admin/trunk/fiberadmin.php

    r2715179 r2723306  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           2.0.5
     6 * Version:           2.0.6
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
     
    2626 */
    2727
    28 const FIBERADMIN_VERSION  = '2.0.5';
     28const FIBERADMIN_VERSION  = '2.0.6';
    2929const FIBERADMIN_DEV_MODE = false;
    3030const FIBERADMIN_FILENAME = __FILE__;
  • fiber-admin/trunk/includes/image.php

    r2715179 r2723306  
    4747            add_filter('wp_get_attachment_metadata', array($this, 'fiad_svg_attachment_metadata'), 10, 2);
    4848            add_filter('wp_generate_attachment_metadata', array($this, 'fiad_svg_attachment_metadata'), 10, 2);
    49             // Fix the output of images using wp_get_attachment_image
    50             add_filter('wp_get_attachment_image_attributes', array($this, 'fiad_svg_image_attributes'), 10, 3);
    5149        }
    5250    }
     
    142140    }
    143141   
    144     public function fiad_svg_image_attributes($attr, $attachment, $size){
    145        
    146         // If we're not getting a WP_Post object, bail early.
    147         // @see https://wordpress.org/support/topic/notice-trying-to-get-property-id/
    148         if(!$attachment instanceof WP_Post){
    149             return $attr;
    150         }
    151        
    152         $mime = get_post_mime_type($attachment->ID);
    153         if('image/svg+xml' === $mime){
    154             $default_height = 100;
    155             $default_width  = 100;
    156            
    157             $dimensions = $this->fiad_get_svg_dimensions(get_attached_file($attachment->ID));
    158            
    159             if($dimensions){
    160                 $default_height = $dimensions['height'];
    161                 $default_width  = $dimensions['width'];
    162             }
    163            
    164             $attr['height'] = ceil($default_height);
    165             $attr['width']  = ceil($default_width);
    166         }
    167        
    168         return $attr;
    169     }
    170    
    171142    protected function fiad_get_svg_dimensions($svg){
    172143        $svg    = @simplexml_load_file($svg);
  • fiber-admin/trunk/readme.txt

    r2715179 r2723306  
    55Tested up to: 5.9.3
    66Requires PHP: 7.0
    7 Stable tag: 2.0.5
     7Stable tag: 2.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 2.0.5 =
    50 *Release Date - 27 April 2022*
     49= 2.0.6 =
     50*Release Date - 13 May 2022*
    5151
    52 * Fixed: Fix conflicts with SVG Support plugin.
     52* Fixed: Fix duplicate width height attribute for SVG images.
Note: See TracChangeset for help on using the changeset viewer.