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

Fix logic for choosing between customizer and widgets.php #13858

Merged
merged 2 commits into from
Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion modules/widget-visibility/widget-conditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function widget_admin_setup() {
'modules/widget-visibility/widget-conditions/widget-conditions.js'
),
array( 'jquery', 'jquery-ui-core' ),
20171227,
20191128,
true
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
jQuery( function( $ ) {
var widgets_shell = $( 'div#widgets-right' );

if ( ! widgets_shell.length || ! $( widgets_shell ).find( '.widget-control-actions' ).length ) {
if ( ! widgets_shell && ! widgets_shell.length ) {
widgets_shell = $( 'form#customize-controls' );
}

Expand Down