← All changes
|
_inc/lib/admin-pages/class-jetpack-about-page.php
+23
-17
12.0.3
→
16.3-a.5
View file →
| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | /** |
| 9 | 9 | * Disable direct access and execution. |
| 10 | 10 | */ |
| 11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | - exit; | |
| 12 | + exit( 0 ); | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | require_once __DIR__ . '/class.jetpack-admin-page.php'; |
| 16 | 16 | |
| @@ -94,14 +94,8 @@ | ||
| 94 | 94 | public function page_render() { |
| 95 | 95 | ?> |
| 96 | 96 | <div class="jp-lower"> |
| 97 | 97 | <h1 class="screen-reader-text"><?php esc_html_e( 'About Jetpack', 'jetpack' ); ?></h1> |
| 98 | - <div class="jetpack-about__link-back"> | |
| 99 | - <a href="<?php echo esc_url( admin_url( 'admin.php?page=jetpack' ) ); ?>"> | |
| 100 | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="0" fill="none" width="24" height="24"/><g><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></g></svg> | |
| 101 | - <?php esc_html_e( 'Back to Jetpack Dashboard', 'jetpack' ); ?> | |
| 102 | - </a> | |
| 103 | - </div> | |
| 104 | 98 | <div class="jetpack-about__main"> |
| 105 | 99 | <div class="jetpack-about__logo"> |
| 106 | 100 | <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 800 96" style="enable-background:new 0 0 800 96;" xml:space="preserve"> |
| 107 | 101 | <g> |
| @@ -136,8 +130,9 @@ | ||
| 136 | 130 | <?php $this->display_gravatars(); ?> |
| 137 | 131 | </ul> |
| 138 | 132 | <p class="meet-the-team"> |
| 139 | 133 | <a href="https://automattic.com/about/" target="_blank" rel="noopener noreferrer" class="jptracks" data-jptracks-name="jetpack_about_meet_the_team"><?php esc_html_e( 'Meet the Automattic team', 'jetpack' ); ?></a> |
| 134 | + <svg class="gridicons-external" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"></path></g></svg> | |
| 140 | 135 | </p> |
| 141 | 136 | </div> |
| 142 | 137 | |
| 143 | 138 | <div class="jetpack-about__text"> |
| @@ -143,10 +138,11 @@ | ||
| 143 | 138 | <div class="jetpack-about__text"> |
| 144 | 139 | <p> |
| 145 | 140 | <?php esc_html_e( 'We are the people behind WordPress.com, WooCommerce, Jetpack, Simplenote, Longreads, VaultPress, Akismet, Gravatar, Crowdsignal, Cloudup, and more. We believe in making the web a better place.', 'jetpack' ); ?> |
| 146 | 141 | <a href="https://automattic.com/" target="_blank" rel="noopener noreferrer" class="jptracks" data-jptracks-name="jetpack_about_learn_more"> |
| 147 | - <?php esc_html_e( 'Learn more about us.', 'jetpack' ); ?> | |
| 142 | + <?php esc_html_e( 'Learn more about us', 'jetpack' ); ?> | |
| 148 | 143 | </a> |
| 144 | + <svg class="gridicons-external" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"></path></g></svg> | |
| 149 | 145 | </p> |
| 150 | 146 | <p> |
| 151 | 147 | <?php |
| 152 | 148 | echo esc_html( |
| @@ -166,11 +162,11 @@ | ||
| 166 | 162 | <p> |
| 167 | 163 | <?php |
| 168 | 164 | // Maybe use printf() because we'll want to escape the string but still allow for the link, so we can't use esc_html_e(). |
| 169 | 165 | echo wp_kses( |
| 170 | - __( 'We strive to live by the <a href="https://automattic.com/creed/" target="_blank" class="jptracks" data-jptracks-name="jetpack_about_creed" rel="noopener noreferrer">Automattic Creed</a>.', 'jetpack' ), | |
| 166 | + __( 'We strive to live by the <a href="https://automattic.com/creed/" target="_blank" class="jptracks" data-jptracks-name="jetpack_about_creed" rel="noopener noreferrer">Automattic Creed</a><svg class="gridicons-external" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"></path></g></svg>', 'jetpack' ), | |
| 171 | 167 | array( |
| 172 | - 'a' => array( | |
| 168 | + 'a' => array( | |
| 173 | 169 | 'href' => array(), |
| 174 | 170 | 'class' => array(), |
| 175 | 171 | 'target' => array(), |
| 176 | 172 | 'rel' => array(), |
| @@ -175,16 +171,26 @@ | ||
| 175 | 171 | 'target' => array(), |
| 176 | 172 | 'rel' => array(), |
| 177 | 173 | 'data-jptracks-name' => array(), |
| 178 | 174 | ), |
| 175 | + 'svg' => array( | |
| 176 | + 'class' => array(), | |
| 177 | + 'height' => array(), | |
| 178 | + 'width' => array(), | |
| 179 | + 'xmlns' => array(), | |
| 180 | + 'viewbox' => array(), | |
| 181 | + ), | |
| 182 | + 'g' => array(), | |
| 183 | + 'path' => array( | |
| 184 | + 'd' => array(), | |
| 185 | + ), | |
| 179 | 186 | ) |
| 180 | 187 | ); |
| 181 | 188 | ?> |
| 182 | 189 | </p> |
| 183 | 190 | <p> |
| 184 | - <a href="https://automattic.com/work-with-us" target="_blank" rel="noopener noreferrer" class="jptracks" data-jptracks-name="jetpack_about_work_with_us"> | |
| 185 | - <?php esc_html_e( 'Come work with us', 'jetpack' ); ?> | |
| 186 | - </a> | |
| 191 | + <a href="https://automattic.com/work-with-us" target="_blank" rel="noopener noreferrer" class="jptracks" data-jptracks-name="jetpack_about_work_with_us"><?php esc_html_e( 'Come work with us', 'jetpack' ); ?> | |
| 192 | + </a><svg class="gridicons-external" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"></path></g></svg> | |
| 187 | 193 | </p> |
| 188 | 194 | </div> |
| 189 | 195 | </div> |
| 190 | 196 | </div> |
| @@ -197,9 +203,9 @@ | ||
| 197 | 203 | |
| 198 | 204 | <p class="jetpack-about__services-more"> |
| 199 | 205 | <?php |
| 200 | 206 | echo wp_kses( |
| 201 | - __( 'For even more of our WordPress plugins, please <a href="https://profiles.wordpress.org/automattic/#content-plugins" target="_blank" rel="noopener noreferrer" class="jptracks" data-jptracks-name="jetpack_about_wporg_profile">take a look at our WordPress.org profile</a>.', 'jetpack' ), | |
| 207 | + __( 'For even more of our WordPress plugins, please take a look at <a href="https://profiles.wordpress.org/automattic/#content-plugins" target="_blank" rel="noopener noreferrer" class="jptracks" data-jptracks-name="jetpack_about_wporg_profile">our WordPress.org profile</a>.', 'jetpack' ), | |
| 202 | 208 | array( |
| 203 | 209 | 'a' => array( |
| 204 | 210 | 'href' => array(), |
| 205 | 211 | 'target' => array(), |
| @@ -311,9 +317,9 @@ | ||
| 311 | 317 | case 'install': |
| 312 | 318 | if ( $status['url'] ) { |
| 313 | 319 | if ( $compatible_php && $compatible_wp ) { |
| 314 | 320 | $action_links[] = sprintf( |
| 315 | - '<a class="install-now button jptracks" data-slug="%1$s" href="%2$s" aria-label="%3$s" data-name="%4$s" data-jptracks-name="jetpack_about_install_button" data-jptracks-prop="%4$s">%5$s</a>', | |
| 321 | + '<a class="install-now button jptracks is-rna" data-slug="%1$s" href="%2$s" aria-label="%3$s" data-name="%4$s" data-jptracks-name="jetpack_about_install_button" data-jptracks-prop="%4$s">%5$s</a>', | |
| 316 | 322 | esc_attr( $plugin['slug'] ), |
| 317 | 323 | esc_url( $status['url'] ), |
| 318 | 324 | /* translators: %s: plugin name and version */ |
| 319 | 325 | esc_attr( sprintf( __( 'Install %s now', 'jetpack' ), $name ) ), |
| @@ -547,11 +553,11 @@ | ||
| 547 | 553 | 'countries' => 69, |
| 548 | 554 | 'languages' => 83, |
| 549 | 555 | 'featured_plugins' => array( |
| 550 | 556 | 'woocommerce', |
| 557 | + 'activitypub', | |
| 558 | + 'wp-job-manager', | |
| 551 | 559 | 'wp-super-cache', |
| 552 | - 'wp-job-manager', | |
| 553 | - 'co-authors-plus', | |
| 554 | 560 | ), |
| 555 | 561 | ); |
| 556 | 562 | } |
| 557 | 563 | } |