Make WordPress Core


Ignore:
Timestamp:
09/25/2013 04:49:36 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Eleven: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/inc/widgets.php

    r24131 r25625  
    11<?php
    22/**
    3  * Makes a custom Widget for displaying Aside, Link, Status, and Quote Posts available with Twenty Eleven
     3 * Widget For displaying post format posts
    44 *
    5  * Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets
     5 * Handles displaying Aside, Link, Status, and Quote Posts available with Twenty Eleven.
     6 *
     7 * @link http://codex.wordpress.org/Widgets_API#Developing_Widgets
    68 *
    79 * @package WordPress
     
    1315    /**
    1416     * Constructor
     17     *
     18     * @since Twenty Eleven 1.0
    1519     *
    1620     * @return void
     
    2933     * Outputs the HTML for this widget.
    3034     *
    31      * @param array An array of standard parameters for widgets in this theme
    32      * @param array An array of settings for this widget instance
    33      * @return void Echoes its output
     35     * @since Twenty Eleven 1.0
     36     *
     37     * @param array $args     An array of standard parameters for widgets in this theme.
     38     * @param array $instance An array of settings for this widget instance.
     39     * @return void
    3440     **/
    3541    function widget( $args, $instance ) {
     
    5056        extract( $args, EXTR_SKIP );
    5157
     58        //duplicate_hook
    5259        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base);
    5360
     
    121128
    122129    /**
     130     * Update widget settings.
     131     *
    123132     * Deals with the settings when they are saved by the admin. Here is
    124133     * where any validation should be dealt with.
     134     *
     135     * @since Twenty Eleven 1.0
    125136     **/
    126137    function update( $new_instance, $old_instance ) {
     
    137148    }
    138149
     150    /**
     151     * Flush widget cache.
     152     *
     153     * @since Twenty Eleven 1.0
     154     */
    139155    function flush_widget_cache() {
    140156        wp_cache_delete( 'widget_twentyeleven_ephemera', 'widget' );
     
    142158
    143159    /**
     160     * Set up the widget form.
     161     *
    144162     * Displays the form for this widget on the Widgets page of the WP Admin area.
     163     *
     164     * @since Twenty Eleven 1.0
    145165     **/
    146166    function form( $instance ) {
Note: See TracChangeset for help on using the changeset viewer.