Skip to content

Commit bafd51b

Browse files
Docs: Correct @return type for WP_REST_Response::remove_link().
Follow-up to [34928]. Props dilipbheda, mukesh27, kirasong, shailu25, khushdoms, welcher, audrasjb, SergeyBiryukov. See #63249. git-svn-id: https://develop.svn.wordpress.org/trunk@61112 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3b7373b commit bafd51b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/rest-api/class-wp-rest-response.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public function add_link( $rel, $href, $attributes = array() ) {
7676
*
7777
* @since 4.4.0
7878
*
79-
* @param string $rel Link relation. Either an IANA registered type, or an absolute URL.
80-
* @param string $href Optional. Only remove links for the relation matching the given href.
81-
* Default null.
79+
* @param string $rel Link relation. Either an IANA registered type, or an absolute URL.
80+
* @param string|null $href Optional. Only remove links for the relation matching the given href.
81+
* Default null.
8282
*/
8383
public function remove_link( $rel, $href = null ) {
8484
if ( ! isset( $this->links[ $rel ] ) ) {

0 commit comments

Comments
 (0)