Make WordPress Core

Changeset 34612


Ignore:
Timestamp:
09/27/2015 12:41:47 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Improve documentation for the __construct(), widget(), update(), and form() methods in WP_Widget_RSS.

Props leemon.
Fixes #34024. See #34013.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-rss.php

    r34437 r34612  
    1717class WP_Widget_RSS extends WP_Widget {
    1818
     19    /**
     20     * Sets up a new RSS widget instance.
     21     *
     22     * @since 2.8.0
     23     * @access public
     24     */
    1925    public function __construct() {
    2026        $widget_ops = array( 'description' => __('Entries from any RSS or Atom feed.') );
     
    2430
    2531    /**
    26      * @param array $args
    27      * @param array $instance
     32     * Outputs the content for the current RSS widget instance.
     33     *
     34     * @since 2.8.0
     35     * @access public
     36     *
     37     * @param array $args     Display arguments including 'before_title', 'after_title',
     38     *                        'before_widget', and 'after_widget'.
     39     * @param array $instance Settings for the current RSS widget instance.
    2840     */
    2941    public function widget( $args, $instance ) {
     
    8092
    8193    /**
    82      * @param array $new_instance
    83      * @param array $old_instance
    84      * @return array
     94     * Handles updating settings for the current RSS widget instance.
     95     *
     96     * @since 2.8.0
     97     * @access public
     98     *
     99     * @param array $new_instance New settings for this instance as input by the user via
     100     *                            WP_Widget::form().
     101     * @param array $old_instance Old settings for this instance.
     102     * @return array Updated settings to save.
    85103     */
    86104    public function update( $new_instance, $old_instance ) {
     
    90108
    91109    /**
    92      * @param array $instance
     110     * Outputs the settings form for the RSS widget.
     111     *
     112     * @since 2.8.0
     113     * @access public
     114     *
     115     * @param array $instance Current settings.
    93116     */
    94117    public function form( $instance ) {
Note: See TracChangeset for help on using the changeset viewer.