Make WordPress Core

Ticket #27098: ditch-return-void.patch

File ditch-return-void.patch, 6.7 KB (added by philiparthurmoore, 12 years ago)
  • wp-content/themes/twentyfourteen/functions.php

     
    121121 * Adjust content_width value for image attachment template.
    122122 *
    123123 * @since Twenty Fourteen 1.0
    124  *
    125  * @return void
    126124 */
    127125function twentyfourteen_content_width() {
    128126        if ( is_attachment() && wp_attachment_is_image() ) {
     
    164162 * Register three Twenty Fourteen widget areas.
    165163 *
    166164 * @since Twenty Fourteen 1.0
    167  *
    168  * @return void
    169165 */
    170166function twentyfourteen_widgets_init() {
    171167        require get_template_directory() . '/inc/widgets.php';
     
    225221 * Enqueue scripts and styles for the front end.
    226222 *
    227223 * @since Twenty Fourteen 1.0
    228  *
    229  * @return void
    230224 */
    231225function twentyfourteen_scripts() {
    232226        // Add Lato font, used in the main stylesheet.
     
    270264 * Enqueue Google fonts style to admin screen for custom header display.
    271265 *
    272266 * @since Twenty Fourteen 1.0
    273  *
    274  * @return void
    275267 */
    276268function twentyfourteen_admin_fonts() {
    277269        wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
     
    283275 * Print the attached image with a link to the next attached image.
    284276 *
    285277 * @since Twenty Fourteen 1.0
    286  *
    287  * @return void
    288278 */
    289279function twentyfourteen_the_attached_image() {
    290280        $post                = get_post();
     
    352342 * Print a list of all site contributors who published at least one post.
    353343 *
    354344 * @since Twenty Fourteen 1.0
    355  *
    356  * @return void
    357345 */
    358346function twentyfourteen_list_authors() {
    359347        $contributor_ids = get_users( array(
  • wp-content/themes/twentyfourteen/inc/back-compat.php

     
    1717 * Switches to the default theme.
    1818 *
    1919 * @since Twenty Fourteen 1.0
    20  *
    21  * @return void
    2220 */
    2321function twentyfourteen_switch_theme() {
    2422        switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
     
    3432 * Twenty Fourteen on WordPress versions prior to 3.6.
    3533 *
    3634 * @since Twenty Fourteen 1.0
    37  *
    38  * @return void
    3935 */
    4036function twentyfourteen_upgrade_notice() {
    4137        $message = sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] );
     
    4642 * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6.
    4743 *
    4844 * @since Twenty Fourteen 1.0
    49  *
    50  * @return void
    5145 */
    5246function twentyfourteen_customize() {
    5347        wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ), '', array(
     
    6054 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.
    6155 *
    6256 * @since Twenty Fourteen 1.0
    63  *
    64  * @return void
    6557 */
    6658function twentyfourteen_preview() {
    6759        if ( isset( $_GET['preview'] ) ) {
  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    8888 * Add contextual help to the Themes and Post edit screens.
    8989 *
    9090 * @since Twenty Fourteen 1.0
    91  *
    92  * @return void
    9391 */
    9492function twentyfourteen_contextual_help() {
    9593        if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) {
  • wp-content/themes/twentyfourteen/inc/featured-content.php

     
    284284         * @since Twenty Fourteen 1.0
    285285         *
    286286         * @param int $tag_id The term_id of the tag that has been deleted.
    287          * @return void
    288287         */
    289288        public static function delete_post_tag( $tag_id ) {
    290289                $settings = self::get_setting();
     
    390389         * @static
    391390         * @access public
    392391         * @since Twenty Fourteen 1.0
    393          *
    394          * @return void
    395392         */
    396393        public static function register_setting() {
    397394                register_setting( 'featured-content', 'featured-content', array( __CLASS__, 'validate_settings' ) );
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    1212 * Display navigation to next/previous set of posts when applicable.
    1313 *
    1414 * @since Twenty Fourteen 1.0
    15  *
    16  * @return void
    1715 */
    1816function twentyfourteen_paging_nav() {
    1917        // Don't print empty markup if there's only one page.
     
    6765 * Display navigation to next/previous post when applicable.
    6866 *
    6967 * @since Twenty Fourteen 1.0
    70  *
    71  * @return void
    7268 */
    7369function twentyfourteen_post_nav() {
    7470        // Don't print empty markup if there's nowhere to navigate.
     
    10298 * Print HTML with meta information for the current post-date/time and author.
    10399 *
    104100 * @since Twenty Fourteen 1.0
    105  *
    106  * @return void
    107101 */
    108102function twentyfourteen_posted_on() {
    109103        if ( is_sticky() && is_home() && ! is_paged() ) {
     
    154148 * Flush out the transients used in twentyfourteen_categorized_blog.
    155149 *
    156150 * @since Twenty Fourteen 1.0
    157  *
    158  * @return void
    159151 */
    160152function twentyfourteen_category_transient_flusher() {
    161153        // Like, beat it. Dig?
     
    171163 * views, or a div element when on single views.
    172164 *
    173165 * @since Twenty Fourteen 1.0
    174  *
    175  * @return void
    176 */
     166 */
    177167function twentyfourteen_post_thumbnail() {
    178168        if ( post_password_required() || ! has_post_thumbnail() ) {
    179169                return;
  • wp-content/themes/twentyfourteen/inc/widgets.php

     
    6868         *
    6969         * @param array $args     An array of standard parameters for widgets in this theme.
    7070         * @param array $instance An array of settings for this widget instance.
    71          * @return void Echoes its output.
    7271         */
    7372        public function widget( $args, $instance ) {
    7473                $format = $instance['format'];
     
    232231         * @since Twenty Fourteen 1.0
    233232         *
    234233         * @param array $instance
    235          * @return void
    236234         */
    237235        function form( $instance ) {
    238236                $title  = empty( $instance['title'] ) ? '' : esc_attr( $instance['title'] );