| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Plus WebP |
| 4 | 4 | * Plugin URI: https://wordpress.org/plugins/plus-webp/ |
| 5 | 5 | * Description: Generate WebP. |
| 6 | - * Version: 2.05 | |
| 6 | + * Version: 4.11 | |
| 7 | 7 | * Author: Katsushi Kawamori |
| 8 | 8 | * Author URI: https://riverforest-wp.info/ |
| 9 | 9 | * License: GPLv2 or later |
| 10 | 10 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| @@ -29,11 +29,12 @@ | ||
| 29 | 29 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 30 | 30 | */ |
| 31 | 31 | |
| 32 | 32 | if ( ! class_exists( 'PlusWebp' ) ) { |
| 33 | - require_once dirname( __FILE__ ) . '/lib/class-pluswebp.php'; | |
| 33 | + require_once __DIR__ . '/lib/class-pluswebp.php'; | |
| 34 | 34 | } |
| 35 | 35 | if ( ! class_exists( 'PlusWebpAdmin' ) ) { |
| 36 | - require_once dirname( __FILE__ ) . '/lib/class-pluswebpadmin.php'; | |
| 36 | + require_once __DIR__ . '/lib/class-pluswebpadmin.php'; | |
| 37 | 37 | } |
| 38 | - | |
| 39 | - | |
| 38 | +if ( class_exists( 'WP_CLI' ) ) { | |
| 39 | + require_once __DIR__ . '/lib/pluswebp-cli.php'; | |
| 40 | +} | |