Plugin Directory

Changeset 594641

Timestamp:
09/04/2012 09:30:47 PM (12 years ago)
Author:
daniloercoli
Message:
  • Expose the plugin version on the XML-RPC layer.
  • Expose the .COM blog_id on the XML-RPC layer.
  • Synchronize comments even if they are in 'pending'.
Location:
jetpack/branches/mobile-push-notifications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jetpack/branches/mobile-push-notifications/jetpack.php

    r589515 r594641  
    174174        add_action( 'jetpack_clean_nonces', array( $this, 'clean_nonces' ) );
    175175
     176
     177
    176178        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
    177179        add_action( 'admin_init', array( $this, 'admin_init' ) );
     
    24562458        return $methods;
    24572459    }
    2458 
     2460   
     2461    function xmlrpc_options( $options ) {
     2462               
     2463        $options['jetpack_version'] = array(
     2464            'desc'          => __( 'Jetpack Plugin Version' ),
     2465            'readonly'      => true,
     2466            'value'         => JETPACK__VERSION,
     2467        );
     2468
     2469        $options['jetpack_client_id'] = array(
     2470            'desc'          => __( 'The Client ID/WP.com Blog ID of this site' ),
     2471            'readonly'      => true,
     2472            'value'         => $this->get_option( 'id' ),
     2473        );
     2474        return $options;
     2475    }
     2476   
    24592477    function clean_nonces( $all = false ) {
    24602478        global $wpdb;
  • jetpack/branches/mobile-push-notifications/modules/subscriptions.php

    r588185 r594641  
    128128        }
    129129
    130         if ( 1 == $comment->comment_approved ) {
    131             $this->jetpack->sync->comment( $id );
    132         }
     130        if ( 'spam' === $comment->comment_approved ) {
     131            return;
     132        }
     133       
     134        $this->jetpack->sync->comment( $id );
    133135    }
    134136
Note: See TracChangeset for help on using the changeset viewer.