: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* View single entry page.
const WPFormsViewEntry = window.WPFormsViewEntry || ( function( document, window, $ ) {
* Public functions and properties.
* Setup. Prepare some variables.
menuClass: '.wpforms-entries-settings-menu',
$( '#wpforms-entries-settings-button' ).on( 'click', app.menuToggle );
$( '#wpcontent' ).on( 'click', app.menuHide );
* Handler for the menu toggle behavior.
* @param {Object} event Event object.
// Toggle the visibility of the matched element.
$( el.menuClass ).toggle( 0, function() {
// When the menu is open, aria-expended="true".
$menu.attr( 'aria-expanded', $menu.is( ':visible' ) );
* Handler for hiding the menu when a click is outside of it.
* @param {Object} event Event object.
// Check if the clicked element is not the menu container or a child of it.
if ( ! $( event.target ).closest( `${ el.menuClass }:visible` ).length ) {
$( el.menuClass ).attr( 'aria-expanded', 'false' ).hide();
}( document, window, jQuery ) );
// Initialize the engine.