Ticket #27098: ditch-return-void.patch
| File ditch-return-void.patch, 6.7 KB (added by , 12 years ago) |
|---|
-
wp-content/themes/twentyfourteen/functions.php
121 121 * Adjust content_width value for image attachment template. 122 122 * 123 123 * @since Twenty Fourteen 1.0 124 *125 * @return void126 124 */ 127 125 function twentyfourteen_content_width() { 128 126 if ( is_attachment() && wp_attachment_is_image() ) { … … 164 162 * Register three Twenty Fourteen widget areas. 165 163 * 166 164 * @since Twenty Fourteen 1.0 167 *168 * @return void169 165 */ 170 166 function twentyfourteen_widgets_init() { 171 167 require get_template_directory() . '/inc/widgets.php'; … … 225 221 * Enqueue scripts and styles for the front end. 226 222 * 227 223 * @since Twenty Fourteen 1.0 228 *229 * @return void230 224 */ 231 225 function twentyfourteen_scripts() { 232 226 // Add Lato font, used in the main stylesheet. … … 270 264 * Enqueue Google fonts style to admin screen for custom header display. 271 265 * 272 266 * @since Twenty Fourteen 1.0 273 *274 * @return void275 267 */ 276 268 function twentyfourteen_admin_fonts() { 277 269 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null ); … … 283 275 * Print the attached image with a link to the next attached image. 284 276 * 285 277 * @since Twenty Fourteen 1.0 286 *287 * @return void288 278 */ 289 279 function twentyfourteen_the_attached_image() { 290 280 $post = get_post(); … … 352 342 * Print a list of all site contributors who published at least one post. 353 343 * 354 344 * @since Twenty Fourteen 1.0 355 *356 * @return void357 345 */ 358 346 function twentyfourteen_list_authors() { 359 347 $contributor_ids = get_users( array( -
wp-content/themes/twentyfourteen/inc/back-compat.php
17 17 * Switches to the default theme. 18 18 * 19 19 * @since Twenty Fourteen 1.0 20 *21 * @return void22 20 */ 23 21 function twentyfourteen_switch_theme() { 24 22 switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); … … 34 32 * Twenty Fourteen on WordPress versions prior to 3.6. 35 33 * 36 34 * @since Twenty Fourteen 1.0 37 *38 * @return void39 35 */ 40 36 function twentyfourteen_upgrade_notice() { 41 37 $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'] ); … … 46 42 * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6. 47 43 * 48 44 * @since Twenty Fourteen 1.0 49 *50 * @return void51 45 */ 52 46 function twentyfourteen_customize() { 53 47 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( … … 60 54 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. 61 55 * 62 56 * @since Twenty Fourteen 1.0 63 *64 * @return void65 57 */ 66 58 function twentyfourteen_preview() { 67 59 if ( isset( $_GET['preview'] ) ) { -
wp-content/themes/twentyfourteen/inc/customizer.php
88 88 * Add contextual help to the Themes and Post edit screens. 89 89 * 90 90 * @since Twenty Fourteen 1.0 91 *92 * @return void93 91 */ 94 92 function twentyfourteen_contextual_help() { 95 93 if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) { -
wp-content/themes/twentyfourteen/inc/featured-content.php
284 284 * @since Twenty Fourteen 1.0 285 285 * 286 286 * @param int $tag_id The term_id of the tag that has been deleted. 287 * @return void288 287 */ 289 288 public static function delete_post_tag( $tag_id ) { 290 289 $settings = self::get_setting(); … … 390 389 * @static 391 390 * @access public 392 391 * @since Twenty Fourteen 1.0 393 *394 * @return void395 392 */ 396 393 public static function register_setting() { 397 394 register_setting( 'featured-content', 'featured-content', array( __CLASS__, 'validate_settings' ) ); -
wp-content/themes/twentyfourteen/inc/template-tags.php
12 12 * Display navigation to next/previous set of posts when applicable. 13 13 * 14 14 * @since Twenty Fourteen 1.0 15 *16 * @return void17 15 */ 18 16 function twentyfourteen_paging_nav() { 19 17 // Don't print empty markup if there's only one page. … … 67 65 * Display navigation to next/previous post when applicable. 68 66 * 69 67 * @since Twenty Fourteen 1.0 70 *71 * @return void72 68 */ 73 69 function twentyfourteen_post_nav() { 74 70 // Don't print empty markup if there's nowhere to navigate. … … 102 98 * Print HTML with meta information for the current post-date/time and author. 103 99 * 104 100 * @since Twenty Fourteen 1.0 105 *106 * @return void107 101 */ 108 102 function twentyfourteen_posted_on() { 109 103 if ( is_sticky() && is_home() && ! is_paged() ) { … … 154 148 * Flush out the transients used in twentyfourteen_categorized_blog. 155 149 * 156 150 * @since Twenty Fourteen 1.0 157 *158 * @return void159 151 */ 160 152 function twentyfourteen_category_transient_flusher() { 161 153 // Like, beat it. Dig? … … 171 163 * views, or a div element when on single views. 172 164 * 173 165 * @since Twenty Fourteen 1.0 174 * 175 * @return void 176 */ 166 */ 177 167 function twentyfourteen_post_thumbnail() { 178 168 if ( post_password_required() || ! has_post_thumbnail() ) { 179 169 return; -
wp-content/themes/twentyfourteen/inc/widgets.php
68 68 * 69 69 * @param array $args An array of standard parameters for widgets in this theme. 70 70 * @param array $instance An array of settings for this widget instance. 71 * @return void Echoes its output.72 71 */ 73 72 public function widget( $args, $instance ) { 74 73 $format = $instance['format']; … … 232 231 * @since Twenty Fourteen 1.0 233 232 * 234 233 * @param array $instance 235 * @return void236 234 */ 237 235 function form( $instance ) { 238 236 $title = empty( $instance['title'] ) ? '' : esc_attr( $instance['title'] );