Make WordPress Core

Ticket #32881: 32881.patch

File 32881.patch, 3.2 KB (added by anonymized_8769252, 11 years ago)
  • src/wp-content/themes/twentyeleven/inc/widgets.php

     
    1313class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
    1414
    1515        /**
    16          * Constructor
     16         * PHP5 constructor.
    1717         *
    18          * @since Twenty Eleven 1.0
    19          **/
    20         function Twenty_Eleven_Ephemera_Widget() {
    21                 $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ) );
    22                 $this->WP_Widget( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), $widget_ops );
     18         * @since Twenty Eleven 2.2
     19         */
     20        function __construct() {
     21                parent::__construct( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), array(
     22                        'classname'   => 'widget_twentyeleven_ephemera',
     23                        'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ),
     24                ) );
    2325                $this->alt_option_name = 'widget_twentyeleven_ephemera';
    2426
    2527                add_action( 'save_post', array( &$this, 'flush_widget_cache' ) );
     
    2830        }
    2931
    3032        /**
     33         * PHP4 constructor
     34         *
     35         * @since Twenty Eleven 1.0
     36         */
     37        function Twenty_Eleven_Ephemera_Widget() {
     38                _deprecated_constructor( 'Twenty_Eleven_Ephemera_Widget', '4.3.0' );
     39                Twenty_Eleven_Ephemera_Widget::__construct();
     40        }
     41
     42        /**
    3143         * Outputs the HTML for this widget.
    3244         *
    3345         * @since Twenty Eleven 1.0
  • src/wp-content/themes/twentyeleven/style.css

     
    44Author: the WordPress team
    55Author URI: https://wordpress.org/
    66Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
    7 Version: 2.1
     7Version: 2.2
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready