Docs: Remove @access notations from method DocBlocks in wp-includes/* classes.
Prior to about 2013, many class methods lacked even access modifiers which made the `@access` notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs. See #41452. Built from https://develop.svn.wordpress.org/trunk@41162 git-svn-id: http://core.svn.wordpress.org/trunk@41002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -19,7 +19,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Requests Response object.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access protected
|
||||
* @var Requests_Response
|
||||
*/
|
||||
protected $response;
|
||||
@@ -28,7 +27,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Filename the response was saved to.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access protected
|
||||
* @var string|null
|
||||
*/
|
||||
protected $filename;
|
||||
@@ -37,7 +35,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Constructor.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param Requests_Response $response HTTP response.
|
||||
* @param string $filename Optional. File name. Default empty.
|
||||
@@ -51,7 +48,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Retrieves the response object for the request.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @return Requests_Response HTTP response.
|
||||
*/
|
||||
@@ -63,7 +59,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Retrieves headers associated with the response.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @see \Requests_Utility_CaseInsensitiveDictionary
|
||||
*
|
||||
@@ -88,7 +83,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Sets all header values.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $headers Map of header name to header value.
|
||||
*/
|
||||
@@ -100,7 +94,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Sets a single HTTP header.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $key Header name.
|
||||
* @param string $value Header value.
|
||||
@@ -119,7 +112,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Retrieves the HTTP return code for the response.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @return int The 3-digit HTTP status code.
|
||||
*/
|
||||
@@ -131,7 +123,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Sets the 3-digit HTTP status code.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param int $code HTTP status.
|
||||
*/
|
||||
@@ -143,7 +134,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Retrieves the response data.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @return mixed Response data.
|
||||
*/
|
||||
@@ -155,7 +145,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Sets the response data.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param mixed $data Response data.
|
||||
*/
|
||||
@@ -167,7 +156,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Retrieves cookies from the response.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @return WP_HTTP_Cookie[] List of cookie objects.
|
||||
*/
|
||||
@@ -190,7 +178,6 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
|
||||
* Converts the object to a WP_Http response array.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @return array WP_Http response array, per WP_Http::request().
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user