Permalink
Browse files

Minor code formatting

  • Loading branch information...
splorp committed Dec 30, 2013
1 parent 92589df commit e4dd7b8f826722a286668fb6d3f8e71f7fac59ee
Showing with 8 additions and 7 deletions.
  1. +6 −5 functions.php
  2. +2 −2 sidebar.php
View
@@ -176,6 +176,7 @@ function register_my_menus() {
array( 'header-menu' => 'Header Menu' )
);
}
+
add_action( 'init', 'register_my_menus' );
@@ -243,7 +244,7 @@ function relfix($c) {
// Add a proper thousands delimiter to category post counts
function delim($c) {
- return preg_replace('/(\d)(\d{3})\b/','\1,\2',$c); // Hat tip to @myfonts for the regex tweaks
+ return preg_replace('/(\d)(\d{3})\b/','\1,\2',$c); // Hat tip to MyFonts for the regex tweaks
}
add_filter('wp_list_categories','delim');
@@ -278,11 +279,11 @@ function decruft_tagcloud($c) {
// Remove crufty class attributes from avatars
-function decruft_avatars($str) {
- return preg_replace('/ class=[\"\'].+?[\"\']/',' class="photo"',$str);
+function decruft_avatars($a) {
+ return preg_replace('/ class=[\"\'].+?[\"\']/',' class="photo"',$a);
}
-add_filter ('get_avatar','decruft_avatars');
+add_filter('get_avatar','decruft_avatars');
// Replacement gallery shortcut function
@@ -410,7 +411,7 @@ function comment_reply_anchor($str) {
return preg_replace('/respond/', 'comment', $str);
}
-add_filter ('comment_reply_link','comment_reply_anchor');
+add_filter('comment_reply_link','comment_reply_anchor');
// Add support for content_width
View
@@ -9,7 +9,7 @@
<ul>
<?php
// Sidebar widgets only appear if the plugin is installed and widgets are active
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'sidebar2' ) ) :
+ if ( ! function_exists('dynamic_sidebar') || ! dynamic_sidebar('sidebar2') ) :
// Otherwise insert default sidebar elements
?>
@@ -77,7 +77,7 @@
<?php
// Sidebar widgets only appear if the plugin is installed and widgets are active
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'sidebar1' ) ) :
+ if ( ! function_exists('dynamic_sidebar') || ! dynamic_sidebar('sidebar1') ) :
// Otherwise insert default sidebar elements
global $options;

0 comments on commit e4dd7b8

Please sign in to comment.