Changeset 43571 for trunk/src/wp-includes/post.php
- Timestamp:
- 08/17/2018 01:50:26 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r43535 r43571 20 20 function create_initial_post_types() { 21 21 register_post_type( 22 'post', array( 22 'post', 23 array( 23 24 'labels' => array( 24 25 'name_admin_bar' => _x( 'Post', 'add new from admin bar' ), … … 42 43 43 44 register_post_type( 44 'page', array( 45 'page', 46 array( 45 47 'labels' => array( 46 48 'name_admin_bar' => _x( 'Page', 'add new from admin bar' ), … … 65 67 66 68 register_post_type( 67 'attachment', array( 69 'attachment', 70 array( 68 71 'labels' => array( 69 72 'name' => _x( 'Media', 'post type general name' ), … … 98 101 99 102 register_post_type( 100 'revision', array( 103 'revision', 104 array( 101 105 'labels' => array( 102 106 'name' => __( 'Revisions' ), … … 118 122 119 123 register_post_type( 120 'nav_menu_item', array( 124 'nav_menu_item', 125 array( 121 126 'labels' => array( 122 127 'name' => __( 'Navigation Menu Items' ), … … 133 138 134 139 register_post_type( 135 'custom_css', array( 140 'custom_css', 141 array( 136 142 'labels' => array( 137 143 'name' => __( 'Custom CSS' ), … … 164 170 165 171 register_post_type( 166 'customize_changeset', array( 172 'customize_changeset', 173 array( 167 174 'labels' => array( 168 175 'name' => _x( 'Changesets', 'post type general name' ), … … 211 218 212 219 register_post_type( 213 'oembed_cache', array( 220 'oembed_cache', 221 array( 214 222 'labels' => array( 215 223 'name' => __( 'oEmbed Responses' ), … … 228 236 229 237 register_post_type( 230 'user_request', array( 238 'user_request', 239 array( 231 240 'labels' => array( 232 241 'name' => __( 'User Requests' ), … … 245 254 246 255 register_post_status( 247 'publish', array( 256 'publish', 257 array( 248 258 'label' => _x( 'Published', 'post status' ), 249 259 'public' => true, … … 254 264 255 265 register_post_status( 256 'future', array( 266 'future', 267 array( 257 268 'label' => _x( 'Scheduled', 'post status' ), 258 269 'protected' => true, … … 263 274 264 275 register_post_status( 265 'draft', array( 276 'draft', 277 array( 266 278 'label' => _x( 'Draft', 'post status' ), 267 279 'protected' => true, … … 272 284 273 285 register_post_status( 274 'pending', array( 286 'pending', 287 array( 275 288 'label' => _x( 'Pending', 'post status' ), 276 289 'protected' => true, … … 281 294 282 295 register_post_status( 283 'private', array( 296 'private', 297 array( 284 298 'label' => _x( 'Private', 'post status' ), 285 299 'private' => true, … … 290 304 291 305 register_post_status( 292 'trash', array( 306 'trash', 307 array( 293 308 'label' => _x( 'Trash', 'post status' ), 294 309 'internal' => true, … … 300 315 301 316 register_post_status( 302 'auto-draft', array( 317 'auto-draft', 318 array( 303 319 'label' => 'auto-draft', 304 320 'internal' => true, … … 308 324 309 325 register_post_status( 310 'inherit', array( 326 'inherit', 327 array( 311 328 'label' => 'inherit', 312 329 'internal' => true, … … 317 334 318 335 register_post_status( 319 'request-pending', array( 336 'request-pending', 337 array( 320 338 'label' => _x( 'Pending', 'request status' ), 321 339 'internal' => true, … … 326 344 327 345 register_post_status( 328 'request-confirmed', array( 346 'request-confirmed', 347 array( 329 348 'label' => _x( 'Confirmed', 'request status' ), 330 349 'internal' => true, … … 335 354 336 355 register_post_status( 337 'request-failed', array( 356 'request-failed', 357 array( 338 358 'label' => _x( 'Failed', 'request status' ), 339 359 'internal' => true, … … 344 364 345 365 register_post_status( 346 'request-completed', array( 366 'request-completed', 367 array( 347 368 'label' => _x( 'Completed', 'request status' ), 348 369 'internal' => true, … … 4702 4723 WHERE post_title = %s 4703 4724 AND post_type IN ($post_type_in_string) 4704 ", $page_title 4725 ", 4726 $page_title 4705 4727 ); 4706 4728 } else { … … 4711 4733 WHERE post_title = %s 4712 4734 AND post_type = %s 4713 ", $page_title, $post_type 4735 ", 4736 $page_title, 4737 $post_type 4714 4738 ); 4715 4739 } … … 5903 5927 function wp_check_for_changed_dates( $post_id, $post, $post_before ) { 5904 5928 $previous_date = date( 'Y-m-d', strtotime( $post_before->post_date ) ); 5905 $new_date = date( 'Y-m-d', strtotime( $post->post_date ) );5929 $new_date = date( 'Y-m-d', strtotime( $post->post_date ) ); 5906 5930 // Don't bother if it hasn't changed. 5907 5931 if ( $new_date == $previous_date ) {
Note: See TracChangeset
for help on using the changeset viewer.