mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
After [32656], add @access annotations to methods that have no doc block in wp-includes/*.
Makes it easier to search for no doc blocks via `}[\n\t\r ]+(protected|private|public)`. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32657 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -888,6 +888,9 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function flush_widget_cache() {
|
||||
wp_cache_delete('widget_recent_posts', 'widget');
|
||||
}
|
||||
@@ -932,6 +935,9 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||
add_action( 'transition_comment_status', array($this, 'flush_widget_cache') );
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function recent_comments_style() {
|
||||
/**
|
||||
* Filter the Recent Comments default widget styles.
|
||||
@@ -949,6 +955,9 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function flush_widget_cache() {
|
||||
wp_cache_delete('widget_recent_comments', 'widget');
|
||||
}
|
||||
@@ -1466,6 +1475,10 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||
</select></p><?php
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $instance
|
||||
* @return string
|
||||
*/
|
||||
public function _get_current_taxonomy($instance) {
|
||||
if ( !empty($instance['taxonomy']) && taxonomy_exists($instance['taxonomy']) )
|
||||
return $instance['taxonomy'];
|
||||
|
||||
Reference in New Issue
Block a user