parser, where it differs from the PHP parser).
* Special:Search no longer has an "include redirects" option on the advanced
tab. Redirects are now included in all searches.
+* mediawiki.api.category's getCategories() 'async' parameter was deprecated.
==== Removed classes ====
* FakeMemCachedClient (deprecated in 1.18)
titles: String( title )
} );
- // Backwards compatibility (< MW 1.20)
if ( ok || err ) {
mw.track( 'mw.deprecate', 'api.cbParam' );
mw.log.warn( msg );
apnamespace: mw.config.get( 'wgNamespaceIds' ).category
} );
- // Backwards compatibility (< MW 1.20)
if ( ok || err ) {
mw.track( 'mw.deprecate', 'api.cbParam' );
mw.log.warn( msg );
* @param {mw.Title|string} title
* @param {Function} [ok] Success callback (deprecated)
* @param {Function} [err] Error callback (deprecated)
- * @param {boolean} [async=true] Asynchronousness
+ * @param {boolean} [async=true] Asynchronousness (deprecated)
* @return {jQuery.Promise}
* @return {Function} return.done
* @return {boolean|mw.Title[]} return.done.categories List of category titles or false
async: async === undefined ? true : async
} );
- // Backwards compatibility (< MW 1.20)
if ( ok || err ) {
mw.track( 'mw.deprecate', 'api.cbParam' );
mw.log.warn( msg );
}
+ if ( async !== undefined ) {
+ mw.track( 'mw.deprecate', 'api.async' );
+ mw.log.warn(
+ 'Use of mediawiki.api async=false param is deprecated. ' +
+ 'The sychronous mode will be removed in the future.'
+ );
+ }
return apiPromise
.then( function ( data ) {