-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog and readme.txt edits. (#40461)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12169594066 Upstream-Ref: Automattic/jetpack@0fd74a7
- Loading branch information
Showing
56 changed files
with
662 additions
and
434 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,3 @@ | ||
module.exports = { | ||
extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* Action Hooks for Jetpack connection assets. | ||
* | ||
* @package automattic/jetpack-connection | ||
*/ | ||
|
||
if ( function_exists( 'is_admin' ) && ! is_admin() && ( ! defined( 'IS_WPCOM' ) || ! IS_WPCOM ) ) { | ||
// Don't initialize the assets in the frontend on self-hosted and WoA. | ||
return; | ||
} | ||
|
||
// If WordPress's plugin API is available already, use it. If not, | ||
// drop data into `$wp_filter` for `WP_Hook::build_preinitialized_hooks()`. | ||
if ( function_exists( 'add_action' ) ) { | ||
add_action( | ||
'plugins_loaded', | ||
array( Automattic\Jetpack\Connection\Connection_Assets::class, 'configure' ), | ||
1 | ||
); | ||
} else { | ||
global $wp_filter; | ||
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited | ||
$wp_filter['plugins_loaded'][1][] = array( | ||
'accepted_args' => 0, | ||
'function' => array( Automattic\Jetpack\Connection\Connection_Assets::class, 'configure' ), | ||
); | ||
} |
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 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '490b076190173a65d8da'); | ||
<?php return array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'a88c39debce9f37e844d'); |
Oops, something went wrong.