Plugin Directory

Changeset 2969420

Timestamp:
09/20/2023 06:59:07 PM (11 months ago)
Author:
nosilver4u
Message:

tagging and releasing 2.8.3

Location:
imsanity
Files:
2 deleted
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • imsanity/tags/2.8.3/.travis.yml

    r2794659 r2969420  
    11os: linux
     2
    23dist: bionic
    34
     
    1415
    1516php:
    16   - 7.2
    17   - 7.4
     17  - 7.
     18  -
    1819
    1920env:
     
    2425  - phpenv config-rm xdebug.ini
    2526  - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
    26   - composer global require wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer phpcompatibility/phpcompatibility-wp
     27  - composer global require phpcompatibility/phpcompatibility-wp
    2728
    2829script:
  • imsanity/tags/2.8.3/changelog.txt

    r2794659 r2969420  
     1
     2
     3
     4
    15= 2.8.2 =
    26* fixed: mime type error when filename in attachment metadata is incorrect
  • imsanity/tags/2.8.3/class-imsanity-cli.php

    r2271703 r2969420  
    3232     * @param array $assoc_args An array of named arguments provided via WP-CLI.
    3333     */
    34     function resize( $args, $assoc_args ) {
     34    function resize( $args, $assoc_args ) {
    3535
    3636        // let's get started, shall we?
     
    7272            $imagew = false;
    7373            $imageh = false;
    74             $images_finished++;
     74            ;
    7575
    7676            $path = get_attached_file( $id );
  • imsanity/tags/2.8.3/imsanity.php

    r2794659 r2969420  
    1515Author: Exactly WWW
    1616Domain Path: /languages
    17 Version: 2.8.2
    18 Requires at least: 5.5
    19 Requires PHP: 7.2
     17Version: 2.8.
     18Requires at least:
     19Requires PHP: 7.
    2020Author URI: https://ewww.io/about/
    2121License: GPLv3
     
    2626}
    2727
    28 define( 'IMSANITY_VERSION', '2.8.2' );
     28define( 'IMSANITY_VERSION', '2.8.' );
    2929define( 'IMSANITY_SCHEMA_VERSION', '1.1' );
    3030
     
    6666 * Import supporting libraries.
    6767 */
    68 require_once( plugin_dir_path( __FILE__ ) . 'libs/utils.php' );
    69 require_once( plugin_dir_path( __FILE__ ) . 'settings.php' );
    70 require_once( plugin_dir_path( __FILE__ ) . 'ajax.php' );
    71 require_once( plugin_dir_path( __FILE__ ) . 'media.php' );
     68require_once;
     69require_once;
     70require_once;
     71require_once;
    7272if ( defined( 'WP_CLI' ) && WP_CLI ) {
    73     require_once( plugin_dir_path( __FILE__ ) . 'class-imsanity-cli.php' );
     73    require_once;
    7474}
    7575
     
    152152 */
    153153function imsanity_get_max_width_height( $source ) {
    154     $w = imsanity_get_option( 'imsanity_max_width', IMSANITY_DEFAULT_MAX_WIDTH );
    155     $h = imsanity_get_option( 'imsanity_max_height', IMSANITY_DEFAULT_MAX_HEIGHT );
     154    $w = imsanity_get_option( 'imsanity_max_width', IMSANITY_DEFAULT_MAX_WIDTH );
     155    $h = imsanity_get_option( 'imsanity_max_height', IMSANITY_DEFAULT_MAX_HEIGHT );
    156156
    157157    switch ( $source ) {
     
    159159            break;
    160160        case IMSANITY_SOURCE_LIBRARY:
    161             $w = imsanity_get_option( 'imsanity_max_width_library', $w );
    162             $h = imsanity_get_option( 'imsanity_max_height_library', $h );
     161            $w = imsanity_get_option( 'imsanity_max_width_library', $w );
     162            $h = imsanity_get_option( 'imsanity_max_height_library', $h );
    163163            break;
    164164        default:
    165             $w = imsanity_get_option( 'imsanity_max_width_other', $w );
    166             $h = imsanity_get_option( 'imsanity_max_height_other', $h );
     165            $w = imsanity_get_option( 'imsanity_max_width_other', $w );
     166            $h = imsanity_get_option( 'imsanity_max_height_other', $h );
    167167            break;
    168168    }
     
    227227            list( $maxw, $maxh ) = $max_width_height;
    228228        }
     229
     230
    229231
    230232        list( $oldw, $oldh ) = getimagesize( $oldpath );
  • imsanity/tags/2.8.3/libs/utils.php

    r2794659 r2969420  
    55 * @package Imsanity
    66 */
    7 
    8 /**
    9  * Util function returns an array value, if not defined then returns default instead.
    10  *
    11  * @param array  $arr Any array.
    12  * @param string $key Any index from that array.
    13  * @param mixed  $default Whatever you want.
    14  */
    15 function imsanity_val( $arr, $key, $default = '' ) {
    16     return isset( $arr[ $key ] ) ? $arr[ $key ] : $default;
    17 }
    187
    198/**
     
    116105function imsanity_get_orientation( $file, $type ) {
    117106    if ( function_exists( 'exif_read_data' ) && 'image/jpeg' === $type ) {
    118         $exif = @exif_read_data( $file );
     107        $exif = @exif_read_data( $file );
    119108        if ( is_array( $exif ) && array_key_exists( 'Orientation', $exif ) ) {
    120109            return (int) $exif['Orientation'];
  • imsanity/tags/2.8.3/phpcs.ruleset.xml

    r2743190 r2969420  
    1414    </rule>
    1515
     16
    1617    <rule ref="PHPCompatibilityWP">
    1718        <severity>10</severity>
  • imsanity/tags/2.8.3/readme.txt

    r2794659 r2969420  
    33Donate link: https://ewww.io/donate/
    44Tags: image, scale, resize, space saver, quality, upload
    5 Requires at least: 5.5
    6 Tested up to: 6.1
    7 Requires PHP: 7.2
    8 Stable tag: 2.8.2
     5Requires at least:
     6Tested up to: 6.
     7Requires PHP: 7.
     8Stable tag: 2.8.
    99License: GPLv3
    1010
     
    1818
    1919This plugin is ideal for blogs that do not require hi-resolution original images to be stored and/or the contributors don't want (or understand how) to scale images before uploading.
     20
     21
    2022
    2123= Features =
     
    107109== Changelog ==
    108110
     111
     112
     113
     114
    109115= 2.8.2 =
    110116* fixed: mime type error when filename in attachment metadata is incorrect
  • imsanity/tags/2.8.3/settings.php

    r2743190 r2969420  
    4848    if ( ! function_exists( 'is_plugin_active_for_network' ) && is_multisite() ) {
    4949        // Need to include the plugin library for the is_plugin_active function.
    50         require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     50        require_once;
    5151    }
    5252    if ( is_multisite() ) {
     
    200200                    );';
    201201
    202         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     202        require_once;
    203203        dbDelta( $sql );
    204204
     
    837837    </form>
    838838    <?php
    839 
    840 }
     839}
  • imsanity/trunk/.travis.yml

    r2794659 r2969420  
    11os: linux
     2
    23dist: bionic
    34
     
    1415
    1516php:
    16   - 7.2
    17   - 7.4
     17  - 7.
     18  -
    1819
    1920env:
     
    2425  - phpenv config-rm xdebug.ini
    2526  - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
    26   - composer global require wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer phpcompatibility/phpcompatibility-wp
     27  - composer global require phpcompatibility/phpcompatibility-wp
    2728
    2829script:
  • imsanity/trunk/changelog.txt

    r2794659 r2969420  
     1
     2
     3
     4
    15= 2.8.2 =
    26* fixed: mime type error when filename in attachment metadata is incorrect
  • imsanity/trunk/class-imsanity-cli.php

    r2271703 r2969420  
    3232     * @param array $assoc_args An array of named arguments provided via WP-CLI.
    3333     */
    34     function resize( $args, $assoc_args ) {
     34    function resize( $args, $assoc_args ) {
    3535
    3636        // let's get started, shall we?
     
    7272            $imagew = false;
    7373            $imageh = false;
    74             $images_finished++;
     74            ;
    7575
    7676            $path = get_attached_file( $id );
  • imsanity/trunk/imsanity.php

    r2794659 r2969420  
    1515Author: Exactly WWW
    1616Domain Path: /languages
    17 Version: 2.8.2
    18 Requires at least: 5.5
    19 Requires PHP: 7.2
     17Version: 2.8.
     18Requires at least:
     19Requires PHP: 7.
    2020Author URI: https://ewww.io/about/
    2121License: GPLv3
     
    2626}
    2727
    28 define( 'IMSANITY_VERSION', '2.8.2' );
     28define( 'IMSANITY_VERSION', '2.8.' );
    2929define( 'IMSANITY_SCHEMA_VERSION', '1.1' );
    3030
     
    6666 * Import supporting libraries.
    6767 */
    68 require_once( plugin_dir_path( __FILE__ ) . 'libs/utils.php' );
    69 require_once( plugin_dir_path( __FILE__ ) . 'settings.php' );
    70 require_once( plugin_dir_path( __FILE__ ) . 'ajax.php' );
    71 require_once( plugin_dir_path( __FILE__ ) . 'media.php' );
     68require_once;
     69require_once;
     70require_once;
     71require_once;
    7272if ( defined( 'WP_CLI' ) && WP_CLI ) {
    73     require_once( plugin_dir_path( __FILE__ ) . 'class-imsanity-cli.php' );
     73    require_once;
    7474}
    7575
     
    152152 */
    153153function imsanity_get_max_width_height( $source ) {
    154     $w = imsanity_get_option( 'imsanity_max_width', IMSANITY_DEFAULT_MAX_WIDTH );
    155     $h = imsanity_get_option( 'imsanity_max_height', IMSANITY_DEFAULT_MAX_HEIGHT );
     154    $w = imsanity_get_option( 'imsanity_max_width', IMSANITY_DEFAULT_MAX_WIDTH );
     155    $h = imsanity_get_option( 'imsanity_max_height', IMSANITY_DEFAULT_MAX_HEIGHT );
    156156
    157157    switch ( $source ) {
     
    159159            break;
    160160        case IMSANITY_SOURCE_LIBRARY:
    161             $w = imsanity_get_option( 'imsanity_max_width_library', $w );
    162             $h = imsanity_get_option( 'imsanity_max_height_library', $h );
     161            $w = imsanity_get_option( 'imsanity_max_width_library', $w );
     162            $h = imsanity_get_option( 'imsanity_max_height_library', $h );
    163163            break;
    164164        default:
    165             $w = imsanity_get_option( 'imsanity_max_width_other', $w );
    166             $h = imsanity_get_option( 'imsanity_max_height_other', $h );
     165            $w = imsanity_get_option( 'imsanity_max_width_other', $w );
     166            $h = imsanity_get_option( 'imsanity_max_height_other', $h );
    167167            break;
    168168    }
     
    227227            list( $maxw, $maxh ) = $max_width_height;
    228228        }
     229
     230
    229231
    230232        list( $oldw, $oldh ) = getimagesize( $oldpath );
  • imsanity/trunk/libs/utils.php

    r2794659 r2969420  
    55 * @package Imsanity
    66 */
    7 
    8 /**
    9  * Util function returns an array value, if not defined then returns default instead.
    10  *
    11  * @param array  $arr Any array.
    12  * @param string $key Any index from that array.
    13  * @param mixed  $default Whatever you want.
    14  */
    15 function imsanity_val( $arr, $key, $default = '' ) {
    16     return isset( $arr[ $key ] ) ? $arr[ $key ] : $default;
    17 }
    187
    198/**
     
    116105function imsanity_get_orientation( $file, $type ) {
    117106    if ( function_exists( 'exif_read_data' ) && 'image/jpeg' === $type ) {
    118         $exif = @exif_read_data( $file );
     107        $exif = @exif_read_data( $file );
    119108        if ( is_array( $exif ) && array_key_exists( 'Orientation', $exif ) ) {
    120109            return (int) $exif['Orientation'];
  • imsanity/trunk/phpcs.ruleset.xml

    r2743190 r2969420  
    1414    </rule>
    1515
     16
    1617    <rule ref="PHPCompatibilityWP">
    1718        <severity>10</severity>
  • imsanity/trunk/readme.txt

    r2794659 r2969420  
    33Donate link: https://ewww.io/donate/
    44Tags: image, scale, resize, space saver, quality, upload
    5 Requires at least: 5.5
    6 Tested up to: 6.1
    7 Requires PHP: 7.2
    8 Stable tag: 2.8.2
     5Requires at least:
     6Tested up to: 6.
     7Requires PHP: 7.
     8Stable tag: 2.8.
    99License: GPLv3
    1010
     
    1818
    1919This plugin is ideal for blogs that do not require hi-resolution original images to be stored and/or the contributors don't want (or understand how) to scale images before uploading.
     20
     21
    2022
    2123= Features =
     
    107109== Changelog ==
    108110
     111
     112
     113
     114
    109115= 2.8.2 =
    110116* fixed: mime type error when filename in attachment metadata is incorrect
  • imsanity/trunk/settings.php

    r2743190 r2969420  
    4848    if ( ! function_exists( 'is_plugin_active_for_network' ) && is_multisite() ) {
    4949        // Need to include the plugin library for the is_plugin_active function.
    50         require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     50        require_once;
    5151    }
    5252    if ( is_multisite() ) {
     
    200200                    );';
    201201
    202         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     202        require_once;
    203203        dbDelta( $sql );
    204204
     
    837837    </form>
    838838    <?php
    839 
    840 }
     839}
Note: See TracChangeset for help on using the changeset viewer.