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 »', 'bakedwp') .''; } //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', 'bakedwp' ), get_the_author() ) ), // No further l10n needed, core will take care of this one get_the_author() ); return $link; } add_action('wp_head', 'admin_bar_fix', 5); // Fixes admin bar issues with the Foundation Top Bar function admin_bar_fix() { if( !is_admin() && is_admin_bar_showing() ) { remove_action( 'wp_head', '_admin_bar_bump_cb' ); $output = ''."\n"; echo $output; } } ?>