SmartCrawl SEO - Version 2.4.3

Version Description

  • Fix: Fixed post editor conflict with WP 5.3
Download this release

Release Info

Developer khaxan
Plugin Icon 128x128 SmartCrawl SEO
Version 2.4.3
Comparing to
See all releases

Code changes from version 2.4.2 to 2.4.3

changelog.txt CHANGED
@@ -2,6 +2,10 @@ Plugin Name: SmartCrawl SEO
2
 
3
  Change Log:
4
  ----------------------------------------------------------------------
 
 
 
 
5
  2.4.2 - 2019-10-12
6
  ----------------------------------------------------------------------
7
  - Fix: Disabling all sitemap taxonomies doesn't work as expected
2
 
3
  Change Log:
4
  ----------------------------------------------------------------------
5
+ 2.4.3 - 2019-11-13
6
+ ----------------------------------------------------------------------
7
+ Fix: Fixed post editor conflict with WP 5.3
8
+
9
  2.4.2 - 2019-10-12
10
  ----------------------------------------------------------------------
11
  - Fix: Disabling all sitemap taxonomies doesn't work as expected
includes/assets/js/build/wds-editor.js CHANGED
@@ -94,7 +94,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
94
  }, 10000);
95
 
96
  wp.data.subscribe(function () {
97
- if (_this3.get_editor().isEditedPostDirty() && !_this3.get_editor().isAutosavingPost() && !_this3.get_editor().isSavingPost()) {
98
  debounced();
99
  }
100
  });
@@ -114,6 +114,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
114
  if (_this4.is_autosave_request(options) || _this4.is_post_save_request(options)) {
115
  _this4.dispatch_autosave_event();
116
  }
 
 
117
  });
118
  return result;
119
  });
@@ -146,10 +148,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
146
  this.dispatch_autosave_event();
147
  }
148
  }
 
 
 
 
 
149
  }, {
150
  key: "is_post_dirty",
151
  value: function is_post_dirty() {
152
- return this.get_editor().isEditedPostDirty();
153
  }
154
  }]);
155
 
94
  }, 10000);
95
 
96
  wp.data.subscribe(function () {
97
+ if (_this3.is_post_loaded() && _this3.get_editor().isEditedPostDirty() && !_this3.get_editor().isAutosavingPost() && !_this3.get_editor().isSavingPost()) {
98
  debounced();
99
  }
100
  });
114
  if (_this4.is_autosave_request(options) || _this4.is_post_save_request(options)) {
115
  _this4.dispatch_autosave_event();
116
  }
117
+ }).catch(function () {
118
+ _this4.dispatch_autosave_event();
119
  });
120
  return result;
121
  });
148
  this.dispatch_autosave_event();
149
  }
150
  }
151
+ }, {
152
+ key: "is_post_loaded",
153
+ value: function is_post_loaded() {
154
+ return this.get_editor().getCurrentPostId && this.get_editor().getCurrentPostId();
155
+ }
156
  }, {
157
  key: "is_post_dirty",
158
  value: function is_post_dirty() {
159
+ return this.is_post_loaded() && this.get_editor().isEditedPostDirty();
160
  }
161
  }]);
162
 
includes/assets/js/build/wds-editor.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../es6/wds-editor.js"],"names":["$","window","Wds","GutenbergEditor","init","hook_change_listener","register_api_fetch_middleware","fields","data","forEach","field","get_editor","getEditedPostAttribute","replace","post_id","val","wp","select","dispatchEvent","Event","dispatch","debounced","_","debounce","dispatch_content_change_event","subscribe","isEditedPostDirty","isAutosavingPost","isSavingPost","apiFetch","use","options","next","result","then","is_autosave_request","is_post_save_request","dispatch_autosave_event","request","path","includes","post","get_data","post_type","method","isEditedPostAutosaveable","dispatch_editor","autosave","EventTarget","postEditor","jQuery"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,CAAC,UAAUA,CAAV,EAAa;AACbC,EAAAA,MAAM,CAACC,GAAP,GAAaD,MAAM,CAACC,GAAP,IAAc,EAA3B;;AADa,MAGPC,eAHO;AAAA;AAAA;AAAA;;AAIZ,+BAAc;AAAA;;AAAA;;AACb;;AAEA,YAAKC,IAAL;;AAHa;AAIb;;AARW;AAAA;AAAA,6BAUL;AACN,aAAKC,oBAAL;AACA,aAAKC,6BAAL;AACA;AAbW;AAAA;AAAA,iCAeD;AAAA;;AACV,YAAIC,MAAM,GAAG,CAAC,SAAD,EAAY,SAAZ,EAAuB,aA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,eAAKV,uBAAL;AACA;AACD;AApGW;AAAA;AAAA,sCAsGI;AACf,eAAO,KAAK1B,UAAL,GAAkBe,iBAAlB,EAAP;AACA;AAxGW;;AAAA;AAAA,qBAGiBsB,WAHjB;;AA2Gb/C,EAAAA,MAAM,CAACC,GAAP,CAAW+C,UAAX,GAAwB,IAAI9C,eAAJ,EAAxB;AACA,CA5GD,EA4GG+C,MA5GH","sourcesContent":["(function ($) {\n\twindow.Wds = window.Wds || {};\n\n\tclass GutenbergEditor extends EventTarget {\n\t\tconstructor() {\n\t\t\tsuper();\n\n\t\t\tthis.init();\n\t\t}\n\n\t\tinit() {\n\t\t\tthis.hook_change_listener();\n\t\t\tthis.register_api_fetch_middleware();\n\t\t}\n\n\t\tget_data() {\n\t\t\tlet fields = ['content', 'excerpt', 'post_author', 'post_id', 'post_title', 'post_type'],\n\t\t\t\tdata = {};\n\n\t\t\tfields.forEach((field) => {\n\t\t\t\tdata[field] = this.get_editor().getEditedPostAttribute(field.replace('post_', '')) || '';\n\t\t\t});\n\n\t\t\tif (!data.post_id) {\n\t\t\t\tdata.post_id = $('#post_ID').val() || 0;\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\tget_editor() {\n\t\t\treturn wp.data.select(\"core/editor\");\n\t\t}\n\n\t\tdispatch_content_change_event() {\n\t\t\tthis.dispatchEvent(new Event('content-change'));\n\t\t}\n\n\t\tdispatch_editor() {\n\t\t\treturn wp.data.dispatch(\"core/editor\");\n\t\t}\n\n\t\thook_change_listener() {\n\t\t\tlet debounced = _.debounce(() => this.dispatch_content_change_event(), 10000);\n\n\t\t\twp.data.subscribe(() => {\n\t\t\t\tif (\n\t\t\t\t\tthis.get_editor().isEditedPostDirty()\n\t\t\t\t\t&& !this.get_editor().isAutosavingPost()\n\t\t\t\t\t&& !this.get_editor().isSavingPost()\n\t\t\t\t) {\n\t\t\t\t\tdebounced();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tregister_api_fetch_middleware() {\n\t\t\tif (!(wp || {}).apiFetch) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\twp.apiFetch.use((options, next) => {\n\t\t\t\tlet result = next(options);\n\t\t\t\tresult.then(() => {\n\t\t\t\t\tif (this.is_autosave_request(options) || this.is_post_save_request(options)) {\n\t\t\t\t\t\tthis.dispatch_autosave_event();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn result;\n\t\t\t});\n\t\t}\n\n\t\tdispatch_autosave_event() {\n\t\t\tthis.dispatchEvent(new Event('autosave'));\n\t\t}\n\n\t\tis_autosave_request(request) {\n\t\t\treturn request && request.path\n\t\t\t\t&& request.path.includes('/autosaves');\n\t\t}\n\n\t\tis_post_save_request(request) {\n\t\t\tlet post = this.get_data(),\n\t\t\t\tpost_id = post.post_id,\n\t\t\t\tpost_type = post.post_type;\n\n\t\t\treturn request && request.path\n\t\t\t\t&& request.method === 'PUT'\n\t\t\t\t&& request.path.includes('/' + post_id)\n\t\t\t\t&& request.path.includes('/' + post_type);\n\t\t}\n\n\t\tautosave() {\n\t\t\t// TODO: Keep track of this error: https://github.com/WordPress/gutenberg/issues/7416\n\t\t\tif (this.get_editor().isEditedPostAutosaveable()) {\n\t\t\t\tthis.dispatch_editor().autosave();\n\t\t\t} else {\n\t\t\t\tthis.dispatch_autosave_event();\n\t\t\t}\n\t\t}\n\n\t\tis_post_dirty() {\n\t\t\treturn this.get_editor().isEditedPostDirty();\n\t\t}\n\t}\n\n\twindow.Wds.postEditor = new GutenbergEditor();\n})(jQuery);\n"],"file":"wds-editor.js"}
1
+ {"version":3,"sources":["../es6/wds-editor.js"],"names":["$","window","Wds","GutenbergEditor","init","hook_change_listener","register_api_fetch_middleware","fields","data","forEach","field","get_editor","getEditedPostAttribute","replace","post_id","val","wp","select","dispatchEvent","Event","dispatch","debounced","_","debounce","dispatch_content_change_event","subscribe","is_post_loaded","isEditedPostDirty","isAutosavingPost","isSavingPost","apiFetch","use","options","next","result","then","is_autosave_request","is_post_save_request","dispatch_autosave_event","catch","request","path","includes","post","get_data","post_type","method","isEditedPostAutosaveable","dispatch_editor","autosave","getCurrentPostId","EventTarget","postEditor","jQuery"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,CAAC,UAAUA,CAAV,EAAa;AACbC,EAAAA,MAAM,CAACC,GAAP,GAAaD,MAAM,CAACC,GAAP,IAAc,EAA3B;;AADa,MAGPC,eAHO;AAAA;AAAA;AAAA;;AAIZ,+BAAc;AAAA;;AAAA;;AACb;;AAEA,YAAKC,IAAL;;AAHa;AAIb;;AARW;AAAA;AAAA,6BAUL;AACN,aAAKC,oBAAL;AACA,aAAKC,6BAAL;AACA;AAbW;AAAA;AAAA,iCAeD;AAAA;;AACV,YAAIC,MAAM,GAAG,CAAC,SAAD,EAAY,SAAZ,EAAuB,aAAvB,EAAsC,SAAtC,EAAiD,YAAjD,EAA+D,WAA/D,CAAb;AAAA,YACCC,IAAI,GAAG,EADR;AAGAD,QAAAA,MAAM,CAACE,OAAP,CAAe,UAACC,KAAD,EAAW;AACzBF,UAAAA,IAAI,CAACE,KAAD,CAAJ,GAAc,MAAI,CAACC,UAAL,GAAkBC,sBAAlB,CAAyCF,KAAK,CAACG,OAAN,CAAc,OAAd,EAAuB,EAAvB,CAAzC,KAAwE,EAAtF;AACA,SAFD;;AAIA,YAAI,CAACL,IAAI,CAACM,OAAV,EAAmB;AAClBN,UAAAA,IAAI,CAACM,OAAL,GAAed,CAAC,CAAC,UAAD,CAAD,CAAce,GAAd,MAAuB,CAAtC;AACA;;AAED,eAAOP,IAAP;AACA;AA5BW;AAAA;AAAA,mCA8BC;AACZ,eAAOQ,EAAE,CAACR,IAAH,CAAQS,MAAR,CAAe,aAAf,CAAP;AACA;AAhCW;AAAA;AAAA,sDAkCoB;AAC/B,aAAKC,aAAL,CAAmB,IAAIC,KAAJ,CAAU,gBAAV,CAAnB;AACA;AApCW;AAAA;AAAA,wCAsCM;AACjB,eAAOH,EAAE,CAACR,IAAH,CAA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AAO,CAACC,IAAR,CAAaC,QAAb,CAAsB,YAAtB,CADJ;AAEA;AAnFW;AAAA;AAAA,2CAqFSF,OArFT,EAqFkB;AAC7B,YAAIG,IAAI,GAAG,KAAKC,QAAL,EAAX;AAAA,YACC9B,OAAO,GAAG6B,IAAI,CAAC7B,OADhB;AAAA,YAEC+B,SAAS,GAAGF,IAAI,CAACE,SAFlB;AAIA,eAAOL,OAAO,IAAIA,OAAO,CAACC,IAAnB,IACHD,OAAO,CAACM,MAAR,KAAmB,KADhB,IAEHN,OAAO,CAACC,IAAR,CAAaC,QAAb,CAAsB,MAAM5B,OAA5B,CAFG,IAGH0B,OAAO,CAACC,IAAR,CAAaC,QAAb,CAAsB,MAAMG,SAA5B,CAHJ;AAIA;AA9FW;AAAA;AAAA,iCAgGD;AACV;AACA,YAAI,KAAKlC,UAAL,GAAkBoC,wBAAlB,EAAJ,EAAkD;AACjD,eAAKC,eAAL,GAAuBC,QAAvB;AACA,SAFD,MAEO;AACN,eAAKX,uBAAL;AACA;AACD;AAvGW;AAAA;AAAA,uCAyGK;AAChB,eAAO,KAAK3B,UAAL,GAAkBuC,gBAAlB,IAAsC,KAAKvC,UAAL,GAAkBuC,gBAAlB,EAA7C;AACA;AA3GW;AAAA;AAAA,sCA6GI;AACf,eAAO,KAAKxB,cAAL,MAAyB,KAAKf,UAAL,GAAkBgB,iBAAlB,EAAhC;AACA;AA/GW;;AAAA;AAAA,qBAGiBwB,WAHjB;;AAkHblD,EAAAA,MAAM,CAACC,GAAP,CAAWkD,UAAX,GAAwB,IAAIjD,eAAJ,EAAxB;AACA,CAnHD,EAmHGkD,MAnHH","sourcesContent":["(function ($) {\n\twindow.Wds = window.Wds || {};\n\n\tclass GutenbergEditor extends EventTarget {\n\t\tconstructor() {\n\t\t\tsuper();\n\n\t\t\tthis.init();\n\t\t}\n\n\t\tinit() {\n\t\t\tthis.hook_change_listener();\n\t\t\tthis.register_api_fetch_middleware();\n\t\t}\n\n\t\tget_data() {\n\t\t\tlet fields = ['content', 'excerpt', 'post_author', 'post_id', 'post_title', 'post_type'],\n\t\t\t\tdata = {};\n\n\t\t\tfields.forEach((field) => {\n\t\t\t\tdata[field] = this.get_editor().getEditedPostAttribute(field.replace('post_', '')) || '';\n\t\t\t});\n\n\t\t\tif (!data.post_id) {\n\t\t\t\tdata.post_id = $('#post_ID').val() || 0;\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\tget_editor() {\n\t\t\treturn wp.data.select(\"core/editor\");\n\t\t}\n\n\t\tdispatch_content_change_event() {\n\t\t\tthis.dispatchEvent(new Event('content-change'));\n\t\t}\n\n\t\tdispatch_editor() {\n\t\t\treturn wp.data.dispatch(\"core/editor\");\n\t\t}\n\n\t\thook_change_listener() {\n\t\t\tlet debounced = _.debounce(() => this.dispatch_content_change_event(), 10000);\n\n\t\t\twp.data.subscribe(() => {\n\t\t\t\tif (\n\t\t\t\t\tthis.is_post_loaded()\n\t\t\t\t\t&& this.get_editor().isEditedPostDirty()\n\t\t\t\t\t&& !this.get_editor().isAutosavingPost()\n\t\t\t\t\t&& !this.get_editor().isSavingPost()\n\t\t\t\t) {\n\t\t\t\t\tdebounced();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tregister_api_fetch_middleware() {\n\t\t\tif (!(wp || {}).apiFetch) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\twp.apiFetch.use((options, next) => {\n\t\t\t\tlet result = next(options);\n\t\t\t\tresult.then(() => {\n\t\t\t\t\tif (this.is_autosave_request(options) || this.is_post_save_request(options)) {\n\t\t\t\t\t\tthis.dispatch_autosave_event();\n\t\t\t\t\t}\n\t\t\t\t}).catch(() => {\n\t\t\t\t\tthis.dispatch_autosave_event();\n\t\t\t\t});\n\n\t\t\t\treturn result;\n\t\t\t});\n\t\t}\n\n\t\tdispatch_autosave_event() {\n\t\t\tthis.dispatchEvent(new Event('autosave'));\n\t\t}\n\n\t\tis_autosave_request(request) {\n\t\t\treturn request && request.path\n\t\t\t\t&& request.path.includes('/autosaves');\n\t\t}\n\n\t\tis_post_save_request(request) {\n\t\t\tlet post = this.get_data(),\n\t\t\t\tpost_id = post.post_id,\n\t\t\t\tpost_type = post.post_type;\n\n\t\t\treturn request && request.path\n\t\t\t\t&& request.method === 'PUT'\n\t\t\t\t&& request.path.includes('/' + post_id)\n\t\t\t\t&& request.path.includes('/' + post_type);\n\t\t}\n\n\t\tautosave() {\n\t\t\t// TODO: Keep track of this error: https://github.com/WordPress/gutenberg/issues/7416\n\t\t\tif (this.get_editor().isEditedPostAutosaveable()) {\n\t\t\t\tthis.dispatch_editor().autosave();\n\t\t\t} else {\n\t\t\t\tthis.dispatch_autosave_event();\n\t\t\t}\n\t\t}\n\n\t\tis_post_loaded() {\n\t\t\treturn this.get_editor().getCurrentPostId && this.get_editor().getCurrentPostId();\n\t\t}\n\n\t\tis_post_dirty() {\n\t\t\treturn this.is_post_loaded() && this.get_editor().isEditedPostDirty();\n\t\t}\n\t}\n\n\twindow.Wds.postEditor = new GutenbergEditor();\n})(jQuery);\n"],"file":"wds-editor.js"}
includes/assets/js/es6/wds-editor.js CHANGED
@@ -45,7 +45,8 @@
45
 
46
  wp.data.subscribe(() => {
47
  if (
48
- this.get_editor().isEditedPostDirty()
 
49
  && !this.get_editor().isAutosavingPost()
50
  && !this.get_editor().isSavingPost()
51
  ) {
@@ -65,6 +66,8 @@
65
  if (this.is_autosave_request(options) || this.is_post_save_request(options)) {
66
  this.dispatch_autosave_event();
67
  }
 
 
68
  });
69
 
70
  return result;
@@ -100,8 +103,12 @@
100
  }
101
  }
102
 
 
 
 
 
103
  is_post_dirty() {
104
- return this.get_editor().isEditedPostDirty();
105
  }
106
  }
107
 
45
 
46
  wp.data.subscribe(() => {
47
  if (
48
+ this.is_post_loaded()
49
+ && this.get_editor().isEditedPostDirty()
50
  && !this.get_editor().isAutosavingPost()
51
  && !this.get_editor().isSavingPost()
52
  ) {
66
  if (this.is_autosave_request(options) || this.is_post_save_request(options)) {
67
  this.dispatch_autosave_event();
68
  }
69
+ }).catch(() => {
70
+ this.dispatch_autosave_event();
71
  });
72
 
73
  return result;
103
  }
104
  }
105
 
106
+ is_post_loaded() {
107
+ return this.get_editor().getCurrentPostId && this.get_editor().getCurrentPostId();
108
+ }
109
+
110
  is_post_dirty() {
111
+ return this.is_post_loaded() && this.get_editor().isEditedPostDirty();
112
  }
113
  }
114
 
languages/wds.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the SmartCrawl package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: SmartCrawl 2.4.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpmu-dev-seo\n"
7
- "POT-Creation-Date: 2019-10-29 11:37:46+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the SmartCrawl package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: SmartCrawl 2.4.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpmu-dev-seo\n"
7
+ "POT-Creation-Date: 2019-11-13 18:52:24+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -6,8 +6,8 @@ Tags: wordpress seo optimization, seo, keywords, xml sitemap, content analysis,
6
  Author URI: https://premium.wpmudev.org/
7
  Author: WPMU DEV
8
  Requires at least: 4.6
9
- Tested up to: 5.2
10
- Stable tag: 2.4.2
11
 
12
  SmartCrawl SEO checker, content analysis and search optimizer to rank higher and get discovered in search engines.
13
 
@@ -128,6 +128,10 @@ SmartCrawl works with any normal WP content and page builders shouldn’t be an
128
 
129
  == Changelog ==
130
 
 
 
 
 
131
  = 2.4.2 =
132
 
133
  * Fix: Disabling all sitemap taxonomies doesn't work as expected
6
  Author URI: https://premium.wpmudev.org/
7
  Author: WPMU DEV
8
  Requires at least: 4.6
9
+ Tested up to: 5.3
10
+ Stable tag: 2.4.3
11
 
12
  SmartCrawl SEO checker, content analysis and search optimizer to rank higher and get discovered in search engines.
13
 
128
 
129
  == Changelog ==
130
 
131
+ = 2.4.3 =
132
+
133
+ * Fix: Fixed post editor conflict with WP 5.3
134
+
135
  = 2.4.2 =
136
 
137
  * Fix: Disabling all sitemap taxonomies doesn't work as expected
wpmu-dev-seo.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SmartCrawl
4
  * Plugin URI: http://premium.wpmudev.org/project/wpmu-dev-seo/
5
  * Description: Every SEO option that a site requires, in one easy bundle.
6
- * Version: 2.4.2
7
  * Network: true
8
  * Text Domain: wds
9
  * Author: WPMU DEV
@@ -29,7 +29,7 @@
29
  */
30
 
31
  if ( ! defined( 'SMARTCRAWL_VERSION' ) ) {
32
- define( 'SMARTCRAWL_VERSION', '2.4.2' );
33
  }
34
 
35
  if ( ! defined( 'SMARTCRAWL_SUI_VERSION' ) ) {
3
  * Plugin Name: SmartCrawl
4
  * Plugin URI: http://premium.wpmudev.org/project/wpmu-dev-seo/
5
  * Description: Every SEO option that a site requires, in one easy bundle.
6
+ * Version: 2.4.3
7
  * Network: true
8
  * Text Domain: wds
9
  * Author: WPMU DEV
29
  */
30
 
31
  if ( ! defined( 'SMARTCRAWL_VERSION' ) ) {
32
+ define( 'SMARTCRAWL_VERSION', '2.4.3' );
33
  }
34
 
35
  if ( ! defined( 'SMARTCRAWL_SUI_VERSION' ) ) {