Make WordPress Core


Ignore:
Timestamp:
09/08/2026 08:41:22 AM (4 hours ago)
Author:
oandregal
Message:

REST API: expose privacy policy page in settings endpoint.

Props oandregal, ntsekouras, joen.
Fixes #66045.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r63012 r63526  
    546546add_action( 'rest_api_init', 'rest_api_default_filters', 10, 1 );
    547547add_action( 'rest_api_init', 'register_initial_settings', 10 );
     548add_filter( 'rest_pre_update_setting', 'rest_restrict_privacy_policy_page_setting_update', 10, 2 );
    548549add_action( 'rest_api_init', 'create_initial_rest_routes', 99 );
    549550add_action( 'parse_request', 'rest_api_loaded' );
Note: See TracChangeset for help on using the changeset viewer.