WordPress.org

Make WordPress Core

Changeset 49295


Ignore:
Timestamp:
10/24/2020 04:25:22 AM (5 weeks ago)
Author:
TimothyBlynJacobs
Message:

REST API: Deprecate WP_REST_Meta_Fields::register_field().

This method never worked properly and cannot be fixed due to incompatible method signatures.

Props flixos90, kadamwhite, jnylen0, TimothyBlynJacobs.
Fixes #39959.

File:
1 edited

Legend:

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

    r49188 r49295  
    4949     *
    5050     * @since 4.7.0
     51     * @deprecated 5.6.0
    5152     *
    5253     * @see register_rest_field()
    5354     */
    5455    public function register_field() {
     56        _deprecated_function( __METHOD__, '5.6.0' );
     57
    5558        register_rest_field(
    5659            $this->get_rest_field_type(),
Note: See TracChangeset for help on using the changeset viewer.