lib/class-wp2d-post.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 838-842 (lines=5) @@
                                 | 
                            
                                                            
                                    | 835 | 
                                     | 
                                    	 * @since 3.0.0  | 
                                
                                                            
                                    | 836 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 837 | 
                                     | 
                                    	public function get_post_history_callback() { | 
                                
                                                            
                                    | 838 | 
                                     | 
                                    		if ( ! check_ajax_referer( 'wp2d', 'nonce', false ) ) { | 
                                
                                                            
                                    | 839 | 
                                     | 
                                    			wp_send_json_error( [  | 
                                
                                                            
                                    | 840 | 
                                     | 
                                    				'message' => 'WP2D: ' . __( 'AJAX Nonce failure.', 'wp-to-diaspora' ),  | 
                                
                                                            
                                    | 841 | 
                                     | 
                                    			] );  | 
                                
                                                            
                                    | 842 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 843 | 
                                     | 
                                     | 
                                
                                                            
                                    | 844 | 
                                     | 
                                    		$post_id = sanitize_key( $_REQUEST['post_id'] ?? '' );  | 
                                
                                                            
                                    | 845 | 
                                     | 
                                    		if ( ! is_numeric( $post_id ) ) { | 
                                
                                                                        
                 
                                                            
                    
lib/class-wp2d.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 380-382 (lines=3) @@
                                 | 
                            
                                                            
                                    | 377 | 
                                     | 
                                    			define( 'WP2D_DEBUGGING', true );  | 
                                
                                                            
                                    | 378 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 379 | 
                                     | 
                                     | 
                                
                                                            
                                    | 380 | 
                                     | 
                                    		if ( ! check_ajax_referer( 'wp2d', 'nonce', false ) ) { | 
                                
                                                            
                                    | 381 | 
                                     | 
                                    			wp_send_json_error( [ 'message' => __( 'Invalid AJAX nonce', 'wp-to-diaspora' ) ] );  | 
                                
                                                            
                                    | 382 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 383 | 
                                     | 
                                     | 
                                
                                                            
                                    | 384 | 
                                     | 
                                    		$status = $this->check_pod_connection_status();  | 
                                
                                                            
                                    | 385 | 
                                     | 
                                     |