Skip to content

Commit f5ff539

Browse files
committed
Version 1.0.2
1 parent f5c813b commit f5ff539

File tree

5 files changed

+40
-22
lines changed

5 files changed

+40
-22
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.DS_Store
2+
Thumbs.db
3+
wp-cli.local.yml
4+
node_modules/
5+
dist/**
6+
build/**
7+
tests/wordpress
8+
tests/wordpress-tests-lib
9+
tests/**/*.cache
10+
vendor/
11+
*.sql
12+
*.tar.gz
13+
*.zip
14+
*.lock
15+
.idea/
16+
!composer.lock
17+
!/src/yarn.lock
18+
19+
cache/**
File renamed without changes.

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.0.2]
8+
* Tested with Wordpress 5.4
9+
710
## [1.0.0]
811
* (22 October 2018). Initial Release.

pagespeed-optimization.php

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,37 @@
44
* Plugin URI:
55
* Description: Optimize external scripts by storing them locally
66
* Author: KAGG Design
7-
* Version: 1.0.1
7+
* Version: 1.0.2
88
* Author URI: https://kagg.eu/en/
99
* Requires at least: 4.4
10-
* Tested up to: 5.0
10+
* Tested up to: 5.4
1111
*
1212
* Text Domain: kagg-pagespeed-optimization
1313
* Domain Path: /languages/
1414
*
1515
* @package PageSpeed Optimization
16-
* @author KAGG Design
16+
* @author KAGG Design
1717
*/
1818

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

23-
// Define WC_PLUGIN_FILE.
24-
if ( ! defined( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE' ) ) {
25-
define( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE', __FILE__ );
23+
if ( defined( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE' ) ) {
24+
return;
2625
}
2726

2827
/**
29-
* Init PageSpeed Optimization class on plugin load.
28+
* Plugin main file.
3029
*/
30+
define( 'PAGESPEED_OPTIMIZATION_PLUGIN_FILE', __FILE__ );
3131

32-
function init_pagespeed_optimization_class() {
33-
static $plugin;
34-
35-
if ( ! isset( $plugin ) ) {
36-
// Require plugin classes.
37-
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-optimization.php';
38-
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-filesystem.php';
39-
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-resources-to-footer.php';
40-
41-
$plugin = new PageSpeed_Optimization();
42-
new PageSpeed_Resources_To_Footer();
43-
}
44-
}
45-
46-
init_pagespeed_optimization_class();
32+
/**
33+
* Init PageSpeed Optimization classes on plugin load.
34+
*/
35+
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-optimization.php';
36+
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-filesystem.php';
37+
require_once dirname( __FILE__ ) . '/includes/class-pagespeed-resources-to-footer.php';
4738

39+
new PageSpeed_Optimization();
40+
new PageSpeed_Resources_To_Footer();

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ If you get stuck, you can ask for help in the [PageSpeed Optimization Plugin For
5151

5252
== Changelog ==
5353

54+
= 1.0.2 =
55+
* Tested with WordPress 5.4
56+
5457
= 1.0.0 =
5558
* Initial release.

0 commit comments

Comments
 (0)