Changeset 49560
- Timestamp:
- 11/10/2020 08:38:59 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r49203 r49560 244 244 * Default is a closing h2 element. 245 245 * @type string $before_sidebar HTML content to prepend to the sidebar when displayed. 246 * Receives the '$id' argument as %1$s and '$class' as %2$s. 246 247 * Outputs after the {@see 'dynamic_sidebar_before'} action. 247 248 * Default empty string. … … 719 720 do_action( 'dynamic_sidebar_before', $index, true ); 720 721 721 if ( ! empty( $sidebar['before_sidebar'] ) ) {722 if ( ! is_admin() && ! empty( $sidebar['before_sidebar'] ) ) { 722 723 echo $sidebar['before_sidebar']; 723 724 } … … 824 825 } 825 826 826 if ( ! empty( $sidebar['after_sidebar'] ) ) {827 if ( ! is_admin() && ! empty( $sidebar['after_sidebar'] ) ) { 827 828 echo $sidebar['after_sidebar']; 828 829 }
Note: See TracChangeset
for help on using the changeset viewer.