From fe19f5433b4a0efbf3fd4d0f483b12fef2856cf7 Mon Sep 17 00:00:00 2001 From: Philip Arthur Moore Date: Mon, 18 Mar 2013 14:53:23 -0500 Subject: [PATCH] Ditch all @since DocBlocks from theme. --- 404.php | 1 - archive.php | 1 - comments.php | 1 - content-page.php | 1 - content-single.php | 1 - content.php | 1 - footer.php | 1 - functions.php | 7 ------- header.php | 1 - image.php | 1 - inc/custom-header.php | 8 -------- inc/customizer.php | 5 ----- inc/extras.php | 9 --------- inc/template-tags.php | 11 ----------- inc/wpcom.php | 2 -- index.php | 1 - no-results.php | 1 - page.php | 1 - search.php | 1 - searchform.php | 1 - sidebar.php | 1 - single.php | 1 - 22 files changed, 58 deletions(-) diff --git a/404.php b/404.php index cfee157e..ecf67ea3 100644 --- a/404.php +++ b/404.php @@ -3,7 +3,6 @@ * The template for displaying 404 pages (Not Found). * * @package _s - * @since _s 1.0 */ get_header(); ?> diff --git a/archive.php b/archive.php index 79120d07..7a55bd10 100644 --- a/archive.php +++ b/archive.php @@ -5,7 +5,6 @@ * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package _s - * @since _s 1.0 */ get_header(); ?> diff --git a/comments.php b/comments.php index 384fe0fb..90a7c51b 100644 --- a/comments.php +++ b/comments.php @@ -8,7 +8,6 @@ * located in the inc/template-tags.php file. * * @package _s - * @since _s 1.0 */ ?> diff --git a/content-page.php b/content-page.php index 64261f20..4b04d497 100644 --- a/content-page.php +++ b/content-page.php @@ -3,7 +3,6 @@ * The template used for displaying page content in page.php * * @package _s - * @since _s 1.0 */ ?> diff --git a/content-single.php b/content-single.php index e5c41287..6237d6f7 100755 --- a/content-single.php +++ b/content-single.php @@ -1,7 +1,6 @@ diff --git a/content.php b/content.php index e96b11e6..85be804e 100644 --- a/content.php +++ b/content.php @@ -1,7 +1,6 @@ diff --git a/footer.php b/footer.php index eb65cc8e..7dd82a8b 100644 --- a/footer.php +++ b/footer.php @@ -5,7 +5,6 @@ * Contains the closing of the id=main div and all content after * * @package _s - * @since _s 1.0 */ ?> diff --git a/functions.php b/functions.php index f9e74f0f..0a09c406 100644 --- a/functions.php +++ b/functions.php @@ -3,13 +3,10 @@ * _s functions and definitions * * @package _s - * @since _s 1.0 */ /** * Set the content width based on the theme's design and stylesheet. - * - * @since _s 1.0 */ if ( ! isset( $content_width ) ) $content_width = 640; /* pixels */ @@ -26,8 +23,6 @@ if ( ! function_exists( '_s_setup' ) ) : * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. - * - * @since _s 1.0 */ function _s_setup() { @@ -117,8 +112,6 @@ add_action( 'after_setup_theme', '_s_register_custom_background' ); /** * Register widgetized area and update sidebar with default widgets - * - * @since _s 1.0 */ function _s_widgets_init() { register_sidebar( array( diff --git a/header.php b/header.php index 0d4fe837..19450ad4 100644 --- a/header.php +++ b/header.php @@ -5,7 +5,6 @@ * Displays all of the section and everything up till
* * @package _s - * @since _s 1.0 */ ?> > diff --git a/image.php b/image.php index 1110b0d2..0e95bf64 100644 --- a/image.php +++ b/image.php @@ -3,7 +3,6 @@ * The template for displaying image attachments. * * @package _s - * @since _s 1.0 */ get_header(); diff --git a/inc/custom-header.php b/inc/custom-header.php index aa4ba05c..1d7c8799 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -14,7 +14,6 @@ * * @package _s - * @since _s 1.0 */ /** @@ -72,7 +71,6 @@ add_action( 'after_setup_theme', '_s_custom_header_setup' ); * @return stdClass All properties represent attributes of the curent header image. * * @package _s - * @since _s 1.1 */ if ( ! function_exists( 'get_custom_header' ) ) { @@ -91,8 +89,6 @@ if ( ! function_exists( '_s_header_style' ) ) : * Styles the header image and text displayed on the blog * * @see _s_custom_header_setup(). - * - * @since _s 1.0 */ function _s_header_style() { @@ -132,8 +128,6 @@ if ( ! function_exists( '_s_admin_header_style' ) ) : * Styles the header image displayed on the Appearance > Header admin panel. * * @see _s_custom_header_setup(). - * - * @since _s 1.0 */ function _s_admin_header_style() { ?> @@ -162,8 +156,6 @@ if ( ! function_exists( '_s_admin_header_image' ) ) : * Custom header image markup displayed on the Appearance > Header admin panel. * * @see _s_custom_header_setup(). - * - * @since _s 1.0 */ function _s_admin_header_image() { ?>
diff --git a/inc/customizer.php b/inc/customizer.php index cc58967e..54fe6908 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -3,15 +3,12 @@ * _s Theme Customizer * * @package _s - * @since _s 1.2 */ /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. - * - * @since _s 1.2 */ function _s_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; @@ -22,8 +19,6 @@ add_action( 'customize_register', '_s_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. - * - * @since _s 1.2 */ function _s_customize_preview_js() { wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130304', true ); diff --git a/inc/extras.php b/inc/extras.php index 72fb96c8..1f0a043f 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -5,13 +5,10 @@ * Eventually, some of the functionality here could be replaced by core features * * @package _s - * @since _s 1.0 */ /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. - * - * @since _s 1.0 */ function _s_page_menu_args( $args ) { $args['show_home'] = true; @@ -21,8 +18,6 @@ add_filter( 'wp_page_menu_args', '_s_page_menu_args' ); /** * Adds custom classes to the array of body classes. - * - * @since _s 1.0 */ function _s_body_classes( $classes ) { // Adds a class of group-blog to blogs with more than 1 published author @@ -36,8 +31,6 @@ add_filter( 'body_class', '_s_body_classes' ); /** * Filter in a link to a content ID attribute for the next/previous image links on image attachment pages - * - * @since _s 1.0 */ function _s_enhanced_image_navigation( $url, $id ) { if ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) @@ -53,8 +46,6 @@ add_filter( 'attachment_link', '_s_enhanced_image_navigation', 10, 2 ); /** * Filters wp_title to print a neat tag based on what is being viewed. - * - * @since _s 1.1 */ function _s_wp_title( $title, $sep ) { global $page, $paged; diff --git a/inc/template-tags.php b/inc/template-tags.php index c1b91375..642e0163 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -5,14 +5,11 @@ * Eventually, some of the functionality here could be replaced by core features * * @package _s - * @since _s 1.0 */ if ( ! function_exists( '_s_content_nav' ) ) : /** * Display navigation to next/previous pages when applicable - * - * @since _s 1.0 */ function _s_content_nav( $nav_id ) { global $wp_query, $post; @@ -63,8 +60,6 @@ if ( ! function_exists( '_s_comment' ) ) : * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. - * - * @since _s 1.0 */ function _s_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; @@ -114,8 +109,6 @@ endif; // ends check for _s_comment() if ( ! function_exists( '_s_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. - * - * @since _s 1.0 */ function _s_posted_on() { printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', '_s' ), @@ -131,8 +124,6 @@ function _s_posted_on() { endif; /** * Returns true if a blog has more than 1 category - * - * @since _s 1.0 */ function _s_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) { @@ -158,8 +149,6 @@ function _s_categorized_blog() { /** * Flush out the transients used in _s_categorized_blog - * - * @since _s 1.0 */ function _s_category_transient_flusher() { // Like, beat it. Dig? diff --git a/inc/wpcom.php b/inc/wpcom.php index 010f7309..3ec91647 100644 --- a/inc/wpcom.php +++ b/inc/wpcom.php @@ -3,7 +3,6 @@ * WordPress.com-specific functions and definitions * * @package _s - * @since _s 1.0 */ global $themecolors; @@ -12,7 +11,6 @@ global $themecolors; * Set a default theme color array for WP.com. * * @global array $themecolors - * @since _s 1.0 */ $themecolors = array( 'bg' => '', diff --git a/index.php b/index.php index 51901e9d..b3415dd4 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,6 @@ * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package _s - * @since _s 1.0 */ get_header(); ?> diff --git a/no-results.php b/no-results.php index 6b14c77b..da31bd76 100644 --- a/no-results.php +++ b/no-results.php @@ -5,7 +5,6 @@ * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package _s - * @since _s 1.0 */ ?> diff --git a/page.php b/page.php index 38577393..ee3f17d3 100644 --- a/page.php +++ b/page.php @@ -8,7 +8,6 @@ * different template. * * @package _s - * @since _s 1.0 */ get_header(); ?> diff --git a/search.php b/search.php index 9ef4da48..5bce792f 100644 --- a/search.php +++ b/search.php @@ -3,7 +3,6 @@ * The template for displaying Search Results pages. * * @package _s - * @since _s 1.0 */ get_header(); ?> diff --git a/searchform.php b/searchform.php index 33383c79..052fc826 100644 --- a/searchform.php +++ b/searchform.php @@ -3,7 +3,6 @@ * The template for displaying search forms in _s * * @package _s - * @since _s 1.0 */ ?> <form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search"> diff --git a/sidebar.php b/sidebar.php index 2ccb0b75..c0310f47 100644 --- a/sidebar.php +++ b/sidebar.php @@ -3,7 +3,6 @@ * The Sidebar containing the main widget areas. * * @package _s - * @since _s 1.0 */ ?> <div id="secondary" class="widget-area" role="complementary"> diff --git a/single.php b/single.php index 924d2ae3..032e9fb5 100644 --- a/single.php +++ b/single.php @@ -3,7 +3,6 @@ * The Template for displaying all single posts. * * @package _s - * @since _s 1.0 */ get_header(); ?>