- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php
r42343 r43571 70 70 $r = new WP_Query( 71 71 apply_filters( 72 'widget_posts_args', array( 72 'widget_posts_args', 73 array( 73 74 'posts_per_page' => $number, 74 75 'no_found_rows' => true, 75 76 'post_status' => 'publish', 76 77 'ignore_sticky_posts' => true, 77 ), $instance 78 ), 79 $instance 78 80 ) 79 81 ); … … 136 138 $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5; 137 139 $show_date = isset( $instance['show_date'] ) ? (bool) $instance['show_date'] : false; 138 ?>140 ?> 139 141 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> 140 142 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></p> … … 145 147 <p><input class="checkbox" type="checkbox"<?php checked( $show_date ); ?> id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" /> 146 148 <label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Display post date?' ); ?></label></p> 147 <?php149 <?php 148 150 } 149 151 }
Note: See TracChangeset
for help on using the changeset viewer.