Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -169,7 +169,8 @@ |
170 | 170 | )); |
171 | 171 | |
172 | 172 | $this->addFieldsIf('rev_page', $this->fld_ids); |
173 | | - $this->addFieldsIf('rev_id', $this->fld_ids); |
| 173 | + $this->addFieldsIf('rev_id', $this->fld_ids || $this->fld_flags); |
| 174 | + $this->addFieldsIf('page_latest', $this->fld_flags); |
174 | 175 | // $this->addFieldsIf('rev_text_id', $this->fld_ids); // Should this field be exposed? |
175 | 176 | $this->addFieldsIf('rev_comment', $this->fld_comment); |
176 | 177 | $this->addFieldsIf('rev_minor_edit', $this->fld_flags); |
— | — | @@ -202,6 +203,8 @@ |
203 | 204 | $vals['new'] = ''; |
204 | 205 | if ($row->rev_minor_edit) |
205 | 206 | $vals['minor'] = ''; |
| 207 | + if ($row->page_latest == $row->rev_id) |
| 208 | + $vals['top'] = ''; |
206 | 209 | } |
207 | 210 | |
208 | 211 | if ($this->fld_comment && !empty ($row->rev_comment)) |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -460,7 +460,8 @@ |
461 | 461 | * Replaced $wgAPIUCUserPrefixMinLength by the more generic $wgAPIMaxDBRows |
462 | 462 | * (bug 11719) Remove trailing blanks in YAML output. |
463 | 463 | * (bug 13541) Added siprop=specialpagealiases to meta=siteinfo |
464 | | -* Added fallback8bitEncoding and readonly fields to meta=siteinfo&siprop=general output |
| 464 | +* Added fallback8bitEncoding and readonly fields to |
| 465 | + meta=siteinfo&siprop=general output |
465 | 466 | * (bug 13544) Added prop=revid to action=parse |
466 | 467 | * (bug 13603) Added siprop=usergroups to meta=siteinfo |
467 | 468 | * Cleaned up redirect resolution |
— | — | @@ -471,7 +472,8 @@ |
472 | 473 | * (bug 12136) Extend allowed characters in JSON callback to ][.'"_A-Za-z0-9 |
473 | 474 | * (bug 11673) Return error 'unknown_action' in specified format |
474 | 475 | * (bug 13618) Added rcprop=redirect and rcshow=redirect to list=recentchanges |
475 | | -* (bug 13544) Added oldid parameter to action=parse to allow for parsing of old revisions |
| 476 | +* (bug 13544) Added oldid parameter to action=parse to allow for parsing of old |
| 477 | + revisions |
476 | 478 | * (bug 13718) Return the proper continue parameter for cmsort=timestamp |
477 | 479 | * action=login now returns the correct waiting time in the details property |
478 | 480 | * (bug 13792) Broken titles are now silently skipped in search results. |
— | — | @@ -487,7 +489,8 @@ |
488 | 490 | * (bug 14013) Added rcshow=patrolled to list=recentchanges |
489 | 491 | * (bug 14028) Added language attribute to interwiki map in meta=siteinfo |
490 | 492 | * (bug 14022) Added usprop=registration and auprop=blockinfo |
491 | | -* (bug 14021) Removed titles= support from list=backlinks (has been obsolete for ages) |
| 493 | +* (bug 14021) Removed titles= support from list=backlinks (has been obsolete |
| 494 | + for ages) |
492 | 495 | * (bug 13829) Expose parse tree via action=expandtemplates |
493 | 496 | * (bug 13606) Allow deletion of images |
494 | 497 | * Added iiprop=mime and aiprop=metadata |
— | — | @@ -508,13 +511,16 @@ |
509 | 512 | * Added bkip parameter to list=blocks |
510 | 513 | * (bug 14651) apprefix and similar parameters are now canonicalized |
511 | 514 | * Added clprop=timestamp to prop=categories |
512 | | -* (bug 14678) API errors now respects $wgShowExceptionDetails and $wgShowSQLErrors |
| 515 | +* (bug 14678) API errors now respects $wgShowExceptionDetails and |
| 516 | + $wgShowSQLErrors |
513 | 517 | * (bug 14723) Added time zone and writing direction to meta=siteinfo |
514 | 518 | * Added APIQueryInfoTokens and APIQueryRevisionsTokens hooks so extensions |
515 | 519 | can add their own tokens |
516 | 520 | * Added block and unblock tokens to prop=info as well |
517 | 521 | * Added paging (limit and continue parameters) to |
518 | 522 | prop={links,templatelinks,langlinks,extlinks,categories,images} |
| 523 | +* Added flag "top" to list=usercontribs if the user is the last contributor to |
| 524 | + the page |
519 | 525 | |
520 | 526 | === Languages updated in 1.13 === |
521 | 527 | |