Plugin Directory

Changeset 2958597


Ignore:
Timestamp:
08/26/2023 12:03:24 PM (3 years ago)
Author:
markomaksym
Message:

Tested up to WP 6.3

Location:
cut-down-uploads-size
Files:
102 added
5 edited

Legend:

Unmodified
Added
Removed
  • cut-down-uploads-size/trunk/all-images-optimizer.php

    r2555632 r2958597  
    44Plugin URI: https://github.com/Maxim-us/
    55Description: The “Cut down uploads size” plugin allows you to optimize all the images from your “uploads” folder.
    6 Author: Marko Maksym
    7 Version: 1.1
     6Author: Maksym Marko
     7Version: 1.2
    88Author URI: https://markomaksym.com.ua/
    99*/
     
    7575
    7676    // version
    77     define( 'MXAIO_PLUGIN_VERSION', '1.1' ); // Must be replaced before production on for example '1.0'
     77    define( 'MXAIO_PLUGIN_VERSION', '1.2' ); // Must be replaced before production on for example '1.0'
    7878
    7979}
  • cut-down-uploads-size/trunk/includes/core/Model.php

    r2554501 r2958597  
    3737    * select row from the database
    3838    */
    39     public function mxaio_get_row( $table = NULL, $wher_name, $wher_value )
     39    public function mxaio_get_row( $table = NULL, $wher_name='', $wher_value='' )
    4040    {
    4141
  • cut-down-uploads-size/trunk/includes/core/Route-Registrar.php

    r2554501 r2958597  
    9191    *
    9292    */
    93     public function mxaio_set_data( $controller, $action, $slug = MXAIO_MAIN_MENU_SLUG, array $menu_properties, $sub_menu_slug = false, $settings_area = false )
     93    public function mxaio_set_data( $controller='', $action='', $slug = MXAIO_MAIN_MENU_SLUG, array $menu_properties=[], $sub_menu_slug = false, $settings_area = false )
    9494    {
    9595
  • cut-down-uploads-size/trunk/readme.txt

    r2562006 r2958597  
    33Tags: image optimization, reduce image size, compress images, optimize images
    44Requires at least: 5.0
    5 Tested up to: 5.7
    6 Stable tag: 1.1
     5Tested up to: 6.3
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 1.2 =
     54* Tested up to WP 6.3
     55
    5356= 1.1 =
    5457* Memory limit bug fixed
  • cut-down-uploads-size/trunk/uninstall.php

    r2554501 r2958597  
    33// uninstall
    44if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) die();
    5            
    6 global $wpdb;
    7 
    8 // table name
    9 $table_names = [];
    10 
    11 $table_names[] = $wpdb->prefix . 'mxaio_table_slug';
    12 
    13 // drop table(s);
    14 foreach( $table_names as $table_name ){
    15 
    16     $sql = 'DROP TABLE IF EXISTS ' . $table_name . ';';
    17 
    18     $wpdb->query( $sql );
    19 
    20 }
    21 
    22 // Delete posts CPT
    23 $posts = get_posts( [ 'post_type' => 'mxaio_book', 'numberposts' => -1 ] );
    24 
    25 foreach( $posts as $post ){
    26 
    27     wp_delete_post( $post->ID, true );
    28 
    29 }
    30 
     5 
    316//delete_option( 'some_option' );
Note: See TracChangeset for help on using the changeset viewer.