-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1332 from publishpress/release-3.2
Release 3.2
- Loading branch information
Showing
370 changed files
with
26,375 additions
and
16,710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.
Oops, something went wrong.