Skip to content

Commit

Permalink
Version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Mar 24, 2020
1 parent f5c813b commit f5ff539
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 22 deletions.
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.DS_Store
Thumbs.db
wp-cli.local.yml
node_modules/
dist/**
build/**
tests/wordpress
tests/wordpress-tests-lib
tests/**/*.cache
vendor/
*.sql
*.tar.gz
*.zip
*.lock
.idea/
!composer.lock
!/src/yarn.lock

cache/**
File renamed without changes.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.2]
* Tested with Wordpress 5.4

## [1.0.0]
* (22 October 2018). Initial Release.
37 changes: 15 additions & 22 deletions pagespeed-optimization.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,37 @@
* Plugin URI:
* Description: Optimize external scripts by storing them locally
* Author: KAGG Design
* Version: 1.0.1
* Version: 1.0.2
* Author URI: https://kagg.eu/en/
* Requires at least: 4.4
* Tested up to: 5.0
* Tested up to: 5.4
*
* Text Domain: kagg-pagespeed-optimization
* Domain Path: /languages/
*
* @package PageSpeed Optimization
* @author KAGG Design
* @author KAGG Design
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

// Define WC_PLUGIN_FILE.
if ( ! defined( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE' ) ) {
define( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE', __FILE__ );
if ( defined( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE' ) ) {
return;
}

/**
* Init PageSpeed Optimization class on plugin load.
* Plugin main file.
*/
define( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE', __FILE__ );

function init_pagespeed_optimization_class() {
static $plugin;

if ( ! isset( $plugin ) ) {
// Require plugin classes.
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-optimization.php';
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-filesystem.php';
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-resources-to-footer.php';

$plugin = new PageSpeed_Optimization();
new PageSpeed_Resources_To_Footer();
}
}

init_pagespeed_optimization_class();
/**
* Init PageSpeed Optimization classes on plugin load.
*/
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-optimization.php';
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-filesystem.php';
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-resources-to-footer.php';

new PageSpeed_Optimization();
new PageSpeed_Resources_To_Footer();
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@ If you get stuck, you can ask for help in the [PageSpeed Optimization Plugin For

== Changelog ==

= 1.0.2 =
* Tested with WordPress 5.4

= 1.0.0 =
* Initial release.

0 comments on commit f5ff539

Please sign in to comment.