Update the text for inactive sidebars, props chrisbliss18 SergeyBiryukov, fixes #19350
git-svn-id: https://develop.svn.wordpress.org/trunk@19453 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
67d5755f87
commit
c101a7edb4
@ -95,10 +95,10 @@ foreach ( $sidebars_widgets as $sidebar_id => $widgets ) {
|
|||||||
if ( !isset( $wp_registered_sidebars[ $sidebar_id ] ) ) {
|
if ( !isset( $wp_registered_sidebars[ $sidebar_id ] ) ) {
|
||||||
if ( ! empty( $widgets ) ) { // register the inactive_widgets area as sidebar
|
if ( ! empty( $widgets ) ) { // register the inactive_widgets area as sidebar
|
||||||
register_sidebar(array(
|
register_sidebar(array(
|
||||||
'name' => __( 'Inactive Sidebar (from previous theme)' ),
|
'name' => __( 'Inactive Sidebar (not used)' ),
|
||||||
'id' => 'orphaned_widgets-' . $sidebar_id,
|
'id' => 'orphaned_widgets-' . $sidebar_id,
|
||||||
'class' => 'inactive-sidebar orphan-sidebar',
|
'class' => 'inactive-sidebar orphan-sidebar',
|
||||||
'description' => __( 'This is a left over sidebar from an old theme and does not show anywhere on your site' ),
|
'description' => __( 'This sidebar is no longer available and does not show anywhere on your site. Remove each of the widgets below to fully remove this inactive sidebar.' ),
|
||||||
'before_widget' => '',
|
'before_widget' => '',
|
||||||
'after_widget' => '',
|
'after_widget' => '',
|
||||||
'before_title' => '',
|
'before_title' => '',
|
||||||
|
Loading…
Reference in New Issue
Block a user