* $wgSquidServersNoPurge now supports the use of Classless Inter-Domain
Routing (CIDR) notation to specify contiguous blocks of IPv4 and/or IPv6
addresses that should be trusted to provide X-Forwarded-For headers.
+* Preferences 'watchcreations' and 'watchdefault' ("Add pages I create and files
+ I upload to my watchlist", "Add pages and files I edit to my watchlist") are
+ now enabled by default.
=== New features in 1.23 ===
* ResourceLoader can utilize the Web Storage API to cache modules client-side.
$data = $this->doApiRequest( array(
'action' => 'query',
+ 'wllimit' => 'max',
'list' => 'watchlist' ) );
if ( isset( $data[0]['query']['watchlist'] ) ) {
'list' => 'watchlist' ), $data );
$this->assertArrayHasKey( 'query', $data[0] );
$this->assertArrayHasKey( 'watchlist', $data[0]['query'] );
+ foreach( $data[0]['query']['watchlist'] as $index => $item ) {
+ // Previous tests may insert an invalid title
+ // like ":ApiEditPageTest testNonTextEdit", which
+ // can't be cleared.
+ if ( strpos( $item['title'] , ':' ) === 0 ) {
+ unset( $data[0]['query']['watchlist'][$index] );
+ }
+ }
$this->assertEquals( 0, count( $data[0]['query']['watchlist'] ) );
return $data;