| 
                                
                                    @@ 573-580 (lines=8) @@
                                 | 
                            
                                                            
                                    | 570 | 
                                     | 
                                    				add_filter( 'xmlrpc_methods', array( $this, 'xmlrpc_methods' ) );  | 
                                
                                                            
                                    | 571 | 
                                     | 
                                     | 
                                
                                                            
                                    | 572 | 
                                     | 
                                    				$signed = $this->verify_xml_rpc_signature();  | 
                                
                                                            
                                    | 573 | 
                                     | 
                                    				if ( $signed && ! is_wp_error( $signed ) ) { | 
                                
                                                            
                                    | 574 | 
                                     | 
                                    					// The actual API methods.  | 
                                
                                                            
                                    | 575 | 
                                     | 
                                    					add_filter( 'xmlrpc_methods', array( $this->xmlrpc_server, 'xmlrpc_methods' ) );  | 
                                
                                                            
                                    | 576 | 
                                     | 
                                    				} else { | 
                                
                                                            
                                    | 577 | 
                                     | 
                                    					// The jetpack.authorize method should be available for unauthenticated users on a site with an  | 
                                
                                                            
                                    | 578 | 
                                     | 
                                    					// active Jetpack connection, so that additional users can link their account.  | 
                                
                                                            
                                    | 579 | 
                                     | 
                                    					add_filter( 'xmlrpc_methods', array( $this->xmlrpc_server, 'authorize_xmlrpc_methods' ) );  | 
                                
                                                            
                                    | 580 | 
                                     | 
                                    				}  | 
                                
                                                            
                                    | 581 | 
                                     | 
                                    			} else { | 
                                
                                                            
                                    | 582 | 
                                     | 
                                    				// The bootstrap API methods.  | 
                                
                                                            
                                    | 583 | 
                                     | 
                                    				add_filter( 'xmlrpc_methods', array( $this->xmlrpc_server, 'bootstrap_xmlrpc_methods' ) );  | 
                                
                                                                                
                                 | 
                                
                                    @@ 581-589 (lines=9) @@
                                 | 
                            
                                                            
                                    | 578 | 
                                     | 
                                    					// active Jetpack connection, so that additional users can link their account.  | 
                                
                                                            
                                    | 579 | 
                                     | 
                                    					add_filter( 'xmlrpc_methods', array( $this->xmlrpc_server, 'authorize_xmlrpc_methods' ) );  | 
                                
                                                            
                                    | 580 | 
                                     | 
                                    				}  | 
                                
                                                            
                                    | 581 | 
                                     | 
                                    			} else { | 
                                
                                                            
                                    | 582 | 
                                     | 
                                    				// The bootstrap API methods.  | 
                                
                                                            
                                    | 583 | 
                                     | 
                                    				add_filter( 'xmlrpc_methods', array( $this->xmlrpc_server, 'bootstrap_xmlrpc_methods' ) );  | 
                                
                                                            
                                    | 584 | 
                                     | 
                                    				$signed = $this->verify_xml_rpc_signature();  | 
                                
                                                            
                                    | 585 | 
                                     | 
                                    				if ( $signed && ! is_wp_error( $signed ) ) { | 
                                
                                                            
                                    | 586 | 
                                     | 
                                    					// the jetpack Provision method is available for blog-token-signed requests  | 
                                
                                                            
                                    | 587 | 
                                     | 
                                    					add_filter( 'xmlrpc_methods', array( $this->xmlrpc_server, 'provision_xmlrpc_methods' ) );  | 
                                
                                                            
                                    | 588 | 
                                     | 
                                    				}  | 
                                
                                                            
                                    | 589 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 590 | 
                                     | 
                                     | 
                                
                                                            
                                    | 591 | 
                                     | 
                                    			// Now that no one can authenticate, and we're whitelisting all XML-RPC methods, force enable_xmlrpc on.  | 
                                
                                                            
                                    | 592 | 
                                     | 
                                    			add_filter( 'pre_option_enable_xmlrpc', '__return_true' );  |