diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-includes/class-wp-http-requests-hooks.php --- a/wp/wp-includes/class-wp-http-requests-hooks.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-includes/class-wp-http-requests-hooks.php Tue Dec 15 13:49:49 2020 +0100 @@ -32,8 +32,8 @@ /** * Constructor. * - * @param string $url URL to request. - * @param array $request Request data in WP_Http format. + * @param string $url URL to request. + * @param array $request Request data in WP_Http format. */ public function __construct( $url, $request ) { $this->url = $url; @@ -43,14 +43,14 @@ /** * Dispatch a Requests hook to a native WordPress action. * - * @param string $hook Hook name. - * @param array $parameters Parameters to pass to callbacks. + * @param string $hook Hook name. + * @param array $parameters Parameters to pass to callbacks. * @return boolean True if hooks were run, false if nothing was hooked. */ public function dispatch( $hook, $parameters = array() ) { $result = parent::dispatch( $hook, $parameters ); - // Handle back-compat actions + // Handle back-compat actions. switch ( $hook ) { case 'curl.before_send': /** This action is documented in wp-includes/class-wp-http-curl.php */ @@ -69,7 +69,7 @@ * @param array $request Request data in WP_Http format. * @param string $url URL to request. */ - do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); + do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores return $result; }