- Timestamp:
- 10/18/2021 05:51:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r51789 r51919 270 270 * @return array Updated widget instance. 271 271 */ 272 function update( $new_instance, $old_instance ) {272 public function update( $new_instance, $old_instance ) { 273 273 $old_instance['title'] = strip_tags( $new_instance['title'] ); 274 274 $old_instance['number'] = empty( $new_instance['number'] ) ? 2 : absint( $new_instance['number'] ); … … 288 288 * @param array $instance 289 289 */ 290 function form( $instance ) {290 public function form( $instance ) { 291 291 $title = ! empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; 292 292 $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2;
Note: See TracChangeset
for help on using the changeset viewer.