PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 All 503 releases
← All changes | modules/plugin-search.php +2 -13 16.3-a.116.2 View file →
@@ -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'] ) {