From 0517a939fd3b39f5cbe296a469a9b9add0a98fe4 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 27 Mar 2021 17:33:21 -0700
Subject: [PATCH] Standardize

---
 js/post.js => dist/js/classic-editor.js |  0
 inc/class-wp-revisions-control.php      | 17 ++++++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
 rename js/post.js => dist/js/classic-editor.js (100%)

diff --git a/js/post.js b/dist/js/classic-editor.js
similarity index 100%
rename from js/post.js
rename to dist/js/classic-editor.js
diff --git a/inc/class-wp-revisions-control.php b/inc/class-wp-revisions-control.php
index 224d7ea..87b9ef6 100644
--- a/inc/class-wp-revisions-control.php
+++ b/inc/class-wp-revisions-control.php
@@ -178,12 +178,12 @@ class WP_Revisions_Control {
 			$this->settings_section,
 			plugins_url(
 				'dist/js/gutenberg.js',
-				dirname( __FILE__ )
+				__DIR__
 			),
 			array(
 				'wp-i18n',
 			),
-			1
+			2021032701
 		);
 	}
 
@@ -349,7 +349,18 @@ class WP_Revisions_Control {
 
 		// A bit of JS for us.
 		$handle = 'wp-revisions-control-post';
-		wp_enqueue_script( $handle, plugins_url( 'js/post.js', __DIR__ ), array( 'jquery' ), '20131205', true );
+		wp_enqueue_script(
+			$handle,
+			plugins_url(
+				'dist/js/classic-editor.js',
+				__DIR__
+			),
+			array(
+				'jquery',
+				),
+			2013120501,
+			true
+		);
 		wp_localize_script(
 			$handle,
 			$this->settings_section,
-- 
GitLab