Changeset 37425 for trunk/src/wp-includes/class-wp-widget.php
- Timestamp:
- 05/12/2016 08:22:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-widget.php
r37343 r37425 17 17 * @since 2.8.0 18 18 * @since 4.4.0 Moved to its own file from wp-includes/widgets.php 19 * @abstract 19 20 */ 20 class WP_Widget {21 abstract class WP_Widget { 21 22 22 23 /** … … 97 98 * @since 2.8.0 98 99 * @access public 100 * @abstract 99 101 * 100 102 * @param array $args Display arguments including 'before_title', 'after_title', … … 102 104 * @param array $instance The settings for the particular instance of the widget. 103 105 */ 104 public function widget( $args, $instance ) { 105 die('function WP_Widget::widget() must be over-ridden in a sub-class.'); 106 } 106 abstract public function widget( $args, $instance ); 107 107 108 108 /** … … 170 170 * 171 171 * @see __construct() 172 * 172 * 173 173 * @param string $id_base Optional Base ID for the widget, lowercase and unique. If left empty, 174 174 * a portion of the widget's class name will be used Has to be unique.
Note: See TracChangeset
for help on using the changeset viewer.