Commits

Doug Stewart committed feb2194

Only show dummy sidebar area text/markup to users with edit_theme_options capability. Props to @mfields.

Comments (0)

Files changed (2)

 	<div id="footerleft">
 		<ul>
 		<?php if ( !dynamic_sidebar('Bottom Left') ) : ?>
+		<?php if( current_user_can('edit_theme_options') ){ ?>
 			<li><h4>Bottom-Left Sidebar</h4>
 				This is the bottom-left sidebar. You may add widgets to it via the Appearance -&gt; Widgets administration screen.
 			</li>
+		<?php } ?>
 		<?php endif; ?>
 		</ul>
 	</div>
 	<div id="footerright">
 		<ul>
 		<?php if ( !dynamic_sidebar('Bottom Right') ) : ?>
+		<?php if( current_user_can('edit_theme_options') ){ ?>
 			<li><h4>Bottom-Right Sidebar</h4>
 				This is the bottom-right sidebar. You may add widgets to it via the Appearance -&gt; Widgets administration screen.
 			</li>
+		<?php } ?>
 		<?php endif; ?>
 		</ul>
 	</div>
 <div id="primarysb">
 	<ul>
 		<?php if ( !dynamic_sidebar('Primary') ) : ?>
-	
+		<?php if( current_user_can('edit_theme_options') ){ ?>
 		<li><h4>Primary Sidebar</h4>
 			This is the primary sidebar. You may add widgets to it via the Appearance -&gt; Widgets administration screen.
 		</li>
+		<?php } ?>
 		<li><h4>Search</h4>
 			<?php get_search_form(); ?>
 		</li>
 <div id="secondarysb">
 	<ul>
 		<?php if ( !dynamic_sidebar('Secondary') ) : ?>
+		<?php if( current_user_can('edit_theme_options') ){ ?>
 		<li><h4>Secondary Sidebar</h4>
 			This is the secondary sidebar. You may add widgets to it via the Appearance -&gt; Widgets administration screen.
 		</li>
+		<?php } ?>
 		<li><h4>Meta</h4>
 			<ul>
 				<li><img src="<?php echo get_template_directory_uri(); ?>/images/feed.png" /><a href="<?php bloginfo('rss2_url'); ?>">RSS Entries</a></li>