| @@ -318,25 +318,14 @@ | ||
| 318 | 318 | 'requires_connection' => false, |
| 319 | 319 | 'module' => 'sharing-block', |
| 320 | 320 | 'sort' => '13', |
| 321 | 321 | 'learn_more_button' => Redirect::get_url( 'jetpack-support-sharing-block' ), |
| 322 | - 'configure_url' => $this->get_sharing_block_editor_url(), | |
| 322 | + 'configure_url' => admin_url( 'site-editor.php?path=%2Fwp_template' ), | |
| 323 | 323 | ), |
| 324 | 324 | ); |
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | /** |
| 328 | - * Site Editor URL for the template the Sharing Buttons block goes in. | |
| 329 | - * | |
| 330 | - * @return string | |
| 331 | - */ | |
| 332 | - private function get_sharing_block_editor_url() { | |
| 333 | - return admin_url( | |
| 334 | - 'site-editor.php?p=' . rawurlencode( '/wp_template/' . get_stylesheet() . '//single' ) . '&canvas=edit' | |
| 335 | - ); | |
| 336 | - } | |
| 337 | - | |
| 338 | - /** | |
| 339 | 328 | * Intercept the plugins API response and add in an appropriate card for Jetpack |
| 340 | 329 | * |
| 341 | 330 | * @param object $result Plugin search results. |
| 342 | 331 | * @param string $action unused. |
| @@ -577,9 +566,9 @@ | ||
| 577 | 566 | if ( 'sharing-block' === $plugin['module'] ) { |
| 578 | 567 | $links['jp_get_started'] = '<a |
| 579 | 568 | id="plugin-select-settings" |
| 580 | 569 | class="jetpack-plugin-search__primary jetpack-plugin-search__get-started button" |
| 581 | - href="' . esc_url( $this->get_sharing_block_editor_url() ) . '" | |
| 570 | + href="' . esc_url( admin_url( 'site-editor.php?path=%2Fwp_template' ) ) . '" | |
| 582 | 571 | data-module="' . esc_attr( $plugin['module'] ) . '" |
| 583 | 572 | data-track="get_started" |
| 584 | 573 | >' . esc_html__( 'Add block', 'jetpack' ) . '</a>'; |
| 585 | 574 | } elseif ( 'akismet' === $plugin['module'] || 'vaultpress' === $plugin['module'] ) { |