diff --git src/wp-includes/option.php src/wp-includes/option.php
index 9f7cc8698e..bd2b27a6c0 100644
|
|
function register_initial_settings() { |
1853 | 1853 | 'description' => __( 'Allow people to post comments on new articles.' ), |
1854 | 1854 | ) ); |
1855 | 1855 | |
| 1856 | register_setting( 'permalink', 'permalink_structure', array( |
| 1857 | 'show_in_rest' => true, |
| 1858 | 'type' => 'string', |
| 1859 | 'description' => __( 'Custom URL structure for permalinks and archives.' ), |
| 1860 | ) ); |
1856 | 1861 | } |
1857 | 1862 | |
1858 | 1863 | /** |
diff --git tests/phpunit/tests/rest-api/rest-settings-controller.php tests/phpunit/tests/rest-api/rest-settings-controller.php
index 21704a035c..78441247af 100644
|
|
class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase |
65 | 65 | 'posts_per_page', |
66 | 66 | 'default_ping_status', |
67 | 67 | 'default_comment_status', |
| 68 | 'permalink_structure', |
68 | 69 | ); |
69 | 70 | |
70 | 71 | if ( ! is_multisite() ) { |