Skip to content

Commit

Permalink
Site Editor: remove unneeded Site Editor link
Browse files Browse the repository at this point in the history
Introduced in #69929
Replaced by Automattic/jetpack#27601
  • Loading branch information
mattwiebe committed Apr 18, 2023
1 parent 4634cf3 commit 7337758
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class WPCOM_Block_Editor_Nav_Sidebar {
*/
public function __construct() {
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_script_and_style' ), 100 );
add_filter( 'block_editor_settings_all', array( $this, 'add_wpcom_dashboard_link' ) );
}

/**
Expand Down Expand Up @@ -88,18 +87,6 @@ public function enqueue_script_and_style() {
);
}

/**
* Point the dashboard link to wordpress.com in the editor sidebar for Gutenberg 14.5 compat
*
* @param array $settings Editor settings.
* @return array Updated Editor settings.
*/
public function add_wpcom_dashboard_link( $settings ) {
$site_slug = preg_replace( '|^https?:\/\/|', '', home_url() );
$settings['__experimentalDashboardLink'] = 'https://wordpress.com/home/' . $site_slug;
return $settings;
}

/**
* Get current site details.
*/
Expand Down

0 comments on commit 7337758

Please sign in to comment.