Make WordPress Core


Ignore:
Timestamp:
05/30/2014 07:21:33 PM (10 years ago)
Author:
wonderboymusic
Message:

wp_xmlrpc_server::wp_getPage() should return new IXR_Error( instead of return(new IXR_Error(. One of the few places that is unparseable by static analysis.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r28539 r28636  
    24702470        // If the page doesn't exist indicate that.
    24712471        else {
    2472             return(new IXR_Error(404, __('Sorry, no such page.')));
     2472            return new IXR_Error( 404, __( 'Sorry, no such page.' ) );
    24732473        }
    24742474    }
Note: See TracChangeset for help on using the changeset viewer.