Make WordPress Core

Changeset 33755


Ignore:
Timestamp:
08/26/2015 07:44:59 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add a file header to wp-includes/class-wp-widget.php, created when the WP_Widget class was moved to its own file in [33746].

It's important for every file in WordPress, regardless of makeup or architecture, to have its own file header, even if the file contains nothing but a class. When parsed, files and classes are mutually exclusive and should be documented with this in mind.

See [33746]. See #33413.

File:
1 edited

Legend:

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

    r33746 r33755  
    11<?php
    22/**
    3  * This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update()
    4  * and WP_Widget::form() need to be over-ridden.
     3 * Class file for WP_Widget
    54 *
    65 * @package WordPress
    76 * @subpackage Widgets
     7 * @since 4.4.0
     8 */
     9
     10/**
     11 * WP_Widget class.
     12 *
     13 * This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update()
     14 * and WP_Widget::form() need to be overridden.
     15 *
    816 * @since 2.8.0
     17 * @since 4.4.0 Moved to its own file from wp-includes/widgets.php
    918 */
    1019class WP_Widget {
Note: See TracChangeset for help on using the changeset viewer.