WordPress.org

Make WordPress Core

Changeset 38318


Ignore:
Timestamp:
08/22/2016 09:50:44 PM (3 years ago)
Author:
wonderboymusic
Message:

Widgets: $option_name and $alt_option_name have been used as members ever since WP_Widget became an object in 2.8, but never declared.

See #37771.

File:
1 edited

Legend:

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

    r37648 r38318  
    3737     */
    3838    public $name;
     39
     40    /**
     41     * Option name for this widget type.
     42     *
     43     * @since 2.8.0
     44     * @access public
     45     * @var string
     46     */
     47    public $option_name;
     48
     49    /**
     50     * Alt option name for this widget type.
     51     *
     52     * @since 2.8.0
     53     * @access public
     54     * @var string
     55     */
     56    public $alt_option_name;
    3957
    4058    /**
Note: See TracChangeset for help on using the changeset viewer.