Plugin Directory

Changeset 3101429

Timestamp:
06/11/2024 10:00:22 PM (2 months ago)
Author:
arcangelini
Message:

Update Editing Toolkit Plugin to 4.25571

Location:
full-site-editing/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • full-site-editing/trunk/build_meta.json

    r3101265 r3101429  
    11{
    2   "build_number": "4.25512",
    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/"
    66}
  • full-site-editing/trunk/full-site-editing-plugin.php

    r3101265 r3101429  
    33 * Plugin Name: WordPress.com Editing Toolkit
    44 * Description: Enhances your page creation workflow within the Block Editor.
    5  * Version: 4.25512
     5 * Version: 4.255
    66 * Author: Automattic
    77 * Author URI: https://automattic.com/wordpress-plugins/
     
    4343 * @var string
    4444 */
    45 define( 'A8C_ETK_PLUGIN_VERSION', '4.25512' );
     45define( 'A8C_ETK_PLUGIN_VERSION', '4.255' );
    4646
    4747// Always include these helper files for dotcom FSE.
  • full-site-editing/trunk/help-center/class-help-center.php

    r3101265 r3101429  
    4949        }
    5050
    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;
    5253        $this->version    = $this->asset_file['version'];
    5354
     
    9293        wp_enqueue_script(
    9394            '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__ ),
    9596            is_array( $script_dependencies ) ? $script_dependencies : array(),
    9697            $this->version,
     
    287288     * Returns true if the current user is connected through Jetpack
    288289     */
    289     public function is_jetpack_connected() {
     290    public function is_jetpack_connected() {
    290291        $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;
    292303    }
    293304
     
    333344                        'title'  => file_get_contents( plugin_dir_path( __FILE__ ) . 'src/help-icon.svg', true ),
    334345                        '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,
    336348                        'meta'   => array(
    337349                            'html'   => '<div id="help-center-masterbar" />',
  • full-site-editing/trunk/readme.txt

    r3101265 r3101429  
    44Requires at least: 5.5
    55Tested up to: 6.3
    6 Stable tag: 4.25512
     6Stable tag: 4.255
    77Requires PHP: 5.6.20
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.