- Timestamp:
- 06/23/2017 11:59:23 PM (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php
r40925 r40926 1 1 <?php 2 2 /** 3 * Widget API: WP_Widget_ HTML_Codeclass3 * Widget API: WP_Widget_Custom_HTML class 4 4 * 5 5 * @package WordPress … … 9 9 10 10 /** 11 * Core class used to implement a HTML Codewidget.11 * Core class used to implement a Custom HTML widget. 12 12 * 13 13 * @since 4.8.1 … … 15 15 * @see WP_Widget 16 16 */ 17 class WP_Widget_ HTML_Codeextends WP_Widget {17 class WP_Widget_Custom_HTML extends WP_Widget { 18 18 19 19 /** … … 29 29 30 30 /** 31 * Sets up a new HTML Codewidget instance.31 * Sets up a new Custom HTML widget instance. 32 32 * 33 33 * @since 4.8.1 … … 35 35 public function __construct() { 36 36 $widget_ops = array( 37 'classname' => 'widget_ html_code',37 'classname' => 'widget_custom_html', 38 38 'description' => __( 'Arbitrary HTML code.' ), 39 39 'customize_selective_refresh' => true, 40 40 ); 41 41 $control_ops = array(); 42 parent::__construct( ' html_code', __( 'HTML Code' ), $widget_ops, $control_ops );42 parent::__construct( 'custom_html', __( 'Custom HTML' ), $widget_ops, $control_ops ); 43 43 } 44 44 45 45 /** 46 * Outputs the content for the current HTML Codewidget instance.46 * Outputs the content for the current Custom HTML widget instance. 47 47 * 48 48 * @since 4.8.1 … … 50 50 * @param array $args Display arguments including 'before_title', 'after_title', 51 51 * 'before_widget', and 'after_widget'. 52 * @param array $instance Settings for the current HTML Codewidget instance.52 * @param array $instance Settings for the current Custom HTML widget instance. 53 53 */ 54 54 public function widget( $args, $instance ) { … … 62 62 63 63 /** 64 * Filters the content of the HTML Codewidget.64 * Filters the content of the Custom HTML widget. 65 65 * 66 66 * @since 4.8.1 67 67 * 68 * @param string $content The widget content.69 * @param array $instance Array of settings for the current widget.70 * @param WP_Widget_ HTML_Code $this Current HTML Codewidget instance.68 * @param string $content The widget content. 69 * @param array $instance Array of settings for the current widget. 70 * @param WP_Widget_Custom_HTML $this Current Custom HTML widget instance. 71 71 */ 72 $content = apply_filters( 'widget_ html_code_content', $content, $instance, $this );72 $content = apply_filters( 'widget_custom_html_content', $content, $instance, $this ); 73 73 74 74 echo $args['before_widget']; … … 81 81 82 82 /** 83 * Handles updating settings for the current HTML Codewidget instance.83 * Handles updating settings for the current Custom HTML widget instance. 84 84 * 85 85 * @since 4.8.1 … … 102 102 103 103 /** 104 * Outputs the HTML Codewidget settings form.104 * Outputs the Custom HTML widget settings form. 105 105 * 106 106 * @since 4.8.1
Note: See TracChangeset
for help on using the changeset viewer.