Plugin Directory

Changeset 2809833


Ignore:
Timestamp:
11/02/2022 11:36:37 AM (3 years ago)
Author:
lruizcode
Message:

Update to version 1.0.3 from GitHub

Location:
bubuku-media-library
Files:
13 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bubuku-media-library/tags/1.0.3/bubuku-media-library.php

    r2786524 r2809833  
    55 * Requires at least: 5.2
    66 * Requires PHP:      7.2
    7  * Version:     1.0.2
     7 * Version:     1.0.3
    88 * Author:      Bubuku
    99 * Author URI:  https://www.bubuku.com/
    10  * Text Domain: bbkmedialibrary
     10 * Text Domain: bubuku-media-library
    1111 * Domain Path: /languages
    1212 * License:     EUPL v1.2
  • bubuku-media-library/tags/1.0.3/readme.txt

    r2786524 r2809833  
    33Tags: images, media library, performance, Alt Text, seo
    44Requires at least: 5.2
    5 Tested up to: 6.0.2
    6 Requires PHP: 7.3
    7 Stable tag: 1.0.2
     5Tested up to: 6.1
     6Requires PHP: 7.2
     7Stable tag: 1.0.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1717
    18181. Green: Images 100K or less are assigned a good optimization status.
    19 2. Orange: Images between 100K and 1M are assigned a medium optimization status.
    20 3. Red: For images of 1M or more, we assign a status of poor optimization.
     192. Orange: Images between 100K and 500k are assigned a medium optimization status.
     203. Red: For images of 500k or more, we assign a status of poor optimization.
    2121
    2222Thanks to this plugin, we can see if images need to be optimized and improve page load and SEO of images
     
    30302. Filter to better identify the images that have the alt text
    31313. Filter to identify images with larger or smaller sizes.
     324. Bulk Action to calculate file size.
    3233
    3334== Changelog ==
     35= 1.0.3 =
     36* Add a Bulk Action to calculate file size in WordPress admin
     37* Improvements in measurement ranges
     38* fix: Internationalization Issues
     39
    3440= 1.0.2 =
    3541* Rename variables
  • bubuku-media-library/tags/1.0.3/src/BML_assets.php

    r2786524 r2809833  
    3030            BUBUKU_BML_PLUGIN_ASSETS_URL . '/css/admin.css',
    3131            false,
    32             '1.0.2'
     32            '1.0.3'
    3333        );
    3434
  • bubuku-media-library/tags/1.0.3/src/BML_common.php

    r2786524 r2809833  
    4848
    4949        } else {
    50             esc_html_e('This media is not supported.', 'bbkmedialibrary');
     50            esc_html_e('This media is not supported.', 'bubuku-media-library');
    5151        }
    5252   
  • bubuku-media-library/tags/1.0.3/src/BML_filter.php

    r2786524 r2809833  
    4141            }
    4242   
    43             echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'bbkmedialibrary' ) .'</option>';
     43            echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'bubuku-media-library' ) .'</option>';
    4444            $aItems = array(
    4545                        array(
    4646                            'id' => '1',
    47                             'label' => esc_html__('Empty alt text', 'bbkmedialibrary' )
     47                            'label' => esc_html__('Empty alt text', 'bubuku-media-library' )
    4848                        ),
    4949                        array(
    5050                            'id' => '2',
    51                             'label' => esc_html__('full alt text', 'bbkmedialibrary' )
     51                            'label' => esc_html__('full alt text', 'bubuku-media-library' )
    5252                        )
    5353            );
     
    6868            }
    6969   
    70             echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'bbkmedialibrary' ) .'</option>';
     70            echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'bubuku-media-library' ) .'</option>';
    7171            $aItems = array(
    7272                        array(
    7373                            'id' => '1',
    74                             'label' => esc_html__('Good file size', 'bbkmedialibrary' )
     74                            'label' => esc_html__('Good file size', 'bubuku-media-library' )
    7575                        ),
    7676                        array(
    7777                            'id' => '2',
    78                             'label' => esc_html__('Medium file size', 'bbkmedialibrary' )
     78                            'label' => esc_html__('Medium file size', 'bubuku-media-library' )
    7979                        ),
    8080                        array(
    8181                            'id' => '3',
    82                             'label' => esc_html__('High file size', 'bbkmedialibrary' )
     82                            'label' => esc_html__('High file size', 'bubuku-media-library' )
    8383                        )
    8484            );
     
    155155                        break;
    156156                    case 2:
    157                         // medium -> 100.001k - 999.999K
     157                        // medium -> 100.001k - 499.999K
    158158                        $compare = array(
    159159                            'key' => '_bkml_attachment_file_size',
    160                             'value' => array(100001, 999999),
     160                            'value' => array(100001, 499999),
    161161                            'type'     => 'numeric',
    162162                            'compare' => 'between',
     
    164164                        break;
    165165                    case 3:
    166                         // High -> >= 1M
     166                        // High -> >= 500
    167167                        $compare = array(
    168168                            'key' => '_bkml_attachment_file_size',
    169                             'value' => 1000000,
     169                            'value' => 500000,
    170170                            'type'     => 'numeric',
    171171                            'compare' => '>=',
  • bubuku-media-library/tags/1.0.3/src/BML_plugin.php

    r2786524 r2809833  
    2424        define( 'BUBUKU_BML_PLUGIN_ASSETS_URL', BUBUKU_BML_PLUGIN_URL . '/assets' );
    2525        define( 'BUBUKU_BML_PLUGIN_ENDPOINTS_URL', 'bbk_medialibrary/v1' );
    26         define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0.2' );
     26        define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0.3' );
    2727        define( 'BUBUKU_BML_PLUGIN_NONCE', wp_create_nonce('media-library'. BUBUKU_BML_PLUGIN_VERSION) );
    2828
    29         load_plugin_textdomain( 'bbkmedialibrary', false, BUBUKU_BML_PLUGIN_BASE . '/languages' );
     29        load_plugin_textdomain( 'bubuku-media-library', false, BUBUKU_BML_PLUGIN_BASE . '/languages/' );
    3030
    3131        new BML_assets();
     
    3333        new BML_restapi();
    3434        new BML_filter();
     35        new BML_bulk_action();
    3536    }
    3637
  • bubuku-media-library/tags/1.0.3/src/BML_restapi.php

    r2786524 r2809833  
    5050
    5151        if ( BUBUKU_BML_PLUGIN_NONCE !== $nonce && empty($media_id)) {
    52             wp_send_json_error( esc_html__('empty Media ID', 'bbkmedialibrary') );
     52            wp_send_json_error( esc_html__('empty Media ID', 'bubuku-media-library') );
    5353            die();
    5454        }
  • bubuku-media-library/tags/1.0.3/src/BML_view.php

    r2786524 r2809833  
    3333       
    3434        if ( !empty( $file_size ) ) {
    35             if ( 100000 < $file_size && 1000000 > $file_size ) {
    36                 //mayor de 100k
     35            if ( 100001 > $file_size) {
     36                $file_size_style = 'bk_good';
     37            } else if ( 500001 > $file_size) {
    3738                $file_size_style = 'bk_medium';
    38 
    39             } else if ( 1000000 < $file_size ) {
    40                 //mayor de 1M
     39            } else {
    4140                $file_size_style = 'bk_high';
    42             } else {
    43                 $file_size_style = 'bk_good';
    4441            }
    4542
     
    6259            return '<p class="bk_file_size_item">
    6360                        '.  $file_size_out .'
    64                         <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'bbkmedialibrary') .'</small> 
     61                        <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'bubuku-media-library') .'</small> 
    6562                        <button type="button" class="bk_btn js-calculate" data-id="'. $media_id .'">
    66                             <span class="bk_txt button-primary">'. esc_html__('Calculate', 'bbkmedialibrary') .'</span>
     63                            <span class="bk_txt button-primary">'. esc_html__('Calculate', 'bubuku-media-library') .'</span>
    6764                            <span class="bk_loader"></span>
    6865                        </button>
     
    7067        }
    7168
    72         return esc_html__('error', 'bbkmedialibrary');
     69        return esc_html__('error', 'bubuku-media-library');
    7370    }
    7471
     
    9491                    <p class="bk_alt '. esc_html( $alt_style ) .'">
    9592                        <span class="dashicons '. esc_html( $icon_style ) .'"></span>
    96                         '. esc_html__('Image alt text', 'bbkmedialibrary') .'
     93                        '. esc_html__('Image alt text', 'bubuku-media-library') .'
    9794                    </p>
    9895                </div>';
  • bubuku-media-library/trunk/bubuku-media-library.php

    r2786524 r2809833  
    55 * Requires at least: 5.2
    66 * Requires PHP:      7.2
    7  * Version:     1.0.2
     7 * Version:     1.0.3
    88 * Author:      Bubuku
    99 * Author URI:  https://www.bubuku.com/
    10  * Text Domain: bbkmedialibrary
     10 * Text Domain: bubuku-media-library
    1111 * Domain Path: /languages
    1212 * License:     EUPL v1.2
  • bubuku-media-library/trunk/readme.txt

    r2786524 r2809833  
    33Tags: images, media library, performance, Alt Text, seo
    44Requires at least: 5.2
    5 Tested up to: 6.0.2
    6 Requires PHP: 7.3
    7 Stable tag: 1.0.2
     5Tested up to: 6.1
     6Requires PHP: 7.2
     7Stable tag: 1.0.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1717
    18181. Green: Images 100K or less are assigned a good optimization status.
    19 2. Orange: Images between 100K and 1M are assigned a medium optimization status.
    20 3. Red: For images of 1M or more, we assign a status of poor optimization.
     192. Orange: Images between 100K and 500k are assigned a medium optimization status.
     203. Red: For images of 500k or more, we assign a status of poor optimization.
    2121
    2222Thanks to this plugin, we can see if images need to be optimized and improve page load and SEO of images
     
    30302. Filter to better identify the images that have the alt text
    31313. Filter to identify images with larger or smaller sizes.
     324. Bulk Action to calculate file size.
    3233
    3334== Changelog ==
     35= 1.0.3 =
     36* Add a Bulk Action to calculate file size in WordPress admin
     37* Improvements in measurement ranges
     38* fix: Internationalization Issues
     39
    3440= 1.0.2 =
    3541* Rename variables
  • bubuku-media-library/trunk/src/BML_assets.php

    r2786524 r2809833  
    3030            BUBUKU_BML_PLUGIN_ASSETS_URL . '/css/admin.css',
    3131            false,
    32             '1.0.2'
     32            '1.0.3'
    3333        );
    3434
  • bubuku-media-library/trunk/src/BML_common.php

    r2786524 r2809833  
    4848
    4949        } else {
    50             esc_html_e('This media is not supported.', 'bbkmedialibrary');
     50            esc_html_e('This media is not supported.', 'bubuku-media-library');
    5151        }
    5252   
  • bubuku-media-library/trunk/src/BML_filter.php

    r2786524 r2809833  
    4141            }
    4242   
    43             echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'bbkmedialibrary' ) .'</option>';
     43            echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'bubuku-media-library' ) .'</option>';
    4444            $aItems = array(
    4545                        array(
    4646                            'id' => '1',
    47                             'label' => esc_html__('Empty alt text', 'bbkmedialibrary' )
     47                            'label' => esc_html__('Empty alt text', 'bubuku-media-library' )
    4848                        ),
    4949                        array(
    5050                            'id' => '2',
    51                             'label' => esc_html__('full alt text', 'bbkmedialibrary' )
     51                            'label' => esc_html__('full alt text', 'bubuku-media-library' )
    5252                        )
    5353            );
     
    6868            }
    6969   
    70             echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'bbkmedialibrary' ) .'</option>';
     70            echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'bubuku-media-library' ) .'</option>';
    7171            $aItems = array(
    7272                        array(
    7373                            'id' => '1',
    74                             'label' => esc_html__('Good file size', 'bbkmedialibrary' )
     74                            'label' => esc_html__('Good file size', 'bubuku-media-library' )
    7575                        ),
    7676                        array(
    7777                            'id' => '2',
    78                             'label' => esc_html__('Medium file size', 'bbkmedialibrary' )
     78                            'label' => esc_html__('Medium file size', 'bubuku-media-library' )
    7979                        ),
    8080                        array(
    8181                            'id' => '3',
    82                             'label' => esc_html__('High file size', 'bbkmedialibrary' )
     82                            'label' => esc_html__('High file size', 'bubuku-media-library' )
    8383                        )
    8484            );
     
    155155                        break;
    156156                    case 2:
    157                         // medium -> 100.001k - 999.999K
     157                        // medium -> 100.001k - 499.999K
    158158                        $compare = array(
    159159                            'key' => '_bkml_attachment_file_size',
    160                             'value' => array(100001, 999999),
     160                            'value' => array(100001, 499999),
    161161                            'type'     => 'numeric',
    162162                            'compare' => 'between',
     
    164164                        break;
    165165                    case 3:
    166                         // High -> >= 1M
     166                        // High -> >= 500
    167167                        $compare = array(
    168168                            'key' => '_bkml_attachment_file_size',
    169                             'value' => 1000000,
     169                            'value' => 500000,
    170170                            'type'     => 'numeric',
    171171                            'compare' => '>=',
  • bubuku-media-library/trunk/src/BML_plugin.php

    r2786524 r2809833  
    2424        define( 'BUBUKU_BML_PLUGIN_ASSETS_URL', BUBUKU_BML_PLUGIN_URL . '/assets' );
    2525        define( 'BUBUKU_BML_PLUGIN_ENDPOINTS_URL', 'bbk_medialibrary/v1' );
    26         define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0.2' );
     26        define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0.3' );
    2727        define( 'BUBUKU_BML_PLUGIN_NONCE', wp_create_nonce('media-library'. BUBUKU_BML_PLUGIN_VERSION) );
    2828
    29         load_plugin_textdomain( 'bbkmedialibrary', false, BUBUKU_BML_PLUGIN_BASE . '/languages' );
     29        load_plugin_textdomain( 'bubuku-media-library', false, BUBUKU_BML_PLUGIN_BASE . '/languages/' );
    3030
    3131        new BML_assets();
     
    3333        new BML_restapi();
    3434        new BML_filter();
     35        new BML_bulk_action();
    3536    }
    3637
  • bubuku-media-library/trunk/src/BML_restapi.php

    r2786524 r2809833  
    5050
    5151        if ( BUBUKU_BML_PLUGIN_NONCE !== $nonce && empty($media_id)) {
    52             wp_send_json_error( esc_html__('empty Media ID', 'bbkmedialibrary') );
     52            wp_send_json_error( esc_html__('empty Media ID', 'bubuku-media-library') );
    5353            die();
    5454        }
  • bubuku-media-library/trunk/src/BML_view.php

    r2786524 r2809833  
    3333       
    3434        if ( !empty( $file_size ) ) {
    35             if ( 100000 < $file_size && 1000000 > $file_size ) {
    36                 //mayor de 100k
     35            if ( 100001 > $file_size) {
     36                $file_size_style = 'bk_good';
     37            } else if ( 500001 > $file_size) {
    3738                $file_size_style = 'bk_medium';
    38 
    39             } else if ( 1000000 < $file_size ) {
    40                 //mayor de 1M
     39            } else {
    4140                $file_size_style = 'bk_high';
    42             } else {
    43                 $file_size_style = 'bk_good';
    4441            }
    4542
     
    6259            return '<p class="bk_file_size_item">
    6360                        '.  $file_size_out .'
    64                         <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'bbkmedialibrary') .'</small> 
     61                        <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'bubuku-media-library') .'</small> 
    6562                        <button type="button" class="bk_btn js-calculate" data-id="'. $media_id .'">
    66                             <span class="bk_txt button-primary">'. esc_html__('Calculate', 'bbkmedialibrary') .'</span>
     63                            <span class="bk_txt button-primary">'. esc_html__('Calculate', 'bubuku-media-library') .'</span>
    6764                            <span class="bk_loader"></span>
    6865                        </button>
     
    7067        }
    7168
    72         return esc_html__('error', 'bbkmedialibrary');
     69        return esc_html__('error', 'bubuku-media-library');
    7370    }
    7471
     
    9491                    <p class="bk_alt '. esc_html( $alt_style ) .'">
    9592                        <span class="dashicons '. esc_html( $icon_style ) .'"></span>
    96                         '. esc_html__('Image alt text', 'bbkmedialibrary') .'
     93                        '. esc_html__('Image alt text', 'bubuku-media-library') .'
    9794                    </p>
    9895                </div>';
Note: See TracChangeset for help on using the changeset viewer.