Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: shinsenter/defer-wordpress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.3.0
Choose a base ref
...
head repository: shinsenter/defer-wordpress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 16 commits
  • 32 files changed
  • 1 contributor

Commits on Apr 17, 2021

  1. 2.4.0

    shinsenter committed Apr 17, 2021
    Copy the full SHA
    7772086 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a3fdebd View commit details

Commits on May 14, 2021

  1. Updated libraries

    shinsenter committed May 14, 2021
    Copy the full SHA
    f27dd68 View commit details

Commits on May 15, 2021

  1. Small updates

    shinsenter committed May 15, 2021
    Copy the full SHA
    a3c42fd View commit details

Commits on Jun 6, 2021

  1. Updated libraries

    shinsenter committed Jun 6, 2021
    Copy the full SHA
    21dba28 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a923c4f View commit details

Commits on Aug 15, 2021

  1. Small bug fixes (#61)

    * Update dependencies
    * Small bug fixes
    shinsenter authored Aug 15, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ec5371e View commit details

Commits on Oct 14, 2021

  1. Create FUNDING.yml

    shinsenter authored Oct 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5a26c60 View commit details

Commits on Sep 7, 2023

  1. Addressed deprecation errors for compatibility with newer PHP versions (

    #63)
    
    * Update dependencies
    
    * Small bug fixes
    
    * Update dependencies
    
    * Version up
    
    * v2.5
    shinsenter authored Sep 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    41ea13f View commit details

Commits on Sep 19, 2023

  1. Fixed JSON requests

    shinsenter committed Sep 19, 2023
    Copy the full SHA
    fcd8125 View commit details

Commits on Mar 11, 2024

  1. For 2.8.0 (#66)

    shinsenter authored Mar 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7acf773 View commit details

Commits on Mar 12, 2024

  1. For 2.9.0 (#67)

    shinsenter authored Mar 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a2e8584 View commit details

Commits on Jun 28, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ac73cca View commit details

Commits on Aug 12, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    de2364f View commit details
  2. Update defer-wordpress.php

    Hotfix
    shinsenter authored Aug 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b15ca0f View commit details
  3. Hotfix (#70)

    shinsenter authored Aug 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3f75e5e View commit details
25 changes: 16 additions & 9 deletions .dist/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
#!/bin/bash

shopt -s expand_aliases
alias sed=$(which gsed)

# git checkout master
# git fetch --all
# git reset --hard origin/master
# git pull

rm -Rf vendor
base_dir=`pwd`
base_dir="$(pwd)"
build_dir=$base_dir/.dist/build

echo
echo $base_dir

# Install modules
composer pull

# Prepare
plugin_url=https://plugins.svn.wordpress.org/
plugin_url=https://plugins.svn.wordpress.org
plugin_name=shins-pageload-magic
plugin_svn=$plugin_url/$plugin_name
plugin_dir=$build_dir/$plugin_name
black_list=$base_dir/.dist/blacklist.txt

version=`head -n 1 $base_dir/VERSION`

echo "Deploy version ${version} ${build_dir}"
sed -i "s/\(Version:\s\+\).\+$/\\1${version}/" $base_dir/defer-wordpress.php
sed -i "s/'DEFER_WP_PLUGIN_VERSION', '.*'/'DEFER_WP_PLUGIN_VERSION', '${version}'/" $base_dir/defer-wordpress.php

if [[ ! -e $plugin_dir ]]; then
echo "Clone from $plugin_svn"
@@ -36,27 +43,27 @@ echo ""
# ------------------------------------------------------------------------------
echo "Copy from source"
cd $plugin_dir
svn rm trunk/* --force
svn rm --force trunk/*

cd $base_dir
rsync -aHxW --delete --exclude-from=$black_list $base_dir/ $plugin_dir/trunk/
rsync -aHxW --delete --exclude-from=${black_list/$base_dir/.} ./ ${plugin_dir/$base_dir/.}/trunk/
mv $plugin_dir/trunk/defer-wordpress.php $plugin_dir/trunk/$plugin_name.php
composer fixer .dist
# composer fixer .dist
echo ""

# ------------------------------------------------------------------------------
echo "Release $version"
cd $plugin_dir
svn add trunk/* --force
svn add --force trunk/*
svn stat
svn ci -m "Release $version" --username=shinsenter
echo ""

# ------------------------------------------------------------------------------
echo "Add new tag $version"
svn up tags/$version --force
svn up --force tags/$version
if [[ -e $plugin_dir ]]; then
svn rm tags/$version --force
svn rm --force tags/$version
rm -Rf tags/$version
fi
echo ""
3 changes: 3 additions & 0 deletions .docker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!docker-compose.yml
2 changes: 1 addition & 1 deletion .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ services:
hostname: defer-wp-test
depends_on:
- mariadb
image: wordpress:php5.6
image: shinsenter/wordpress:php${PHP_VERSION:-8.3}
ports:
- "8000:80"
volumes:
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: shinsenter
patreon: appseeds
custom: ['https://www.paypal.me/shinsenter']
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ wp-content/plugins/hello.php
/readme.html
/sitemap.xml
/sitemap.xml.gz
.DS_Store
.php_cs.cache
composer.phar
/.old/
84 changes: 84 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?php

/**
* 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document
* and optimizing processing on the browser when rendering the WordPress page.
* (c) 2021-2024 SHIN Company <service@shin.company>
*
* PHP Version >=7.2
*
* @category Web_Performance_Optimization
* @package defer-wordpress
* @author Mai Nhut Tan <shin@shin.company>
* @copyright 2021-2024 SHIN Company
* @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0
* @link https://code.shin.company/defer-wordpress
* @see https://code.shin.company/defer-wordpress/blob/master/README.md
*/

$header = <<<'EOF'
🚀 A WordPress plugin that focuses on minimizing payload size of HTML document
and optimizing processing on the browser when rendering the WordPress page.
(c) 2021-2024 SHIN Company <service@shin.company>
PHP Version >=7.2
@category Web_Performance_Optimization
@package defer-wordpress
@author Mai Nhut Tan <shin@shin.company>
@copyright 2021-2024 SHIN Company
@license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0
@link https://code.shin.company/defer-wordpress
@see https://code.shin.company/defer-wordpress/blob/master/README.md
EOF;

$rules = [
'@PhpCsFixer' => true,
'concat_space' => ['spacing' => 'one'],
'header_comment' => ['header' => $header, 'comment_type' => 'PHPDoc'],
'increment_style' => ['style' => 'post'],
'no_superfluous_phpdoc_tags' => false,
'phpdoc_summary' => true,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],

'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line',
],

'phpdoc_align' => ['align' => 'vertical'],

'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => [
'||' => 'align_single_space_minimal',
'or' => 'align_single_space_minimal',
'=' => 'align_single_space_minimal',
'=>' => 'align_single_space_minimal',
'<=>' => 'align_single_space_minimal',
],
],

'visibility_required' => [
'elements' => ['method', 'property'],
],
];

$finder = \PhpCsFixer\Finder::create()
->in(__DIR__)
->name('*.php')
->exclude('.dist')
->exclude('.docker')
->exclude('.github')
->exclude('cache')
->exclude('node_modules')
->exclude('vendor')
->ignoreDotFiles(false)
->ignoreVCS(true);

return (new \PhpCsFixer\Config())
->setFinder($finder)
->setRules($rules)
->setIndent(' ')
->setLineEnding("\n")
->setUsingCache(false);
118 changes: 0 additions & 118 deletions .php_cs

This file was deleted.

Loading