Changeset 53590 for branches/6.0
- Timestamp:
- 06/29/2022 02:22:56 PM (2 years ago)
- Location:
- branches/6.0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0
- Property svn:mergeinfo changed
/trunk merged: 53588-53589
- Property svn:mergeinfo changed
-
branches/6.0/src/wp-includes/option.php
r53317 r53590 2064 2064 * 2065 2065 * @since 4.7.0 2066 * @since 6.1.0 The `show_on_front`, `page_on_front`, and `page_for_posts` options were added. 2066 2067 */ 2067 2068 function register_initial_settings() { … … 2222 2223 2223 2224 register_setting( 2225 'reading', 2226 'show_on_front', 2227 array( 2228 'show_in_rest' => true, 2229 'type' => 'string', 2230 'description' => __( 'What to show on the front page' ), 2231 ) 2232 ); 2233 2234 register_setting( 2235 'reading', 2236 'page_on_front', 2237 array( 2238 'show_in_rest' => true, 2239 'type' => 'integer', 2240 'description' => __( 'The ID of the page that should be displayed on the front page' ), 2241 ) 2242 ); 2243 2244 register_setting( 2245 'reading', 2246 'page_for_posts', 2247 array( 2248 'show_in_rest' => true, 2249 'type' => 'integer', 2250 'description' => __( 'The ID of the page that should display the latest posts' ), 2251 ) 2252 ); 2253 2254 register_setting( 2224 2255 'discussion', 2225 2256 'default_ping_status', -
branches/6.0/tests/phpunit/tests/rest-api/rest-settings-controller.php
r52434 r53590 107 107 'default_post_format', 108 108 'posts_per_page', 109 'show_on_front', 110 'page_on_front', 111 'page_for_posts', 109 112 'default_ping_status', 110 113 'default_comment_status', -
branches/6.0/tests/qunit/fixtures/wp-api-generated.js
r53333 r53590 9629 9629 "required": false 9630 9630 }, 9631 "show_on_front": { 9632 "description": "What to show on the front page", 9633 "type": "string", 9634 "required": false 9635 }, 9636 "page_on_front": { 9637 "description": "The ID of the page that should be displayed on the front page", 9638 "type": "integer", 9639 "required": false 9640 }, 9641 "page_for_posts": { 9642 "description": "The ID of the page that should display the latest posts", 9643 "type": "integer", 9644 "required": false 9645 }, 9631 9646 "default_ping_status": { 9632 9647 "description": "Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.", … … 12284 12299 "default_post_format": "0", 12285 12300 "posts_per_page": 10, 12301 "show_on_front": "posts", 12302 "page_on_front": 0, 12303 "page_for_posts": 0, 12286 12304 "default_ping_status": "open", 12287 12305 "default_comment_status": "open",
Note: See TracChangeset
for help on using the changeset viewer.