Conversation
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Caution: This PR has changes that must be merged to WordPress.com |
1 similar comment
|
Caution: This PR has changes that must be merged to WordPress.com |
joanrho
left a comment
There was a problem hiding this comment.
tested all and LGTM (except the two mobile viewports we chatted about: https://cloudup.com/cIwrylYHUnP)! But we can cover that once we do a full sweep of all our admin interfaces.
Thanks @enejb!
|
This one needs a rebase @enejb |
ea0a509 to
c12775c
Compare
|
This one needs a rebase again. Sorry :( |
|
Caution: This PR has changes that must be merged to WordPress.com |
c12775c to
d31578c
Compare
|
Hey @enejb, more details (internal ref): p8oabR-fW-p2 |
|
Sorry. I mixed up PRs, This PR looks good |
modules/stats.php
Outdated
| die(); | ||
| } | ||
| } | ||
| error_log( print_r( $get, 1) ); |
There was a problem hiding this comment.
Is this debug statement needed here?
|
Can you explain a bit how the fatal might happen here? I don't quite understand it. The way I understand it is the file would never be loaded as far as I can tell. Since there is nothing that would try to load it. With the debug module file. that is not the case since the module would try to be loaded from options. Since that value might be stored in the option. |
I unfortunately was never able to reproduce the issue, but we've had it happen on a few updates when removing different files. From our tests when that happened, it often seemed like a caching issue. |
| $rtl = is_rtl() ? '.rtl' : ''; | ||
| wp_enqueue_style( 'dops-css', plugins_url( "_inc/build/admin.dops-style{$rtl}.css", JETPACK__PLUGIN_FILE ), array(), JETPACK__VERSION ); | ||
| wp_enqueue_style( 'components-css', plugins_url( "_inc/build/style.min{$rtl}.css", JETPACK__PLUGIN_FILE ), array(), JETPACK__VERSION ); | ||
| $custom_css = ' |
There was a problem hiding this comment.
Is there a particular reason for this CSS to be written here? If possible, it should be moved to a stylesheet.
| <span class="dops-button-group"> | ||
| <?php | ||
| if ( current_user_can( 'jetpack_network_sites_page' ) ) { | ||
| ?><a href="<?php echo esc_url( network_admin_url( 'admin.php?page=jetpack' ) ); ?>" type="button" class="<?php echo esc_attr( $highlight_current_sites ); ?> dops-button is-compact" title="<?php esc_html_e( 'Manage your network\'s Jetpack Sites.', 'jetpack' ); ?>"><?php echo esc_html_x( 'Sites', 'Navigation item', 'jetpack' ); ?></a><?php |
There was a problem hiding this comment.
To make it easier for translators, this string should be within double quotes so there's no need to use a backslash:
"Manage your network's Jetpack Sites."
| if ( current_user_can( 'jetpack_network_sites_page' ) ) { | ||
| ?><a href="<?php echo esc_url( network_admin_url( 'admin.php?page=jetpack' ) ); ?>" type="button" class="<?php echo esc_attr( $highlight_current_sites ); ?> dops-button is-compact" title="<?php esc_html_e( 'Manage your network\'s Jetpack Sites.', 'jetpack' ); ?>"><?php echo esc_html_x( 'Sites', 'Navigation item', 'jetpack' ); ?></a><?php | ||
| } if ( current_user_can( 'jetpack_network_settings_page' ) ) { | ||
| ?><a href="<?php echo esc_url( network_admin_url( 'admin.php?page=jetpack-settings' ) ); ?>" type="button" class="<?php echo esc_attr( $highlight_current_settings ); ?> dops-button is-compact" title="<?php esc_html_e( 'Manage your network\'s Jetpack Settings.', 'jetpack' ); ?>"><?php echo esc_html_x( 'Network Settings', 'Navigation item', 'jetpack' ); ?></a><?php |
There was a problem hiding this comment.
Same here, using double quotes would help translation.
| <a href="https://wordpress.com/tos/" target="_blank" rel="noopener noreferrer" title="<?php esc_html__( 'WordPress.com Terms of Service', 'jetpack' ); ?>" class="jp-footer__link"><?php echo esc_html_x( 'Terms', 'Navigation item', 'jetpack' ); ?></a> | ||
| </li> | ||
| <li class="jp-footer__link-item"> | ||
| <a href="<?php echo esc_url( $jetpack_admin_url . '#/privacy' ); ?>" rel="noopener noreferrer" title="<?php esc_html_e( 'Automattic\'s Privacy Policy', 'jetpack' ); ?>" class="jp-footer__link"><?php echo esc_html_x( 'Privacy', 'Navigation item', 'jetpack' ); ?></a> |
There was a problem hiding this comment.
Use double quotes in translatable string to avoid backslash.
| </li> | ||
| <?php if ( is_multisite() && current_user_can( 'jetpack_network_sites_page' ) ) { ?> | ||
| <li class="jp-footer__link-item"> | ||
| <a href="<?php echo esc_url( network_admin_url( 'admin.php?page=jetpack' ) ); ?>" title="<?php esc_html_e( 'Manage your network\'s Jetpack Sites.', 'jetpack' ); ?>" class="jp-footer__link"><?php echo esc_html_x( 'Network Sites', 'Navigation item', 'jetpack' ); ?></a> |
There was a problem hiding this comment.
Use double quotes in translatable string to avoid backslash.
| <?php } ?> | ||
| <?php if ( is_multisite() && current_user_can( 'jetpack_network_settings_page' ) ) { ?> | ||
| <li class="jp-footer__link-item"> | ||
| <a href="<?php echo esc_url( network_admin_url( 'admin.php?page=jetpack-settings' ) ); ?>" title="<?php esc_html_e( 'Manage your network\'s Jetpack Settings.', 'jetpack' ); ?>" class="jp-footer__link"><?php echo esc_html_x( 'Network Settings', 'Navigation item', 'jetpack' ); ?></a> |
There was a problem hiding this comment.
Use double quotes in translatable string to avoid backslash.
| <?php } ?> | ||
| <?php if ( current_user_can( 'manage_options' ) ) { ?> | ||
| <li class="jp-footer__link-item"> | ||
| <a href="<?php echo esc_url( admin_url() . 'admin.php?page=jetpack-debugger' ); ?>" title="<?php esc_html_e( 'Test your site\'s compatibility with Jetpack.', 'jetpack' ); ?>" class="jp-footer__link"><?php echo esc_html_x( 'Debug', 'Navigation item', 'jetpack' ); ?></a> |
There was a problem hiding this comment.
Use double quotes in translatable string to avoid backslash.
| } | ||
|
|
||
| public function wrapper_admin_page() { | ||
| Jetpack_Admin_Page::wrap_ui( array( &$this, 'management_page' ), array( 'is-wide' =>true ) ); |
There was a problem hiding this comment.
Jetpack_Admin_Page::wrap_ui is only available in Jetpack - this file cannot be synced back as-is
There was a problem hiding this comment.
Would it make sense to add this on the WP.com side since additional wp-admin pages in the future will likely adopt using this function?
* Readme: add boilerplate for next release, 6.6 * Add 6.5 to the changelog.txt file * Set boilerplate testing list for 6.6 * Readme: update stable tag to 6.5 * Add bullets to 6.5 changelog items * Readme: add link to previous changelogs This will help folks who want to know more about past releases, while keeping the readme.txt short so as to not overwhelm translators and site owners only looking for information about the last release. * Changelog: add information at the top of the changelog file. * Changelog: add #10054 * Changelog: add #10078 * Changelog: add #10079 * Changelog: add #10064 * Changelog: add #10094 * Changelog: add #10096 * Testing list: add more information based on #10087 * Changelog: add #9847 * Changelog: add #10084 * Changelog: add #9918 * Changelog: add #7614 * Changelog: add #10116 * Changelog: add #10108 * Changelog: add #10041 * Changelog: add #10121 * Changelog: add #10134 * Changelog: add #10130 * Changelog: add #10109 * changelog: add #10137 * changelog: add #9952 * changelog: add #10120 * changelog: add #10162 * Changelog: add #10163 * Changelog: add #10092 * changelog: add #10156 * Changelog: add #10154 * changelog: add #10122 * Changelog: add #10101 * changelog: add #10105 * changelog: add #10190 * Changelog: add #10196 * changelog: add #10152 * Changelog: add #10153 * Testing list: add more details to Site Verification testing steps. @see #10143 (comment) * changelog: add #10194 * Changelog: add #10193

Adds the the same wrapper of the admin to the shareing settings.
Before:

Stats Screen
Shareing Settings Screen

Debug screen in wp-admin

After:

Changes proposed in this Pull Request:
Testing instructions:
Check out the different wp-admin pages now.
Click around. Resize the window. Try in it on different devices.
-- Network > Jetpack > Sites
-- Network > Jetpack > Settings
Proposed changelog entry for your changes: