Twenty Fourteen: remove doc block comments for @return void
. See #27098, props philiparthurmoore.
git-svn-id: https://develop.svn.wordpress.org/trunk@27595 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ce25840560
commit
975c953322
@ -121,8 +121,6 @@ add_action( 'after_setup_theme', 'twentyfourteen_setup' );
|
||||
* Adjust content_width value for image attachment template.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_content_width() {
|
||||
if ( is_attachment() && wp_attachment_is_image() ) {
|
||||
@ -164,8 +162,6 @@ function twentyfourteen_has_featured_posts() {
|
||||
* Register three Twenty Fourteen widget areas.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_widgets_init() {
|
||||
require get_template_directory() . '/inc/widgets.php';
|
||||
@ -225,8 +221,6 @@ function twentyfourteen_font_url() {
|
||||
* Enqueue scripts and styles for the front end.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_scripts() {
|
||||
// Add Lato font, used in the main stylesheet.
|
||||
@ -270,8 +264,6 @@ add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
|
||||
* Enqueue Google fonts style to admin screen for custom header display.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_admin_fonts() {
|
||||
wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
|
||||
@ -283,8 +275,6 @@ if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
|
||||
* Print the attached image with a link to the next attached image.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_the_attached_image() {
|
||||
$post = get_post();
|
||||
@ -352,8 +342,6 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
|
||||
* Print a list of all site contributors who published at least one post.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_list_authors() {
|
||||
$contributor_ids = get_users( array(
|
||||
|
@ -17,8 +17,6 @@
|
||||
* Switches to the default theme.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_switch_theme() {
|
||||
switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
|
||||
@ -34,8 +32,6 @@ add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' );
|
||||
* Twenty Fourteen on WordPress versions prior to 3.6.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_upgrade_notice() {
|
||||
$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,8 +42,6 @@ function twentyfourteen_upgrade_notice() {
|
||||
* Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_customize() {
|
||||
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,8 +54,6 @@ add_action( 'load-customize.php', 'twentyfourteen_customize' );
|
||||
* Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
|
@ -88,8 +88,6 @@ add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
|
||||
* Add contextual help to the Themes and Post edit screens.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_contextual_help() {
|
||||
if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) {
|
||||
|
@ -284,7 +284,6 @@ class Featured_Content {
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @param int $tag_id The term_id of the tag that has been deleted.
|
||||
* @return void
|
||||
*/
|
||||
public static function delete_post_tag( $tag_id ) {
|
||||
$settings = self::get_setting();
|
||||
@ -390,8 +389,6 @@ class Featured_Content {
|
||||
* @static
|
||||
* @access public
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function register_setting() {
|
||||
register_setting( 'featured-content', 'featured-content', array( __CLASS__, 'validate_settings' ) );
|
||||
|
@ -12,8 +12,6 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
|
||||
* Display navigation to next/previous set of posts when applicable.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_paging_nav() {
|
||||
// Don't print empty markup if there's only one page.
|
||||
@ -67,8 +65,6 @@ if ( ! function_exists( 'twentyfourteen_post_nav' ) ) :
|
||||
* Display navigation to next/previous post when applicable.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_post_nav() {
|
||||
// Don't print empty markup if there's nowhere to navigate.
|
||||
@ -102,8 +98,6 @@ if ( ! function_exists( 'twentyfourteen_posted_on' ) ) :
|
||||
* Print HTML with meta information for the current post-date/time and author.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_posted_on() {
|
||||
if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
@ -154,8 +148,6 @@ function twentyfourteen_categorized_blog() {
|
||||
* Flush out the transients used in twentyfourteen_categorized_blog.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentyfourteen_category_transient_flusher() {
|
||||
// Like, beat it. Dig?
|
||||
@ -171,9 +163,7 @@ add_action( 'save_post', 'twentyfourteen_category_transient_flusher' );
|
||||
* views, or a div element when on single views.
|
||||
*
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
*/
|
||||
function twentyfourteen_post_thumbnail() {
|
||||
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
|
||||
return;
|
||||
|
@ -45,7 +45,6 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
|
||||
*
|
||||
* @param array $args An array of standard parameters for widgets in this theme.
|
||||
* @param array $instance An array of settings for this widget instance.
|
||||
* @return void Echoes its output.
|
||||
*/
|
||||
public function widget( $args, $instance ) {
|
||||
$format = $instance['format'];
|
||||
@ -247,7 +246,6 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
|
||||
* @since Twenty Fourteen 1.0
|
||||
*
|
||||
* @param array $instance
|
||||
* @return void
|
||||
*/
|
||||
function form( $instance ) {
|
||||
$title = empty( $instance['title'] ) ? '' : esc_attr( $instance['title'] );
|
||||
|
Loading…
Reference in New Issue
Block a user