WordPress.org

Make WordPress Core

Ticket #35981: 35981.diff

File 35981.diff, 840 bytes (added by johnbillion, 4 years ago)
  • src/wp-includes/class-wp-widget.php

     
    1616 * @since 2.8.0
    1717 * @since 4.4.0 Moved to its own file from wp-includes/widgets.php
    1818 */
    19 class WP_Widget {
     19abstract class WP_Widget {
    2020
    2121        /**
    2222         * Root ID for all widgets of this type.
     
    9898         *                        'before_widget', and 'after_widget'.
    9999         * @param array $instance The settings for the particular instance of the widget.
    100100         */
    101         public function widget( $args, $instance ) {
    102                 die('function WP_Widget::widget() must be over-ridden in a sub-class.');
    103         }
     101        abstract public function widget( $args, $instance );
    104102
    105103        /**
    106104         * Updates a particular instance of a widget.