From d5b7863fbfa043b768a4f95a86e0a5d4f5ea4e91 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 8 Jan 2019 02:51:50 +0000 Subject: [PATCH] REST API: Remove `permalink_structure` from the REST API settings endpoint. This was ultimately fixed in #45017, so is redunant. Reverts [42142,42359,42540]. See #41014. Built from https://develop.svn.wordpress.org/trunk@44446 git-svn-id: http://core.svn.wordpress.org/trunk@44277 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/option.php | 10 ---------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index 8ae0b68595..f6e3eafcdf 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -2058,16 +2058,6 @@ function register_initial_settings() { 'description' => __( 'Allow people to post comments on new articles.' ), ) ); - - register_setting( - 'permalink', - 'permalink_structure', - array( - 'show_in_rest' => true, - 'type' => 'string', - 'description' => __( 'Custom URL structure for permalinks and archives.' ), - ) - ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index d937a7bdd9..4f7945b16e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44442'; +$wp_version = '5.1-alpha-44446'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.