Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -392,15 +392,14 @@ |
393 | 393 | $vals['commenthidden'] = ''; |
394 | 394 | } else { |
395 | 395 | $comment = $revision->getComment(); |
396 | | - if ( strval( $comment ) !== '' ) { |
397 | | - if ( $this->fld_comment ) { |
398 | | - $vals['comment'] = $comment; |
399 | | - } |
| 396 | + |
| 397 | + if ( $this->fld_comment ) { |
| 398 | + $vals['comment'] = $comment; |
| 399 | + } |
400 | 400 | |
401 | | - if ( $this->fld_parsedcomment ) { |
402 | | - global $wgUser; |
403 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $comment, $title ); |
404 | | - } |
| 401 | + if ( $this->fld_parsedcomment ) { |
| 402 | + global $wgUser; |
| 403 | + $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $comment, $title ); |
405 | 404 | } |
406 | 405 | } |
407 | 406 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -70,13 +70,15 @@ |
71 | 71 | * (bug 21520) Anonymous previews now also gives a warning about not being |
72 | 72 | logged in (anonpreviewwarning). |
73 | 73 | |
74 | | -== API changes in 1.17 == |
| 74 | +=== API changes in 1.17 === |
75 | 75 | * (bug 22738) Allow filtering by action type on query=logevent |
76 | 76 | * (bug 22764) uselang parameter for action=parse |
77 | 77 | * (bug 22944) API: watchlist options are inconsistent |
78 | 78 | * (bug 22339) "Go" result should be available through the API |
79 | 79 | * (bug 22868) don't list infinite block expiry date as "now" in API logevents |
80 | | - |
| 80 | +* (bug 22290) Inconsistent presence of "comment" field in prop=revisions |
| 81 | + versus list=recentchanges |
| 82 | + |
81 | 83 | === Languages updated in 1.17 === |
82 | 84 | |
83 | 85 | == Compatibility == |