Changeset 3101429
- Timestamp:
- 06/11/2024 10:00:22 PM (2 months ago)
- Location:
- full-site-editing/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
full-site-editing/trunk/build_meta.json
r3101265 r3101429 1 1 { 2 "build_number": "4.255 12",3 "cache_buster": " 3b05501eeb5",4 "commit_hash": " 3b05501eeb58a5ff6939997e3374cbd5ede80a62",5 "commit_url": "https://github.com/Automattic/wp-calypso/commit/ 3b05501eeb58a5ff6939997e3374cbd5ede80a62"2 "build_number": "4.255", 3 "cache_buster": "", 4 "commit_hash": "", 5 "commit_url": "https://github.com/Automattic/wp-calypso/commit/" 6 6 } -
full-site-editing/trunk/full-site-editing-plugin.php
r3101265 r3101429 3 3 * Plugin Name: WordPress.com Editing Toolkit 4 4 * Description: Enhances your page creation workflow within the Block Editor. 5 * Version: 4.255 125 * Version: 4.255 6 6 * Author: Automattic 7 7 * Author URI: https://automattic.com/wordpress-plugins/ … … 43 43 * @var string 44 44 */ 45 define( 'A8C_ETK_PLUGIN_VERSION', '4.255 12' );45 define( 'A8C_ETK_PLUGIN_VERSION', '4.255' ); 46 46 47 47 // Always include these helper files for dotcom FSE. -
full-site-editing/trunk/help-center/class-help-center.php
r3101265 r3101429 49 49 } 50 50 51 $this->asset_file = include plugin_dir_path( __FILE__ ) . $this->is_jetpack_connected() ? 'dist/help-center.asset.php' : 'dist/help-center-disconnected.asset.php'; 51 $file = $this->is_jetpack_disconnected() ? 'dist/help-center-disconnected.asset.php' : 'dist/help-center.asset.php'; 52 $this->asset_file = include plugin_dir_path( __FILE__ ) . $file; 52 53 $this->version = $this->asset_file['version']; 53 54 … … 92 93 wp_enqueue_script( 93 94 'help-center-script', 94 plugins_url( $this->is_jetpack_ connected() ? 'dist/help-center.min.js' : 'dist/help-center-disconnected.min.js', __FILE__ ),95 plugins_url( $this->is_jetpack_.min.js', __FILE__ ), 95 96 is_array( $script_dependencies ) ? $script_dependencies : array(), 96 97 $this->version, … … 287 288 * Returns true if the current user is connected through Jetpack 288 289 */ 289 public function is_jetpack_ connected() {290 public function is_jetpack_connected() { 290 291 $user_id = get_current_user_id(); 291 return ( new Connection_Manager( 'jetpack' ) )->is_user_connected( $user_id ); 292 $blog_id = get_current_blog_id(); 293 294 if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) { 295 return ! ( new Connection_Manager( 'jetpack' ) )->is_user_connected( $user_id ); 296 } 297 298 if ( true === apply_filters( 'is_jetpack_site', false, $blog_id ) ) { 299 return ! ( new Connection_Manager( 'jetpack' ) )->is_user_connected( $user_id ); 300 } 301 302 return false; 292 303 } 293 304 … … 333 344 'title' => file_get_contents( plugin_dir_path( __FILE__ ) . 'src/help-icon.svg', true ), 334 345 'parent' => 'top-secondary', 335 'href' => $this->is_jetpack_connected() ? false : 'https://wordpress.com/support/', 346 // phpcs:ignore WPCOM.I18nRules.LocalizedUrl.UnlocalizedUrl 347 'href' => $this->is_jetpack_disconnected() ? 'https://wordpress.com/support/' : false, 336 348 'meta' => array( 337 349 'html' => '<div id="help-center-masterbar" />', -
full-site-editing/trunk/readme.txt
r3101265 r3101429 4 4 Requires at least: 5.5 5 5 Tested up to: 6.3 6 Stable tag: 4.255 126 Stable tag: 4.255 7 7 Requires PHP: 5.6.20 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.