Changeset 34616
- Timestamp:
- 09/27/2015 12:57:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-meta.php
r34433 r34616 19 19 class WP_Widget_Meta extends WP_Widget { 20 20 21 /** 22 * Sets up a new Meta widget instance. 23 * 24 * @since 2.8.0 25 * @access public 26 */ 21 27 public function __construct() { 22 28 $widget_ops = array('classname' => 'widget_meta', 'description' => __( "Login, RSS, & WordPress.org links.") ); … … 25 31 26 32 /** 27 * @param array $args 28 * @param array $instance 33 * Outputs the content for the current Meta widget instance. 34 * 35 * @since 2.8.0 36 * @access public 37 * 38 * @param array $args Display arguments including 'before_title', 'after_title', 39 * 'before_widget', and 'after_widget'. 40 * @param array $instance Settings for the current Meta widget instance. 29 41 */ 30 42 public function widget( $args, $instance ) { … … 36 48 echo $args['before_title'] . $title . $args['after_title']; 37 49 } 38 ?>50 ?> 39 51 <ul> 40 52 <?php wp_register(); ?> … … 42 54 <li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> 43 55 <li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> 44 <?php56 <?php 45 57 /** 46 58 * Filter the "Powered by WordPress" text in the Meta widget. … … 57 69 58 70 wp_meta(); 59 ?>71 ?> 60 72 </ul> 61 <?php73 <?php 62 74 echo $args['after_widget']; 63 75 } 64 76 65 77 /** 66 * @param array $new_instance 67 * @param array $old_instance 68 * @return array 78 * Handles updating settings for the current Meta widget instance. 79 * 80 * @since 2.8.0 81 * @access public 82 * 83 * @param array $new_instance New settings for this instance as input by the user via 84 * WP_Widget::form(). 85 * @param array $old_instance Old settings for this instance. 86 * @return array Updated settings to save. 69 87 */ 70 88 public function update( $new_instance, $old_instance ) { … … 76 94 77 95 /** 78 * @param array $instance 96 * Outputs the settings form for the Meta widget. 97 * 98 * @since 2.8.0 99 * @access public 100 * 101 * @param array $instance Current settings. 79 102 */ 80 103 public function form( $instance ) {
Note: See TracChangeset
for help on using the changeset viewer.