[wp-trac] [WordPress Trac] #38825: wp_get_post_revisions default $args value

WordPress Trac noreply at wordpress.org
Wed Nov 16 15:02:08 UTC 2016


#38825: wp_get_post_revisions default $args value
--------------------------+-----------------------------
 Reporter:  natostanco    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Revisions     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 {{{#!php
 function wp_get_post_revisions( $post_id = 0, $args = null ) {
 }}}
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/revision.php#L440 wp-includes/revision.php]
 `$args` should be `array()` or `[]`, not null, otherwise array merge
 returns null every time `$args` is null.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38825>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list