Make WordPress Core


Ignore:
Timestamp:
06/16/2015 08:00:15 PM (9 years ago)
Author:
wonderboymusic
Message:

if is a statment, not a function.

See #32444.

File:
1 edited

Legend:

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

    r32733 r32800  
    39633963        do_action( 'xmlrpc_call', 'wp.getPostType' );
    39643964
    3965         if( ! post_type_exists( $post_type_name ) )
     3965        if ( ! post_type_exists( $post_type_name ) )
    39663966            return new IXR_Error( 403, __( 'Invalid post type' ) );
    39673967
    39683968        $post_type = get_post_type_object( $post_type_name );
    39693969
    3970         if( ! current_user_can( $post_type->cap->edit_posts ) )
     3970        if ( ! current_user_can( $post_type->cap->edit_posts ) )
    39713971            return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post type.' ) );
    39723972
     
    40204020
    40214021        foreach( $post_types as $post_type ) {
    4022             if( ! current_user_can( $post_type->cap->edit_posts ) )
     4022            if ( ! current_user_can( $post_type->cap->edit_posts ) )
    40234023                continue;
    40244024
Note: See TracChangeset for help on using the changeset viewer.