Skip to content

Commit

Permalink
Merge pull request #1332 from publishpress/release-3.2
Browse files Browse the repository at this point in the history
Release 3.2
  • Loading branch information
htmgarcia authored Sep 20, 2023
2 parents dadcde6 + f3beddd commit d50962e
Show file tree
Hide file tree
Showing 370 changed files with 26,375 additions and 16,710 deletions.
81 changes: 81 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# A set of files you probably don't want in your WordPress.org distribution
*.code-workspace
*.sql
*.tar.gz
*.zip
.DS_Store
.babelrc
.distignore
.editorconfig
.env.testing
.env.testing.dist
.env.testing.linux.dist
.env.testing.mac.dist
.eslintrc.js
.git
.gitattributes
.github
.gitignore
.idea
.php-cs-fixer.cache
.phpcs.xml
.phplint-cache
.phplint.yml
.rsync-filters-post-build
.rsync-filters-pro-build
.travis.yml
.vscode
.wordpress-org
/assets/jsx
/assets_wp
/bundled/**
/dev-workspace
/dist
/gulpfile.js
/json_translations.sh
/json_translations.sh.dist
/node_modules
/package-lock.json
/package.json
/report.csv
/scripts
/vendor
/version.txt
/webpack.config.js
/yarn.lock
CONTRIBUTING.md
Gruntfile.js
README-build.md
README.md
RoboFile.php
Thumbs.db
bin
build.xml
builder
builder.yml
builder.yml.dist
codeception.dist.yml
composer.json
composer.lock
cs
cypress
cypress.json
gulpfile.js
jest.config.js
jsconfig.json
json_translations.sh.dist
mix-manifest.json
node_modules
package-lock.json
package.json
phpcs.xml
phpunit.xml
psalm.xml
ray-dist.php
ray.php
screenshot-*.png
tailwind.config.js
tests
vendor/bin
webpack.config.js
webpack.mix.js
72 changes: 72 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
*.bash export-ignore
*.cache export-ignore
*.code-workspace export-ignore
*.dist export-ignore
*.dist.yml export-ignore
*.exe export-ignore
*.sh export-ignore
*.sql export-ignore
*.tar.gz export-ignore
*.testing export-ignore
*.zip export-ignore
.DS_Store export-ignore
.babelrc export-ignore
.distignore export-ignore
.editorconfig export-ignore
.git export-ignore
.gitattributes export-ignore
.github export-ignore
.gitignore export-ignore
.gitlab-ci.yml export-ignore
.phpcs.xml export-ignore
.phplint.yml export-ignore
.rsync-filters-post-build export-ignore
.rsync-filters-pre-build export-ignore
.travis.yml export-ignore
.vscode export-ignore
/assets_wp export-ignore
/bundled/** export-ignore
/dev-workspace export-ignore
/dist export-ignore
/gulpfile.js export-ignore
/json_translations.sh export-ignore
/json_translations.sh.dist export-ignore
/node_modules export-ignore
/package-lock.json export-ignore
/package.json export-ignore
/report.csv export-ignore
/screenshot-*.png export-ignore
/tests export-ignore
/vendor export-ignore
/webpack.config.js export-ignore
Gruntfile.js export-ignore
Gruntfile.js export-ignore
README.md export-ignore
RoboFile.php export-ignore
Thumbs.db export-ignore
behat.yml export-ignore
bin export-ignore
builder.yml export-ignore
circle.yml export-ignore
codeception.yml export-ignore
docker-compose.yml export-ignore
jest.config.js export-ignore
jest.config.ts export-ignore
jsconfig.json export-ignore
multisite.xml export-ignore
multisite.xml.dist export-ignore
node_modules export-ignore
package-lock.json export-ignore
package.json export-ignore
phpcs.ruleset.xml export-ignore
phpcs.xml export-ignore
phpcs.xml.dist export-ignore
phpmd.xml export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
psalm.xml export-ignore
webpack.common.js export-ignore
webpack.config.js export-ignore
webpack.dev.js export-ignore
webpack.prod.js export-ignore
wp-cli.local.yml export-ignore
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/release-free-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To release the Free plugin, ensure you complete all the tasks below.
- [ ] Inspect GitHub's Dependabot warnings or Pull Requests for relevant issues. Resolve any false positives first, then fix and commit the remaining issues.
- [ ] If necessary, build JS files for production using `composer build:js` and commit the changes.
- [ ] Run a WP VIP scan with `composer check:phpcs` to ensure no warnings or errors greater than 5 exist.
- [ ] Update the `.pot` file executing `composer gen:pot` and include a note in the changelog.
- [ ] Update the `.pot` file executing `composer build:make-pot` and include a note in the changelog.
- [ ] Especially for minor and patch releases, maintain backward compatibility for changes like renamed or moved classes, namespaces, functions, etc. Include deprecation comments and mention this in the changelog. Major releases may remove deprecated code, but always note this in the changelog.
- [ ] Revise the changelog to include all changes with user-friendly descriptions and ensure the release date is accurate.
- [ ] Update the version number in the main plugin file and `readme.txt`, adhering to specifications from our [tech documentation](https://rambleventures.slab.com/posts/version-numbers-58nmrk4b), and commit to the release branch.
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.idea/
bundled/
vendor/
/bundled
/vendor
/lib/**/.git
node_modules/
.DS_Store*
report.csv
*.sh
/dist
5 changes: 5 additions & 0 deletions .rsync-filters-post-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- /**/composer.json
- /**/composer.lock
- /vendor
- .rsync-filters-pre-build
- .rsync-filters-pro-build
69 changes: 69 additions & 0 deletions .rsync-filters-pre-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
- *.code-workspace
- .babelrc
- .builder-post-rsync-filters-post
- .builder-rsync-filters
- .distignore
- .env.testing
- .env.testing.dist
- .env.testing.linux.dist
- .env.testing.mac.dist
- .eslintrc.js
- .git
- .gitattributes
- .github
- .gitignore
- .idea
- .php-cs-fixer.cache
- .phpcs.xml
- .phplint-cache
- .phplint.yml
- .rsync-filters-post-build
- .rsync-filters-pre-build
- .vscode
- .wordpress-org
- /assets/jsx
- /assets_wp
- /bundled/**
- /dev-workspace
- /dist
- /gulpfile.js
- /node_modules
- /package-lock.json
- /package.json
- /report.csv
- /scripts
- /vendor
- /vendor/bin
- /version.txt
- /webpack.config.js
- /yarn.lock
- /screenshot-*.png
- CONTRIBUTING.md
- Gruntfile.js
- README-build.md
- README.md
- RoboFile.php
- bin
- builder
- builder.yml
- builder.yml.dist
- codeception.dist.yml
- cs
- cypress
- cypress.json
- jest.config.js
- jest.config.ts
- jsconfig.json
- mix-manifest.json
- node_modules
- package-lock.json
- package.json
- phpcs.xml
- phpunit.xml
- psalm.xml
- ray-dist.php
- ray.php
- tailwind.config.js
- tests
- webpack.config.js
- webpack.mix.js
131 changes: 131 additions & 0 deletions advanced-gutenberg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<?php
/**
* Plugin Name: PublishPress Blocks
* Plugin URI: https://publishpress.com/blocks/
* Description: PublishPress Blocks has everything you need to build professional websites with the Gutenberg editor.
* Version: 3.2.0
* Author: PublishPress
* Author URI: https://publishpress.com/
* Text Domain: advanced-gutenberg
* Domain Path: /languages
* Requires at least: 5.5
* Requires PHP: 7.2.5
* License: GPL2
*/

/**
* Copyright
*
* @copyright 2014-2020 Joomunited
* @copyright 2020 Advanced Gutenberg. [email protected]
* @copyright 2020-2023 PublishPress. [email protected]
*
* Original development of this plugin was kindly funded by Joomunited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

defined( 'ABSPATH' ) || die;

global $wp_version;

$min_php_version = '7.2.5';
$min_wp_version = '5.5';

// If the PHP or WP version is not compatible, terminate the plugin execution.
$invalid_php_version = version_compare( phpversion(), $min_php_version, '<' );
$invalid_wp_version = version_compare( $wp_version, $min_wp_version, '<' );

if ( $invalid_php_version || $invalid_wp_version ) {
return;
}

$includeFileRelativePath = '/publishpress/instance-protection/include.php';
if ( file_exists( __DIR__ . '/lib/vendor' . $includeFileRelativePath ) ) {
require_once __DIR__ . '/lib/vendor' . $includeFileRelativePath;
} elseif ( defined( 'ADVANCED_GUTENBERG_LIB_VENDOR_PATH' ) && file_exists( ADVANCED_GUTENBERG_LIB_VENDOR_PATH . $includeFileRelativePath ) ) {
require_once ADVANCED_GUTENBERG_LIB_VENDOR_PATH . $includeFileRelativePath;
}

if ( class_exists( 'PublishPressInstanceProtection\\Config' ) ) {
$pluginCheckerConfig = new PublishPressInstanceProtection\Config();
$pluginCheckerConfig->pluginSlug = 'advanced-gutenberg';
$pluginCheckerConfig->pluginName = 'PublishPress Blocks';

$pluginChecker = new PublishPressInstanceProtection\InstanceChecker( $pluginCheckerConfig );
}

if ( ! defined( 'ADVANCED_GUTENBERG_LOADED' ) ) {
define( 'ADVANCED_GUTENBERG_LOADED', true );

if ( ! defined( 'ADVANCED_GUTENBERG_VERSION' ) ) {
define( 'ADVANCED_GUTENBERG_VERSION', '3.2.0' );
}

if ( ! defined( 'ADVANCED_GUTENBERG_PLUGIN' ) ) {
define( 'ADVANCED_GUTENBERG_PLUGIN', __FILE__ );
}

if ( ! defined( 'ADVANCED_GUTENBERG_BASE_PATH' ) ) {
define( 'ADVANCED_GUTENBERG_BASE_PATH', __DIR__ );
}

/**
* @since 3.2.0
*/
if ( ! defined( 'ADVANCED_GUTENBERG_LIB_VENDOR_PATH' ) ) {
define( 'ADVANCED_GUTENBERG_LIB_VENDOR_PATH', ADVANCED_GUTENBERG_BASE_PATH . '/lib/vendor' );
}

/**
* @deprecated 3.2.0 Use ADVANCED_GUTENBERG_LIB_VENDOR_PATH instead.
*/
if ( ! defined( 'ADVANCED_GUTENBERG_VENDOR_PATH' ) ) {
define( 'ADVANCED_GUTENBERG_VENDOR_PATH', ADVANCED_GUTENBERG_LIB_VENDOR_PATH );
}

if ( ! defined( 'ADVANCED_GUTENBERG_PLUGIN_DIR_URL' ) ) {
define( 'ADVANCED_GUTENBERG_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
}

// Internal Vendor and Ask-for-Review
if ( ! defined( 'ADVANCED_GUTENBERG_PRO_LOADED_LIB_VENDOR_PATH' ) ) {
$autoloadFilePath = ADVANCED_GUTENBERG_LIB_VENDOR_PATH . '/autoload.php';
if ( ! class_exists( 'ComposerAutoloaderInitPPBlocks' )
&& is_file( $autoloadFilePath )
&& is_readable( $autoloadFilePath )
) {
require_once $autoloadFilePath;
}
}

// Activation
register_activation_hook( ADVANCED_GUTENBERG_PLUGIN, function () {
require_once __DIR__ . '/install.php';
});

add_action( 'plugins_loaded', function () {
if ( is_admin()
&& class_exists( 'PublishPress\WordPressReviews\ReviewsController' )
&& file_exists( __DIR__ . '/review/review-request.php' )
) {
// Ask for review
require_once __DIR__ . '/review/review-request.php';
}

// Code shared with Pro version
require_once __DIR__ . '/init.php';
}, - 10 );
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions assets/blocks/block-controls.js.map

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions assets/blocks/blocks.js.map

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d50962e

Please sign in to comment.