at path:ROOT / wp-admin / js / accordion.js
run:R W Run
DIR
2026-03-11 16:18:51
R W Run
2.86 KB
2026-03-11 16:18:51
R W Run
758 By
2026-03-11 16:18:51
R W Run
6.24 KB
2026-03-11 16:18:51
R W Run
2.95 KB
2026-03-11 16:18:51
R W Run
5.66 KB
2026-03-11 16:18:51
R W Run
2.04 KB
2026-03-11 16:18:51
R W Run
11.32 KB
2026-03-11 16:18:51
R W Run
3.01 KB
2026-03-11 16:18:51
R W Run
9.54 KB
2026-03-11 16:18:51
R W Run
3.4 KB
2026-03-11 16:18:51
R W Run
2.85 KB
2026-03-11 16:18:51
R W Run
1.28 KB
2026-03-11 16:18:51
R W Run
61.15 KB
2026-03-11 16:18:51
R W Run
23.12 KB
2026-03-11 16:18:51
R W Run
3.35 KB
2026-03-11 16:18:51
R W Run
1.18 KB
2026-03-11 16:18:51
R W Run
1.98 KB
2026-03-11 16:18:51
R W Run
288.41 KB
2026-03-11 16:18:51
R W Run
109.69 KB
2026-03-11 16:18:51
R W Run
111.46 KB
2026-03-11 16:18:51
R W Run
47.14 KB
2026-03-11 16:18:51
R W Run
70.05 KB
2026-03-11 16:18:51
R W Run
27.41 KB
2026-03-11 16:18:51
R W Run
27.02 KB
2026-03-11 16:18:51
R W Run
8.65 KB
2026-03-11 16:18:51
R W Run
37.12 KB
2026-03-11 16:18:51
R W Run
15.13 KB
2026-03-11 16:18:51
R W Run
41.61 KB
2026-03-11 16:18:51
R W Run
13.14 KB
2026-03-11 16:18:51
R W Run
44 KB
2026-03-11 16:18:51
R W Run
12.78 KB
2026-03-11 16:18:51
R W Run
7.67 KB
2026-03-11 16:18:51
R W Run
5.41 KB
2026-03-11 16:18:51
R W Run
3.65 KB
2026-03-11 16:18:51
R W Run
39.98 KB
2026-03-11 16:18:51
R W Run
15.15 KB
2026-03-11 16:18:51
R W Run
20.17 KB
2026-03-11 16:18:51
R W Run
9.41 KB
2026-03-11 16:18:51
R W Run
7.61 KB
2026-03-11 16:18:51
R W Run
2.93 KB
2026-03-11 16:18:51
R W Run
23.09 KB
2026-03-11 16:18:51
R W Run
890 By
2026-03-11 16:18:51
R W Run
423 By
2026-03-11 16:18:51
R W Run
3.89 KB
2026-03-11 16:18:51
R W Run
1.7 KB
2026-03-11 16:18:51
R W Run
1.27 KB
2026-03-11 16:18:51
R W Run
611 By
2026-03-11 16:18:51
R W Run
3.38 KB
2026-03-11 16:18:51
R W Run
1.13 KB
2026-03-11 16:18:51
R W Run
6.61 KB
2026-03-11 16:18:51
R W Run
2.38 KB
2026-03-11 16:18:51
R W Run
61.15 KB
2026-03-11 16:18:51
R W Run
30.06 KB
2026-03-11 16:18:51
R W Run
4.14 KB
2026-03-11 16:18:51
R W Run
1.1 KB
2026-03-11 16:18:51
R W Run
1.31 KB
2026-03-11 16:18:51
R W Run
847 By
2026-03-11 16:18:51
R W Run
6.92 KB
2026-03-11 16:18:51
R W Run
2.35 KB
2026-03-11 16:18:51
R W Run
38.68 KB
2026-03-11 16:18:51
R W Run
18.4 KB
2026-03-11 16:18:51
R W Run
18.49 KB
2026-03-11 16:18:51
R W Run
6.6 KB
2026-03-11 16:18:51
R W Run
10.67 KB
2026-03-11 16:18:51
R W Run
5.03 KB
2026-03-11 16:18:51
R W Run
33.92 KB
2026-03-11 16:18:51
R W Run
17.97 KB
2026-03-11 16:18:51
R W Run
876 By
2026-03-11 16:18:51
R W Run
620 By
2026-03-11 16:18:51
R W Run
13.15 KB
2026-03-11 16:18:51
R W Run
6.13 KB
2026-03-11 16:18:51
R W Run
6.1 KB
2026-03-11 16:18:51
R W Run
2.2 KB
2026-03-11 16:18:51
R W Run
3.2 KB
2026-03-11 16:18:51
R W Run
1.53 KB
2026-03-11 16:18:51
R W Run
10.88 KB
2026-03-11 16:18:51
R W Run
3 KB
2026-03-11 16:18:51
R W Run
5.64 KB
2026-03-11 16:18:51
R W Run
2.22 KB
2026-03-11 16:18:51
R W Run
5.96 KB
2026-03-11 16:18:51
R W Run
2.41 KB
2026-03-11 16:18:51
R W Run
24.77 KB
2026-03-11 16:18:51
R W Run
11.43 KB
2026-03-11 16:18:51
R W Run
54.94 KB
2026-03-11 16:18:51
R W Run
26.51 KB
2026-03-11 16:18:51
R W Run
109.37 KB
2026-03-11 16:18:51
R W Run
47.31 KB
2026-03-11 16:18:51
R W Run
17.91 KB
2026-03-11 16:18:51
R W Run
7.81 KB
2026-03-11 16:18:51
R W Run
2.25 KB
2026-03-11 16:18:51
R W Run
676 By
2026-03-11 16:18:51
R W Run
22.56 KB
2026-03-11 16:18:51
R W Run
12.31 KB
2026-03-11 16:18:51
R W Run
7.52 KB
2026-03-11 16:18:51
R W Run
1.49 KB
2026-03-11 16:18:51
R W Run
740 By
2026-03-11 16:18:51
R W Run
458 By
2026-03-11 16:18:51
R W Run
error_log
📄accordion.js
1/**
2 * Accordion-folding functionality.
3 *
4 * Markup with the appropriate classes will be automatically hidden,
5 * with one section opening at a time when its title is clicked.
6 * Use the following markup structure for accordion behavior:
7 *
8 * <div class="accordion-container">
9 * <div class="accordion-section open">
10 * <h3 class="accordion-section-title"><button type="button" aria-expanded="true" aria-controls="target-1"></button></h3>
11 * <div class="accordion-section-content" id="target">
12 * </div>
13 * </div>
14 * <div class="accordion-section">
15 * <h3 class="accordion-section-title"><button type="button" aria-expanded="false" aria-controls="target-2"></button></h3>
16 * <div class="accordion-section-content" id="target-2">
17 * </div>
18 * </div>
19 * <div class="accordion-section">
20 * <h3 class="accordion-section-title"><button type="button" aria-expanded="false" aria-controls="target-3"></button></h3>
21 * <div class="accordion-section-content" id="target-3">
22 * </div>
23 * </div>
24 * </div>
25 *
26 * Note that any appropriate tags may be used, as long as the above classes are present.
27 *
28 * @since 3.6.0
29 * @output wp-admin/js/accordion.js
30 */
31
32( function( $ ){
33
34 $( function () {
35
36 // Expand/Collapse accordion sections on click.
37 $( '.accordion-container' ).on( 'click', '.accordion-section-title button', function() {
38 accordionSwitch( $( this ) );
39 });
40
41 });
42
43 /**
44 * Close the current accordion section and open a new one.
45 *
46 * @param {Object} el Title element of the accordion section to toggle.
47 * @since 3.6.0
48 */
49 function accordionSwitch ( el ) {
50 var section = el.closest( '.accordion-section' ),
51 container = section.closest( '.accordion-container' ),
52 siblings = container.find( '.open' ),
53 siblingsToggleControl = siblings.find( '[aria-expanded]' ).first(),
54 content = section.find( '.accordion-section-content' );
55
56 // This section has no content and cannot be expanded.
57 if ( section.hasClass( 'cannot-expand' ) ) {
58 return;
59 }
60
61 // Add a class to the container to let us know something is happening inside.
62 // This helps in cases such as hiding a scrollbar while animations are executing.
63 container.addClass( 'opening' );
64
65 if ( section.hasClass( 'open' ) ) {
66 section.toggleClass( 'open' );
67 content.toggle( true ).slideToggle( 150 );
68 } else {
69 siblingsToggleControl.attr( 'aria-expanded', 'false' );
70 siblings.removeClass( 'open' );
71 siblings.find( '.accordion-section-content' ).show().slideUp( 150 );
72 content.toggle( false ).slideToggle( 150 );
73 section.toggleClass( 'open' );
74 }
75
76 // We have to wait for the animations to finish.
77 setTimeout(function(){
78 container.removeClass( 'opening' );
79 }, 150);
80
81 // If there's an element with an aria-expanded attribute, assume it's a toggle control and toggle the aria-expanded value.
82 if ( el ) {
83 el.attr( 'aria-expanded', String( el.attr( 'aria-expanded' ) === 'false' ) );
84 }
85 }
86
87})(jQuery);
88