diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/js/customize-controls.js --- a/wp/wp-admin/js/customize-controls.js Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/js/customize-controls.js Fri Sep 05 18:40:08 2025 +0200 @@ -1799,7 +1799,7 @@ section.closeDetails(); } else { - // Escape from the inifinite scroll list. + // Escape from the infinite scroll list. section.headerContainer.find( '.customize-themes-section-title' ).focus(); } event.stopPropagation(); // Prevent section from being collapsed. @@ -1917,7 +1917,7 @@ section.contentContainer.on( 'click', '.feature-filter-toggle', function( e ) { var $themeContainer = $( '.customize-themes-full-container' ), $filterToggle = $( e.currentTarget ); - section.filtersHeight = $filterToggle.parent().next( '.filter-drawer' ).height(); + section.filtersHeight = $filterToggle.parents( '.themes-filter-bar' ).next( '.filter-drawer' ).height(); if ( 0 < $themeContainer.scrollTop() ) { $themeContainer.animate( { scrollTop: 0 }, 400 ); @@ -1932,7 +1932,7 @@ .attr( 'aria-expanded', function( i, attr ) { return 'true' === attr ? 'false' : 'true'; }) - .parent().next( '.filter-drawer' ).slideToggle( 180, 'linear' ); + .parents( '.themes-filter-bar' ).next( '.filter-drawer' ).slideToggle( 180, 'linear' ); if ( $filterToggle.hasClass( 'open' ) ) { var marginOffset = 1018 < window.innerWidth ? 50 : 76; @@ -3739,7 +3739,7 @@ ready: function() { var control = this, newItem; if ( 'dropdown-pages' === control.params.type && control.params.allow_addition ) { - newItem = control.container.find( '.new-content-item' ); + newItem = control.container.find( '.new-content-item-wrapper' ); newItem.hide(); // Hide in JS to preserve flex display when showing. control.container.on( 'click', '.add-new-toggle', function( e ) { $( e.currentTarget ).slideUp( 180 ); @@ -3866,7 +3866,7 @@ var control = this, container, notifications, hasError = false; if ( 'undefined' !== typeof console && console.warn ) { - console.warn( '[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantating a wp.customize.Notifications and calling its render() method.' ); + console.warn( '[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantiating a wp.customize.Notifications and calling its render() method.' ); } container = control.getNotificationsContainerElement(); @@ -4085,7 +4085,7 @@ } toggle = control.container.find( '.add-new-toggle' ); - container = control.container.find( '.new-content-item' ); + container = control.container.find( '.new-content-item-wrapper' ); input = control.container.find( '.create-item-input' ); title = input.val(); select = control.container.find( 'select' ); @@ -7199,7 +7199,7 @@ } ) ); /** - * Return whether the pubish settings section should be active. + * Return whether the publish settings section should be active. * * @return {boolean} Is section active. */ @@ -7800,11 +7800,11 @@ }, /** - * Builds the front preview url with the current state of customizer. + * Builds the front preview URL with the current state of customizer. * - * @since 4.9 + * @since 4.9.0 * - * @return {string} Preview url. + * @return {string} Preview URL. */ getFrontendPreviewUrl: function() { var previewer = this, params, urlParser;