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. Built from https://develop.svn.wordpress.org/trunk@32657 git-svn-id: http://core.svn.wordpress.org/trunk@32627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6a08b00632
commit
c502a281bb
|
@ -36,6 +36,9 @@ class WP_Feed_Cache_Transient {
|
|||
$this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function save($data) {
|
||||
if ( $data instanceof SimplePie ) {
|
||||
$data = $data->data;
|
||||
|
@ -46,18 +49,30 @@ class WP_Feed_Cache_Transient {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function load() {
|
||||
return get_transient($this->name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function mtime() {
|
||||
return get_transient($this->mod_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function touch() {
|
||||
return set_transient($this->mod_name, time(), $this->lifetime);
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function unlink() {
|
||||
delete_transient($this->name);
|
||||
delete_transient($this->mod_name);
|
||||
|
|
|
@ -27,6 +27,9 @@ class WP_Admin_Bar {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->user = new stdClass;
|
||||
|
||||
|
@ -245,6 +248,9 @@ class WP_Admin_Bar {
|
|||
unset( $this->nodes[ $id ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function render() {
|
||||
$root = $this->_bind();
|
||||
if ( $root )
|
||||
|
@ -536,6 +542,9 @@ class WP_Admin_Bar {
|
|||
$this->_render_item( $node );
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function add_menus() {
|
||||
// User related, aligned right.
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
|
||||
|
|
|
@ -1025,6 +1025,9 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function enqueue() {
|
||||
wp_enqueue_media();
|
||||
wp_enqueue_script( 'customize-views' );
|
||||
|
@ -1066,6 +1069,9 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||
$this->uploaded_headers = $custom_image_header->get_uploaded_header_images();
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function print_header_image_template() {
|
||||
?>
|
||||
<script type="text/template" id="tmpl-header-choice">
|
||||
|
@ -1142,6 +1148,9 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {
|
||||
$this->print_header_image_template();
|
||||
$visibility = $this->get_current_image_src() ? '' : ' style="display:none" ';
|
||||
|
@ -1316,6 +1325,9 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function render_content() {
|
||||
?>
|
||||
<span class="button-secondary add-new-widget" tabindex="0">
|
||||
|
|
|
@ -179,6 +179,9 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function serve_request() {
|
||||
$this->IXR_Server($this->methods);
|
||||
}
|
||||
|
|
|
@ -35,6 +35,9 @@ class WP_Scripts extends WP_Dependencies {
|
|||
add_action( 'init', array( $this, 'init' ), 0 );
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function init() {
|
||||
/**
|
||||
* Fires when the WP_Scripts instance is initialized.
|
||||
|
@ -313,6 +316,9 @@ class WP_Scripts extends WP_Dependencies {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function reset() {
|
||||
$this->do_concat = false;
|
||||
$this->print_code = '';
|
||||
|
|
|
@ -242,6 +242,9 @@ class WP_Styles extends WP_Dependencies {
|
|||
return $this->done;
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function reset() {
|
||||
$this->do_concat = false;
|
||||
$this->concat = '';
|
||||
|
|
|
@ -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'];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32656';
|
||||
$wp_version = '4.3-alpha-32657';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue