widgets['WP_Widget_Recent_Comments'])) { remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style')); } } // Remove injected CSS from gallery function joints_gallery_style($css) { return preg_replace("!!s", '', $css); } // This removes the annoying […] to a Read More link function joints_excerpt_more($more) { global $post; // edit here if you like return '... '. __('Read more »', 'bakedtheme') .''; } //This is a modified the_author_posts_link() which just returns the link. This is necessary to allow usage of the usual l10n process with printf() function joints_get_the_author_posts_link() { global $authordata; if ( !is_object( $authordata ) ) return false; $link = sprintf( '', get_author_posts_url( $authordata->ID, $authordata->user_nicename ), esc_attr( sprintf( __( 'Posts by %s', 'bakedtheme' ), get_the_author() ) ), // No further l10n needed, core will take care of this one get_the_author() ); return $link; } ?>