Restore and deprecate the WP_Widget_Recent_Comments::flush_widget_cache() method, removed in [34580].

Fixes #25556.

Built from https://develop.svn.wordpress.org/trunk@34622


git-svn-id: http://core.svn.wordpress.org/trunk@34586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-09-27 01:40:26 +00:00
parent ad089ffe15
commit c3a83b5726
2 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34621';
$wp_version = '4.4-alpha-34622';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -158,4 +158,16 @@ class WP_Widget_Recent_Comments extends WP_Widget {
<input class="tiny-text" id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="number" step="1" min="1" value="<?php echo $number; ?>" size="3" /></p>
<?php
}
/**
* Flushes the Recent Comments widget cache.
*
* @since 2.8.0
* @access public
*
* @deprecated 4.4.0 Fragment caching was removed in favor of split queries.
*/
public function flush_widget_cache() {
_deprecated_function( __METHOD__, '4.4' );
}
}