wordpress/wp-content/plugins/wp-revisions-control/js/post.js
/**
		 * Click handler for purging a post's revisions
		 */
Click handler for purging a post's revisions
Click handler for purging a post ' s revisions
function click_handler_purge() {
			post_id = parseInt( $( this ).data( 'postid' ) );
			$( purge_button ).text( wp_revisions_control.processing_text );
			var confirmed = confirm( wp_revisions_control.ays );
			if ( confirmed && post_id ) {
				$.ajax({
					url: ajaxurl,
					cache: false,
					data: {
						action: wp_revisions_control.action_base + '_purge',
						post_id: post_id,
						nonce: $( this ).data( 'nonce' )
					},
					type: 'post',
					dataType: 'json',
					success: ajax_purge_request_success,
					error: ajax_purge_request_error
				});
			} else {
				$( purge_button ).text( button_text );
			}
		}
function click_handler_purge ( ) { post_id = parseInt ( $ ( this ) . data ( 'postid' ) ) ; $ ( purge_button ) . text ( wp_revisions_control . processing_text ) ; var confirmed = confirm ( wp_revisions_control . ays ) ; if ( confirmed && post_id ) { $ . ajax ( { url : ajaxurl , cache : false , data : { action : wp_revisions_control . action_base + '_purge' , post_id : post_id , nonce : $ ( this ) . data ( 'nonce' ) } , type : 'post' , dataType : 'json' , success : ajax_purge_request_success , error : ajax_purge_request_error } ) ; } else { $ ( purge_button ) . text ( button_text ) ; } }
Click handler for purging a post's revisions
Click handler for purging a post ' s revisions