NextGEN Gallery version 1.9.10 fixes the issue - see http://www.nextgen-gallery.com/nextgen-gallery-1-9-10/
function login($username, $password) {
if ( !get_option( 'enable_xmlrpc' ) ) {
$this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this blog. An admin user can enable them at %s'), admin_url('options-writing.php') ) );
return false;
}
$user = wp_authenticate($username, $password);
Modified code:
function login($username, $password) { global $wp_version; if (version_compare($wp_version,"3.5","<")) { if ( !get_option( 'enable_xmlrpc' ) ) { $this->error = new IXR_Error( 405, sprintf( __('XML-RPC services are disabled on this blog. An admin user can enable them at %s'), admin_url('options-writing.php') ) ); return false; } } $user = wp_authenticate($username, $password);Alternative solution: Strictly speaking, the change above is only necessary to make the code compatible with older versions of WordPress. You can simply remove the piece of code that checks whether the enable_xmlrpc option is turned on, marked with maroon color on the original code fragment, so the final code looks like this:
function login($username, $password) { $user = wp_authenticate($username, $password);
Text lines above may appear wrapped around, I recommend using copy-and-paste to avoid errors when modifying your scripts.