From c502a281bbacb16d4168a05570014ac7e9121e12 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 29 May 2015 21:37:24 +0000 Subject: [PATCH] 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 --- wp-includes/class-feed.php | 15 +++++++++++++++ wp-includes/class-wp-admin-bar.php | 9 +++++++++ wp-includes/class-wp-customize-control.php | 12 ++++++++++++ wp-includes/class-wp-xmlrpc-server.php | 3 +++ wp-includes/class.wp-scripts.php | 6 ++++++ wp-includes/class.wp-styles.php | 3 +++ wp-includes/default-widgets.php | 13 +++++++++++++ wp-includes/version.php | 2 +- 8 files changed, 62 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-feed.php b/wp-includes/class-feed.php index 01acff82e6..6e109e1616 100644 --- a/wp-includes/class-feed.php +++ b/wp-includes/class-feed.php @@ -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); diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index cb65465c62..785ecb3c34 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -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 ); diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index d280596a2e..6dae971184 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -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() { ?>