Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6509 Don't display clear critical images for this URL on admin view #6565

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions inc/Engine/Saas/Admin/AdminBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,13 @@ public function add_clean_saas_menu_item( $wp_admin_bar ) {
* @return void
*/
public function add_clean_url_menu_item( WP_Admin_Bar $wp_admin_bar ) {
global $pagenow, $post;
global $post;

if ( 'local' === wp_get_environment_type() ) {
return;
}

if (
is_admin()
&&
(
! $post
||
'post.php' !== $pagenow
||
! isset( $_GET['action'], $_GET['post'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
)
) {
if ( is_admin() ) {
return;
}

Expand Down
Loading