Make WordPress Core

Changeset 61112


Ignore:
Timestamp:
11/01/2025 10:50:55 PM (11 days ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-response.php

    r60249 r61112  
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.