Auto Terms of Service and Privacy Policy - Version 2.2.7

Version Description

Download this release

Release Info

Developer wpautoterms
Plugin Icon Auto Terms of Service and Privacy Policy
Version 2.2.7
Comparing to
See all releases

Code changes from version 2.2.6 to 2.2.7

Files changed (289) hide show
  1. README.txt +12 -2
  2. auto-terms-of-service-privacy-policy.php +1 -1
  3. build/make_states_countries.py +8 -1
  4. css/admin.css +41 -0
  5. data/translations/af/countries.php +1 -0
  6. data/translations/ar/countries.php +1 -0
  7. data/translations/ary/countries.php +1 -0
  8. data/translations/as/countries.php +1 -0
  9. data/translations/az/countries.php +1 -0
  10. data/translations/azb/countries.php +1 -0
  11. data/translations/bel/countries.php +1 -0
  12. data/translations/bg/countries.php +1 -0
  13. data/translations/bn/countries.php +1 -0
  14. data/translations/bo/countries.php +1 -0
  15. data/translations/bs/countries.php +1 -0
  16. data/translations/ca/countries.php +1 -0
  17. data/translations/ceb/countries.php +1 -0
  18. data/translations/ckb/countries.php +1 -0
  19. data/translations/cs/countries.php +1 -0
  20. data/translations/cy/countries.php +1 -0
  21. data/translations/da/countries.php +1 -0
  22. data/translations/de/countries.php +1 -0
  23. data/translations/de_CH/countries.php +1 -0
  24. data/translations/de_DE/countries.php +1 -0
  25. data/translations/dzo/countries.php +1 -0
  26. data/translations/el/countries.php +1 -0
  27. data/translations/en/countries.php +1 -0
  28. data/translations/en_AU/countries.php +1 -0
  29. data/translations/en_CA/countries.php +1 -0
  30. data/translations/en_NZ/countries.php +1 -0
  31. data/translations/en_ZA/countries.php +1 -0
  32. data/translations/eo/countries.php +1 -0
  33. data/translations/es/countries.php +1 -0
  34. data/translations/es_CO/countries.php +1 -0
  35. data/translations/es_CR/countries.php +1 -0
  36. data/translations/es_ES/countries.php +1 -0
  37. data/translations/es_GT/countries.php +1 -0
  38. data/translations/es_MX/countries.php +1 -0
  39. data/translations/es_PE/countries.php +1 -0
  40. data/translations/es_VE/countries.php +1 -0
  41. data/translations/et/countries.php +1 -0
  42. data/translations/eu/countries.php +1 -0
  43. data/translations/fa/countries.php +1 -0
  44. data/translations/fi/countries.php +1 -0
  45. data/translations/fr/countries.php +1 -0
  46. data/translations/fur/countries.php +1 -0
  47. data/translations/gd/countries.php +1 -0
  48. data/translations/gl/countries.php +1 -0
  49. data/translations/gu/countries.php +1 -0
  50. data/translations/haz/countries.php +1 -0
  51. data/translations/he/countries.php +1 -0
  52. data/translations/hi/countries.php +1 -0
  53. data/translations/hr/countries.php +1 -0
  54. data/translations/hu/countries.php +1 -0
  55. data/translations/hy/countries.php +1 -0
  56. data/translations/id/countries.php +1 -0
  57. data/translations/is/countries.php +1 -0
  58. data/translations/it/countries.php +1 -0
  59. data/translations/ja/countries.php +1 -0
  60. data/translations/jv/countries.php +1 -0
  61. data/translations/ka/countries.php +1 -0
  62. data/translations/kab/countries.php +1 -0
  63. data/translations/kk/countries.php +1 -0
  64. data/translations/km/countries.php +1 -0
  65. data/translations/ko/countries.php +1 -0
  66. data/translations/lo/countries.php +1 -0
  67. data/translations/lt/countries.php +1 -0
  68. data/translations/lv/countries.php +1 -0
  69. data/translations/mk/countries.php +1 -0
  70. data/translations/ml/countries.php +1 -0
  71. data/translations/mn/countries.php +1 -0
  72. data/translations/mr/countries.php +1 -0
  73. data/translations/ms/countries.php +1 -0
  74. data/translations/my/countries.php +1 -0
  75. data/translations/nb/countries.php +1 -0
  76. data/translations/ne/countries.php +1 -0
  77. data/translations/nl/countries.php +1 -0
  78. data/translations/nl_NL/countries.php +1 -0
  79. data/translations/nl_NL_formal/countries.php +1 -0
  80. data/translations/nn/countries.php +1 -0
  81. data/translations/oci/countries.php +1 -0
  82. data/translations/pa/countries.php +1 -0
  83. data/translations/pl/countries.php +1 -0
  84. data/translations/ps/countries.php +1 -0
  85. data/translations/pt/countries.php +1 -0
  86. data/translations/pt_PT/countries.php +1 -0
  87. data/translations/rhg/countries.php +1 -0
  88. data/translations/ro/countries.php +1 -0
  89. data/translations/ru/countries.php +1 -0
  90. data/translations/sah/countries.php +1 -0
  91. data/translations/si/countries.php +1 -0
  92. data/translations/sk/countries.php +1 -0
  93. data/translations/sl/countries.php +1 -0
  94. data/translations/sq/countries.php +1 -0
  95. data/translations/sr/countries.php +1 -0
  96. data/translations/sv/countries.php +1 -0
  97. data/translations/szl/countries.php +1 -0
  98. data/translations/ta/countries.php +1 -0
  99. data/translations/tah/countries.php +1 -0
  100. data/translations/te/countries.php +1 -0
  101. data/translations/th/countries.php +1 -0
  102. data/translations/tl/countries.php +1 -0
  103. data/translations/tr/countries.php +1 -0
  104. data/translations/tt/countries.php +1 -0
  105. data/translations/ug/countries.php +1 -0
  106. data/translations/uk/countries.php +1 -0
  107. data/translations/ur/countries.php +1 -0
  108. data/translations/uz/countries.php +1 -0
  109. data/translations/vi/countries.php +1 -0
  110. data/translations/zh/countries.php +1 -0
  111. data/translations/zh_HK/countries.php +1 -0
  112. data/translations/zh_TW/countries.php +1 -0
  113. includes/action-base.php +27 -5
  114. includes/admin/action/check-updates.php +23 -0
  115. includes/admin/action/dismiss-notice.php +36 -0
  116. includes/admin/action/recheck-license.php +1 -0
  117. includes/admin/action/send-message.php +9 -4
  118. includes/admin/admin.php +40 -26
  119. includes/admin/form/controls.php +1 -1
  120. includes/admin/form/legal-page.php +1 -1
  121. includes/admin/menu.php +6 -3
  122. includes/admin/notices.php +88 -20
  123. includes/admin/options.php +16 -2
  124. includes/admin/page/settings-page-advanced.php +65 -0
  125. includes/admin/page/settings-page.php +6 -2
  126. includes/admin/review-banner.php +1 -1
  127. includes/box/box.php +13 -5
  128. includes/box/cookies-notice-box.php +13 -11
  129. includes/box/endorsements-box.php +8 -6
  130. includes/box/links-box.php +35 -3
  131. includes/box/update-notice-box.php +19 -21
  132. includes/cpt/cpt.php +10 -11
  133. includes/frontend.php +86 -20
  134. includes/frontend/container-constants.php +16 -0
  135. includes/frontend/endorsements.php +1 -1
  136. includes/frontend/links.php +45 -13
  137. includes/frontend/notice/base-notice.php +12 -20
  138. includes/frontend/notice/cookies-notice.php +9 -13
  139. includes/frontend/notice/update-notice.php +25 -83
  140. includes/frontend/pages-widget-extend.php +2 -2
  141. includes/option/editor-option.php +5 -5
  142. includes/option/hidden-option.php +28 -0
  143. includes/shortcode/post-links.php +9 -1
  144. includes/updated-posts.php +89 -0
  145. includes/wpautoterms.php +2 -0
  146. js/box-page.js +24 -27
  147. js/common.js +0 -1
  148. js/data/states.js +690 -689
  149. js/data/translations/af/strings.js +1 -0
  150. js/data/translations/ar/strings.js +1 -0
  151. js/data/translations/ary/strings.js +1 -0
  152. js/data/translations/as/strings.js +1 -0
  153. js/data/translations/az/strings.js +1 -0
  154. js/data/translations/azb/strings.js +1 -0
  155. js/data/translations/bel/strings.js +1 -0
  156. js/data/translations/bg/strings.js +1 -0
  157. js/data/translations/bn/strings.js +1 -0
  158. js/data/translations/bo/strings.js +1 -0
  159. js/data/translations/bs/strings.js +1 -0
  160. js/data/translations/ca/strings.js +1 -0
  161. js/data/translations/ceb/strings.js +1 -0
  162. js/data/translations/ckb/strings.js +1 -0
  163. js/data/translations/cs/strings.js +1 -0
  164. js/data/translations/cy/strings.js +1 -0
  165. js/data/translations/da/strings.js +1 -0
  166. js/data/translations/de/strings.js +1 -0
  167. js/data/translations/de_CH/strings.js +1 -0
  168. js/data/translations/de_DE/strings.js +1 -0
  169. js/data/translations/dzo/strings.js +1 -0
  170. js/data/translations/el/strings.js +1 -0
  171. js/data/translations/en/strings.js +1 -0
  172. js/data/translations/en_AU/strings.js +1 -0
  173. js/data/translations/en_CA/strings.js +1 -0
  174. js/data/translations/en_NZ/strings.js +1 -0
  175. js/data/translations/en_ZA/strings.js +1 -0
  176. js/data/translations/eo/strings.js +1 -0
  177. js/data/translations/es/strings.js +1 -0
  178. js/data/translations/es_CO/strings.js +1 -0
  179. js/data/translations/es_CR/strings.js +1 -0
  180. js/data/translations/es_ES/strings.js +1 -0
  181. js/data/translations/es_GT/strings.js +1 -0
  182. js/data/translations/es_MX/strings.js +1 -0
  183. js/data/translations/es_PE/strings.js +1 -0
  184. js/data/translations/es_VE/strings.js +1 -0
  185. js/data/translations/et/strings.js +1 -0
  186. js/data/translations/eu/strings.js +1 -0
  187. js/data/translations/fa/strings.js +1 -0
  188. js/data/translations/fi/strings.js +1 -0
  189. js/data/translations/fr/strings.js +1 -0
  190. js/data/translations/fur/strings.js +1 -0
  191. js/data/translations/gd/strings.js +1 -0
  192. js/data/translations/gl/strings.js +1 -0
  193. js/data/translations/gu/strings.js +1 -0
  194. js/data/translations/haz/strings.js +1 -0
  195. js/data/translations/he/strings.js +1 -0
  196. js/data/translations/hi/strings.js +1 -0
  197. js/data/translations/hr/strings.js +1 -0
  198. js/data/translations/hu/strings.js +1 -0
  199. js/data/translations/hy/strings.js +1 -0
  200. js/data/translations/id/strings.js +1 -0
  201. js/data/translations/is/strings.js +1 -0
  202. js/data/translations/it/strings.js +1 -0
  203. js/data/translations/ja/strings.js +1 -0
  204. js/data/translations/jv/strings.js +1 -0
  205. js/data/translations/ka/strings.js +1 -0
  206. js/data/translations/kab/strings.js +1 -0
  207. js/data/translations/kk/strings.js +1 -0
  208. js/data/translations/km/strings.js +1 -0
  209. js/data/translations/ko/strings.js +1 -0
  210. js/data/translations/lo/strings.js +1 -0
  211. js/data/translations/lt/strings.js +1 -0
  212. js/data/translations/lv/strings.js +1 -0
  213. js/data/translations/mk/strings.js +1 -0
  214. js/data/translations/ml/strings.js +1 -0
  215. js/data/translations/mn/strings.js +1 -0
  216. js/data/translations/mr/strings.js +1 -0
  217. js/data/translations/ms/strings.js +1 -0
  218. js/data/translations/my/strings.js +1 -0
  219. js/data/translations/nb/strings.js +1 -0
  220. js/data/translations/ne/strings.js +1 -0
  221. js/data/translations/nl/strings.js +1 -0
  222. js/data/translations/nl_NL/strings.js +1 -0
  223. js/data/translations/nl_NL_formal/strings.js +1 -0
  224. js/data/translations/nn/strings.js +1 -0
  225. js/data/translations/oci/strings.js +1 -0
  226. js/data/translations/pa/strings.js +1 -0
  227. js/data/translations/pl/strings.js +1 -0
  228. js/data/translations/ps/strings.js +1 -0
  229. js/data/translations/pt/strings.js +1 -0
  230. js/data/translations/pt_PT/strings.js +1 -0
  231. js/data/translations/rhg/strings.js +1 -0
  232. js/data/translations/ro/strings.js +1 -0
  233. js/data/translations/ru/strings.js +1 -0
  234. js/data/translations/sah/strings.js +1 -0
  235. js/data/translations/si/strings.js +1 -0
  236. js/data/translations/sk/strings.js +1 -0
  237. js/data/translations/sl/strings.js +1 -0
  238. js/data/translations/sq/strings.js +1 -0
  239. js/data/translations/sr/strings.js +1 -0
  240. js/data/translations/sv/strings.js +1 -0
  241. js/data/translations/szl/strings.js +1 -0
  242. js/data/translations/ta/strings.js +1 -0
  243. js/data/translations/tah/strings.js +1 -0
  244. js/data/translations/te/strings.js +1 -0
  245. js/data/translations/th/strings.js +1 -0
  246. js/data/translations/tl/strings.js +1 -0
  247. js/data/translations/tr/strings.js +1 -0
  248. js/data/translations/tt/strings.js +1 -0
  249. js/data/translations/ug/strings.js +1 -0
  250. js/data/translations/uk/strings.js +1 -0
  251. js/data/translations/ur/strings.js +1 -0
  252. js/data/translations/uz/strings.js +1 -0
  253. js/data/translations/vi/strings.js +1 -0
  254. js/data/translations/zh/strings.js +1 -0
  255. js/data/translations/zh_HK/strings.js +1 -0
  256. js/data/translations/zh_TW/strings.js +1 -0
  257. js/links-box-page.js +11 -0
  258. js/post-new.js +3 -1
  259. js/wpautoterms.js +80 -14
  260. templates/admin-notice/dismissible.php +10 -0
  261. templates/admin-notice/regular.php +1 -0
  262. templates/cookies-notice.php +28 -3
  263. templates/legal-pages/common.php +6 -0
  264. templates/links.php +9 -6
  265. templates/options/box-page.php +17 -13
  266. templates/options/box.php +6 -1
  267. templates/options/checkbox-option.php +5 -0
  268. templates/options/color-option.php +5 -0
  269. templates/options/css-textarea-option.php +6 -1
  270. templates/options/dependency-begin.php +6 -1
  271. templates/options/dependency-end.php +6 -1
  272. templates/options/hidden-option.php +8 -0
  273. templates/options/license-status-option.php +4 -0
  274. templates/options/links-reorder.php +38 -0
  275. templates/options/option-suffix.php +5 -0
  276. templates/options/revert-message.php +12 -0
  277. templates/options/select-combo-option.php +6 -1
  278. templates/options/select-option.php +6 -1
  279. templates/options/shortcode-entry-option.php +5 -0
  280. templates/options/shortcode-select-option.php +5 -0
  281. templates/options/tag-option.php +6 -1
  282. templates/options/text-option.php +5 -0
  283. templates/options/textarea-option.php +6 -1
  284. templates/pages/license_settings.php +15 -1
  285. templates/pages/settings.php +37 -5
  286. templates/pages/settings_advanced.php +2 -0
  287. templates/review-banner.php +1 -0
  288. templates/shortcodes.php +1 -1
  289. templates/update-notice.php +9 -4
README.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: wpautoterms
3
  Tags: gdpr, privacy policy, terms and conditions, cookie consent, terms of service, disclosure, disclaimer, affiliates, legal
4
  Requires at least: 4.2
5
- Tested up to: 5.1.1
6
  Requires PHP: 5.3
7
- Stable tag: 2.2.6
8
  License: GPL version 3 or any later version
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -119,6 +119,16 @@ Installing the plugin is easy. Just follow these steps:
119
 
120
  == Changelog ==
121
 
 
 
 
 
 
 
 
 
 
 
122
  = Version 2.2.6 =
123
  * Apr 24, 2019
124
  * Bug fix: Category Links incorrectly appear in Links to Legal Pages kit
2
  Contributors: wpautoterms
3
  Tags: gdpr, privacy policy, terms and conditions, cookie consent, terms of service, disclosure, disclaimer, affiliates, legal
4
  Requires at least: 4.2
5
+ Tested up to: 5.3
6
  Requires PHP: 5.3
7
+ Stable tag: 2.2.7
8
  License: GPL version 3 or any later version
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
119
 
120
  == Changelog ==
121
 
122
+ = Version 2.2.7 =
123
+ * Nov 4, 2019
124
+ * Feature: Compatibility support for various caching plugins Cookie Notice and Update to Legal pages kits
125
+ * Feature: Add Post Excerpt for Legal Pages
126
+ * Feature: Allow for Legal Page slug to be editable from the edit page directly
127
+ * Feature: Drag & order the links from Links to Legal Pages kit using
128
+ * Fix: Update to Legal Pages notice incorrectly sets the cookie as `undefined`
129
+ * Fix: Bugfix for Legal Pages Widget
130
+ * Fix: Added National Capital Region (Metro Manila) for Philippines
131
+
132
  = Version 2.2.6 =
133
  * Apr 24, 2019
134
  * Bug fix: Category Links incorrectly appear in Links to Legal Pages kit
auto-terms-of-service-privacy-policy.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpautoterms.com
5
  Description: Create Privacy Policy, GDPR Privacy Policy, Terms & Conditions, Disclaimers. Cookie Consent Banner. More Compliance Kits to help you get compliant with the law.
6
  Author: WP AutoTerms
7
  Author URI: https://wpautoterms.com
8
- Version: 2.2.6
9
  License: GPLv2 or later
10
  Text Domain: wpautoterms
11
  Domain Path: /languages
5
  Description: Create Privacy Policy, GDPR Privacy Policy, Terms & Conditions, Disclaimers. Cookie Consent Banner. More Compliance Kits to help you get compliant with the law.
6
  Author: WP AutoTerms
7
  Author URI: https://wpautoterms.com
8
+ Version: 2.2.7
9
  License: GPLv2 or later
10
  Text Domain: wpautoterms
11
  Domain Path: /languages
build/make_states_countries.py CHANGED
@@ -50,6 +50,13 @@ function wpautoterms_country_translations_{locale} () {{
50
  }}
51
  """
52
 
 
 
 
 
 
 
 
53
 
54
  def run():
55
  with open(LOCALES, "r") as f:
@@ -59,7 +66,7 @@ def run():
59
  for c in pycountry.countries:
60
  code = c.alpha_2
61
  s = pycountry.subdivisions.get(country_code=code)
62
- s = filter(lambda y:y.type.lower() in ("state", "province", "territory", "autonomous republic") and code != "GB",s)
63
  countries[code]=map(lambda x:x.code, s)
64
  states+=s
65
  print "Saving {} subdivisions and {} countries...".format(len(states), len(countries.keys()))
50
  }}
51
  """
52
 
53
+ def filter_states(subdiv):
54
+ if subdiv.country_code == "GB":
55
+ return False
56
+ if subdiv.country_code == "PH" and subdiv.code == "PH-00":
57
+ return True
58
+ t = subdiv.type.lower()
59
+ return t in ("state", "province", "territory", "autonomous republic")
60
 
61
  def run():
62
  with open(LOCALES, "r") as f:
66
  for c in pycountry.countries:
67
  code = c.alpha_2
68
  s = pycountry.subdivisions.get(country_code=code)
69
+ s = filter(filter_states, s)
70
  countries[code]=map(lambda x:x.code, s)
71
  states+=s
72
  print "Saving {} subdivisions and {} countries...".format(len(states), len(countries.keys()))
css/admin.css CHANGED
@@ -147,6 +147,10 @@ ul.legal-pages-form-radio {
147
  float: right;
148
  }
149
 
 
 
 
 
150
  .wpautoterms-clear {
151
  clear: both;
152
  }
@@ -278,16 +282,20 @@ ul.legal-pages-form-radio {
278
  .wpautoterms-review-banner {
279
  padding: 30px;
280
  }
 
281
  .wpautoterms-review-banner h4 {
282
  font-size: 20px;
283
  margin: 0 0 10px 0;
284
  }
 
285
  .wpautoterms-review-banner p {
286
  font-size: 16px;
287
  }
 
288
  .wpautoterms-review-banner p:last-child {
289
  margin: 0;
290
  }
 
291
  .wpautoterms-review-banner .button-primary {
292
  font-size: 16px;
293
  }
@@ -336,3 +344,36 @@ ul.legal-pages-form-radio {
336
  outline: none;
337
  box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
338
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  float: right;
148
  }
149
 
150
+ .wpautoterms-pull-left {
151
+ float: left;
152
+ }
153
+
154
  .wpautoterms-clear {
155
  clear: both;
156
  }
282
  .wpautoterms-review-banner {
283
  padding: 30px;
284
  }
285
+
286
  .wpautoterms-review-banner h4 {
287
  font-size: 20px;
288
  margin: 0 0 10px 0;
289
  }
290
+
291
  .wpautoterms-review-banner p {
292
  font-size: 16px;
293
  }
294
+
295
  .wpautoterms-review-banner p:last-child {
296
  margin: 0;
297
  }
298
+
299
  .wpautoterms-review-banner .button-primary {
300
  font-size: 16px;
301
  }
344
  outline: none;
345
  box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
346
  }
347
+
348
+ .wpautoterms-sortable-list {
349
+ margin: 0;
350
+ padding: 0;
351
+ display: block;
352
+ list-style-type: decimal;
353
+ list-style-position: inside;
354
+ }
355
+
356
+ .wpautoterms-sortable-list a {
357
+ cursor: pointer;
358
+ }
359
+
360
+ .wpautoterms-sortable-list li {
361
+ cursor: move;
362
+ background: #FFF;
363
+ border: 1px solid #CCC;
364
+ box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .07);
365
+ display: block;
366
+ padding: 10px;
367
+ position: relative;
368
+ display: list-item;
369
+ }
370
+
371
+ .wpautoterms-sortable-list li.active {
372
+ background-color: #F9F9F9;
373
+ color: #000;
374
+ }
375
+
376
+
377
+ .wpautoterms-sortable-list li.active a {
378
+ color: #F9F9F9;
379
+ }
data/translations/af/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_af () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippyne",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippyne",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ar/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ar () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "الفلبّين",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "الفلبّين",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ary/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ary () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/as/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_as () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ফিলিপাইনছ",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ফিলিপাইনছ",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/az/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_az () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippin",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippin",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/azb/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_azb () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/bel/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_bel () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/bg/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_bg () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филипини",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филипини",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/bn/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_bn () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ফিলিপাইনস",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ফিলিপাইনস",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/bo/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_bo () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/bs/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_bs () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipini",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipini",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ca/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ca () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ceb/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ceb () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ckb/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ckb () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فلیپین",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فلیپین",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/cs/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_cs () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipíny",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipíny",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/cy/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_cy () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Pilipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Pilipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/da/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_da () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippinerne",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippinerne",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/de/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_de () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippinen",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippinen",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/de_CH/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_de_ch () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippinen",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippinen",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/de_DE/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_de_de () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippinen",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippinen",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/dzo/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_dzo () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/el/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_el () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Δυτική",
1149
  "PH": "Φιλιππίνες",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Δυτική",
1149
  "PH": "Φιλιππίνες",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/en/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_en () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/en_AU/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_en_au () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/en_CA/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_en_ca () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/en_NZ/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_en_nz () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/en_ZA/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_en_za () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/eo/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_eo () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinoj",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinoj",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_CO/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_co () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_CR/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_cr () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_ES/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_es () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_GT/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_gt () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_MX/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_mx () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_PE/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_pe () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/es_VE/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_es_ve () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/et/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_et () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipiinid",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipiinid",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/eu/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_eu () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinak",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinak",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/fa/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_fa () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فیلیپین",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فیلیپین",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/fi/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_fi () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippiinit",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippiinit",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/fr/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_fr () {
1147
  "PG-WHM": "Highlands occidentaux",
1148
  "PG-WPD": "Ouest",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan du Nord",
1152
  "PH-AGS": "Agusan du Sud",
1147
  "PG-WHM": "Highlands occidentaux",
1148
  "PG-WPD": "Ouest",
1149
  "PH": "Philippines",
1150
+ "PH-00": "Région de la capitale nationale",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan du Nord",
1153
  "PH-AGS": "Agusan du Sud",
data/translations/fur/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_fur () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/gd/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_gd () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/gl/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_gl () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/gu/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_gu () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ફિલિપાઇન્સ",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ફિલિપાઇન્સ",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/haz/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_haz () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/he/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_he () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "פיליפינים",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "פיליפינים",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/hi/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_hi () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "फिलीपीन्स",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "फिलीपीन्स",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/hr/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_hr () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipini",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipini",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/hu/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_hu () {
1147
  "PG-WHM": "Nyugati felföldek",
1148
  "PG-WPD": "Western",
1149
  "PH": "Fülöp-szigetek",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Nyugati felföldek",
1148
  "PG-WPD": "Western",
1149
  "PH": "Fülöp-szigetek",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/hy/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_hy () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Ֆիլիպիններ",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Ֆիլիպիններ",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/id/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_id () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipina",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipina",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/is/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_is () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Vestur",
1149
  "PH": "Filippseyjar",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Vestur",
1149
  "PH": "Filippseyjar",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/it/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_it () {
1147
  "PG-WHM": "Altopiani occidentali",
1148
  "PG-WPD": "Occidentale",
1149
  "PH": "Filippine",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Nord",
1152
  "PH-AGS": "Agusan del Sud",
1147
  "PG-WHM": "Altopiani occidentali",
1148
  "PG-WPD": "Occidentale",
1149
  "PH": "Filippine",
1150
+ "PH-00": "Regione Capitale Nazionale",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Nord",
1153
  "PH-AGS": "Agusan del Sud",
data/translations/ja/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ja () {
1147
  "PG-WHM": "西ハイランド",
1148
  "PG-WPD": "Western",
1149
  "PH": "フィリピン",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "北アグサン",
1152
  "PH-AGS": "南アグサン",
1147
  "PG-WHM": "西ハイランド",
1148
  "PG-WPD": "Western",
1149
  "PH": "フィリピン",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "北アグサン",
1153
  "PH-AGS": "南アグサン",
data/translations/jv/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_jv () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ka/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ka () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ფილიპინები",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ფილიპინები",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/kab/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_kab () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippin",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippin",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/kk/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_kk () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филиппин",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филиппин",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/km/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_km () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ហ្វីលីពីន",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ហ្វីលីពីន",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ko/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ko () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "필리핀",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "필리핀",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/lo/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_lo () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ປະເທດຟີລິບປິນ",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ປະເທດຟີລິບປິນ",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/lt/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_lt () {
1147
  "PG-WHM": "Vakarų Hailandas",
1148
  "PG-WPD": "Vakarinis Fidžio padalinys",
1149
  "PH": "Filipinai",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Vakarų Hailandas",
1148
  "PG-WPD": "Vakarinis Fidžio padalinys",
1149
  "PH": "Filipinai",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/lv/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_lv () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipīnas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipīnas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/mk/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_mk () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филипини",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филипини",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ml/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ml () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ഫിലിപ്പൈന്‍സ്",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ഫിലിപ്പൈന്‍സ്",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/mn/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_mn () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Флиппен",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Флиппен",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/mr/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_mr () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "फिलिपिन्स",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "फिलिपिन्स",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ms/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ms () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipina",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipina",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/my/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_my () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ဖိလစ်ပိုင်နိုင်ငံ",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ဖိလစ်ပိုင်နိုင်ငံ",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/nb/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_nb () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippinene",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippinene",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ne/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ne () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "फिलिपिन्स",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "फिलिपिन्स",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/nl/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_nl () {
1147
  "PG-WHM": "Westelijke Hooglanden",
1148
  "PG-WPD": "West",
1149
  "PH": "Filipijnen",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Zuid-Agusan",
1147
  "PG-WHM": "Westelijke Hooglanden",
1148
  "PG-WPD": "West",
1149
  "PH": "Filipijnen",
1150
+ "PH-00": "Nationale Hoofstadregio",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Zuid-Agusan",
data/translations/nl_NL/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_nl_nl () {
1147
  "PG-WHM": "Westelijke Hooglanden",
1148
  "PG-WPD": "West",
1149
  "PH": "Filipijnen",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Zuid-Agusan",
1147
  "PG-WHM": "Westelijke Hooglanden",
1148
  "PG-WPD": "West",
1149
  "PH": "Filipijnen",
1150
+ "PH-00": "Nationale Hoofstadregio",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Zuid-Agusan",
data/translations/nl_NL_formal/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_nl_nl_formal () {
1147
  "PG-WHM": "Westelijke Hooglanden",
1148
  "PG-WPD": "West",
1149
  "PH": "Filipijnen",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Zuid-Agusan",
1147
  "PG-WHM": "Westelijke Hooglanden",
1148
  "PG-WPD": "West",
1149
  "PH": "Filipijnen",
1150
+ "PH-00": "Nationale Hoofstadregio",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Zuid-Agusan",
data/translations/nn/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_nn () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippinane",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippinane",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/oci/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_oci () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/pa/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_pa () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ਫਿਲਿਪੀਨੀਜ਼",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ਫਿਲਿਪੀਨੀਜ਼",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/pl/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_pl () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipiny",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipiny",
1150
+ "PH-00": "Region Stołeczny (Manila)",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ps/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ps () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/pt/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_pt () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/pt_PT/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_pt_pt () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/rhg/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_rhg () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ro/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ro () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipine",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipine",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ru/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ru () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филиппины",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филиппины",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/sah/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_sah () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/si/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_si () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "පිලිපීන",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "පිලිපීන",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/sk/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_sk () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipíny",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipíny",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/sl/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_sl () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipini",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipini",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/sq/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_sq () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinet",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinet",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/sr/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_sr () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филипини",
 
1150
  "PH-ABR": "Абра",
1151
  "PH-AGN": "Северни Агусан",
1152
  "PH-AGS": "Јужни Агусан",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филипини",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Абра",
1152
  "PH-AGN": "Северни Агусан",
1153
  "PH-AGS": "Јужни Агусан",
data/translations/sv/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_sv () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Västra",
1149
  "PH": "Filippinerna",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Västra",
1149
  "PH": "Filippinerna",
1150
+ "PH-00": "Metro Manila",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/szl/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_szl () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ta/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ta () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "பிலிப்பைன்ஸ்",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "பிலிப்பைன்ஸ்",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/tah/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_tah () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Philippines",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/te/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_te () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ఫిలిప్పిన్స్",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "ఫిలిప్పిన్స్",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/th/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_th () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "ภาคตะวันตก",
1149
  "PH": "ฟิลิปปินส์",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "ภาคตะวันตก",
1149
  "PH": "ฟิลิปปินส์",
1150
+ "PH-00": "เขตนครหลวง (มะนิลา)",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/tl/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_tl () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Pilipinas",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Pilipinas",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/tr/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_tr () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinler",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filipinler",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/tt/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_tt () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филиппиннәр",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Филиппиннәр",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/ug/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ug () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فىلىپپىن",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فىلىپپىن",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/uk/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_uk () {
1147
  "PG-WHM": "Західне Нагір’я",
1148
  "PG-WPD": "Західна",
1149
  "PH": "Філіппіни",
 
1150
  "PH-ABR": "Абра",
1151
  "PH-AGN": "Північний Агусан",
1152
  "PH-AGS": "Південний Агусан",
1147
  "PG-WHM": "Західне Нагір’я",
1148
  "PG-WPD": "Західна",
1149
  "PH": "Філіппіни",
1150
+ "PH-00": "Національна столичний регіон",
1151
  "PH-ABR": "Абра",
1152
  "PH-AGN": "Північний Агусан",
1153
  "PH-AGS": "Південний Агусан",
data/translations/ur/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_ur () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فلپائن",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "فلپائن",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/uz/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_uz () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippin",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "Filippin",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
data/translations/vi/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_vi () {
1147
  "PG-WHM": "Vùng Tây Cao Nguyên",
1148
  "PG-WPD": "Miền Tây",
1149
  "PH": "Phi-li-pi-nợ",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Bắc Agusan",
1152
  "PH-AGS": "Nam Agusan",
1147
  "PG-WHM": "Vùng Tây Cao Nguyên",
1148
  "PG-WPD": "Miền Tây",
1149
  "PH": "Phi-li-pi-nợ",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Bắc Agusan",
1153
  "PH-AGS": "Nam Agusan",
data/translations/zh/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_zh () {
1147
  "PG-WHM": "西高地省",
1148
  "PG-WPD": "西部区",
1149
  "PH": "菲律宾",
 
1150
  "PH-ABR": "阿布拉",
1151
  "PH-AGN": "北阿古桑",
1152
  "PH-AGS": "南阿古桑",
1147
  "PG-WHM": "西高地省",
1148
  "PG-WPD": "西部区",
1149
  "PH": "菲律宾",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "阿布拉",
1152
  "PH-AGN": "北阿古桑",
1153
  "PH-AGS": "南阿古桑",
data/translations/zh_HK/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_zh_hk () {
1147
  "PG-WHM": "西高地省",
1148
  "PG-WPD": "西部区",
1149
  "PH": "菲律賓",
 
1150
  "PH-ABR": "阿布拉",
1151
  "PH-AGN": "北阿古桑",
1152
  "PH-AGS": "南阿古桑",
1147
  "PG-WHM": "西高地省",
1148
  "PG-WPD": "西部区",
1149
  "PH": "菲律賓",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "阿布拉",
1152
  "PH-AGN": "北阿古桑",
1153
  "PH-AGS": "南阿古桑",
data/translations/zh_TW/countries.php CHANGED
@@ -1147,6 +1147,7 @@ function wpautoterms_country_translations_zh_tw () {
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "菲律賓",
 
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
1147
  "PG-WHM": "Western Highlands",
1148
  "PG-WPD": "Western",
1149
  "PH": "菲律賓",
1150
+ "PH-00": "National Capital Region",
1151
  "PH-ABR": "Abra",
1152
  "PH-AGN": "Agusan del Norte",
1153
  "PH-AGS": "Agusan del Sur",
includes/action-base.php CHANGED
@@ -19,17 +19,25 @@ class Action_Base {
19
  protected $_handler;
20
 
21
  protected static $_actions = array();
 
22
 
23
- public function __construct( $capability, $args = null, $name = '', $handler = null, $fail_handler = null, $admin_post = false ) {
 
 
 
24
  $this->_name = empty( $name ) ? static::NAME : $name;
25
  $this->_args = $args;
26
  $this->_handler = $handler;
27
  $this->_fail_handler = $fail_handler;
28
  $this->_capability = $capability;
 
29
  if ( $admin_post ) {
30
  add_action( 'admin_post_' . $this->name(), array( $this, 'handle_post' ) );
31
  }
32
  add_action( 'wp_ajax_' . $this->name(), array( $this, 'handle' ) );
 
 
 
33
  static::$_actions[] = $this;
34
  }
35
 
@@ -65,8 +73,10 @@ class Action_Base {
65
  }
66
 
67
  protected function _handle( $admin_post ) {
68
- $fn = $this->_handler;
69
- $fn( $this->_args );
 
 
70
  }
71
 
72
  public function handle_post() {
@@ -74,16 +84,28 @@ class Action_Base {
74
  }
75
 
76
  public function handle( $admin_post = false ) {
77
- if ( ! current_user_can( $this->capability() ) ) {
 
78
  $this->_fail();
79
  }
80
  $fn = $admin_post ? 'check_admin_referer' : 'check_ajax_referer';
81
- if ( ! $fn( $this->name(), 'nonce', false ) ) {
82
  $this->_fail();
83
  }
84
  $this->_handle( $admin_post );
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
87
  protected static function _request_var( $name ) {
88
  if ( isset( $_REQUEST[ $name ] ) ) {
89
  return wp_slash( $_REQUEST[ $name ] );
19
  protected $_handler;
20
 
21
  protected static $_actions = array();
22
+ protected $_skip_nonce;
23
 
24
+ public function __construct(
25
+ $capability, $name = '', $handler = null, $args = null, $fail_handler = null, $admin_post = false,
26
+ $nopriv = false, $skip_nonce = false
27
+ ) {
28
  $this->_name = empty( $name ) ? static::NAME : $name;
29
  $this->_args = $args;
30
  $this->_handler = $handler;
31
  $this->_fail_handler = $fail_handler;
32
  $this->_capability = $capability;
33
+ $this->_skip_nonce = $skip_nonce;
34
  if ( $admin_post ) {
35
  add_action( 'admin_post_' . $this->name(), array( $this, 'handle_post' ) );
36
  }
37
  add_action( 'wp_ajax_' . $this->name(), array( $this, 'handle' ) );
38
+ if ( $nopriv ) {
39
+ add_action( 'wp_ajax_nopriv_' . $this->name(), array( $this, 'handle_nopriv' ) );
40
+ }
41
  static::$_actions[] = $this;
42
  }
43
 
73
  }
74
 
75
  protected function _handle( $admin_post ) {
76
+ if ( $this->_handler !== false ) {
77
+ $fn = $this->_handler;
78
+ $fn( $admin_post, $this->_args );
79
+ }
80
  }
81
 
82
  public function handle_post() {
84
  }
85
 
86
  public function handle( $admin_post = false ) {
87
+ $cap = $this->capability();
88
+ if ( ! empty( $cap ) && ! current_user_can( $cap ) ) {
89
  $this->_fail();
90
  }
91
  $fn = $admin_post ? 'check_admin_referer' : 'check_ajax_referer';
92
+ if ( ! $this->_skip_nonce && ! $fn( $this->name(), 'nonce', false ) ) {
93
  $this->_fail();
94
  }
95
  $this->_handle( $admin_post );
96
  }
97
 
98
+ public function handle_nopriv() {
99
+ $cap = $this->capability();
100
+ if ( ! empty( $cap ) && ! current_user_can( $cap ) ) {
101
+ $this->_fail();
102
+ }
103
+ if ( ! $this->_skip_nonce && ! check_ajax_referer( $this->name(), 'nonce', false ) ) {
104
+ $this->_fail();
105
+ }
106
+ $this->_handle( false );
107
+ }
108
+
109
  protected static function _request_var( $name ) {
110
  if ( isset( $_REQUEST[ $name ] ) ) {
111
  return wp_slash( $_REQUEST[ $name ] );
includes/admin/action/check-updates.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace wpautoterms\admin\action;
4
+
5
+ use wpautoterms\Action_Base;
6
+ use wpautoterms\Updated_Posts;
7
+
8
+ class Check_Updates extends Action_Base {
9
+ public $message;
10
+ public $message_multiple;
11
+ public $cookie_prefix;
12
+ public $duration;
13
+
14
+ protected function _handle( $admin_post ) {
15
+ if ( $admin_post ) {
16
+ wp_die( 'Not supported.' );
17
+ }
18
+ $posts = new Updated_Posts( $this->duration, $this->cookie_prefix, $this->message, $this->message_multiple );
19
+ $posts->fetch_posts();
20
+ $ret = array( 'data' => $posts->transform() );
21
+ wp_send_json( $ret );
22
+ }
23
+ }
includes/admin/action/dismiss-notice.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace wpautoterms\admin\action;
4
+
5
+
6
+ use wpautoterms\Action_Base;
7
+ use wpautoterms\admin\Notices;
8
+
9
+ class Dismiss_Notice extends Action_Base {
10
+ const DISMISSED_ACTION_SUFFIX = '_dismissed_admin_notice';
11
+ /**
12
+ * @var Notices
13
+ */
14
+ protected $_notices;
15
+
16
+ public function set_notices( $notices ) {
17
+ $this->_notices = $notices;
18
+ }
19
+
20
+ protected function _handle( $admin_post ) {
21
+ if ( $admin_post ) {
22
+ wp_die( 'Not supported.' );
23
+ }
24
+ if ( isset( $_REQUEST['c'] ) && isset( $_REQUEST['id'] ) ) {
25
+ $class = sanitize_html_class( $_REQUEST['c'] );
26
+ $id = sanitize_key( isset( $_REQUEST['id'] ) );
27
+ $success = true;
28
+ $removed = $this->_notices->delete_persistent( $class, $id );
29
+ do_action( WPAUTOTERMS_SLUG . static::DISMISSED_ACTION_SUFFIX, $class, $id, $removed );
30
+ } else {
31
+ $success = false;
32
+ $removed = false;
33
+ }
34
+ wp_send_json( array( 'success' => $success, 'removed' => $removed ) );
35
+ }
36
+ }
includes/admin/action/recheck-license.php CHANGED
@@ -4,6 +4,7 @@ namespace wpautoterms\admin\action;
4
 
5
 
6
  use wpautoterms\Action_Base;
 
7
  use wpautoterms\api\License;
8
 
9
  class Recheck_License extends Action_Base {
4
 
5
 
6
  use wpautoterms\Action_Base;
7
+ use wpautoterms\admin\Notices;
8
  use wpautoterms\api\License;
9
 
10
  class Recheck_License extends Action_Base {
includes/admin/action/send-message.php CHANGED
@@ -31,9 +31,14 @@ class Send_Message extends Action_Base {
31
  $ext = array_map( function ( $x ) {
32
  return $x . ': ' . phpversion( $x );
33
  }, get_loaded_extensions() );
34
- $plugins = array_map( function ( $x ) {
35
- return $x['Name'] . ': ' . $x['Version'] . ' (' . $x['PluginURI'] . ')';
36
- }, get_plugins() );
 
 
 
 
 
37
 
38
  $prefix = 'Plugin version: ' . WPAUTOTERMS_VERSION . "\nPHP version: " . phpversion();
39
 
@@ -42,7 +47,7 @@ class Send_Message extends Action_Base {
42
  static::SITE_INFO_SHORT => $prefix . "\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version,
43
  static::SITE_INFO_EXTENDED => $prefix . "\nPHP extensions:\n" . join( "\n", $ext ) .
44
  "\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version .
45
- "\nWP plugins:\n" . join( "\n", $plugins ),
46
  );
47
  }
48
 
31
  $ext = array_map( function ( $x ) {
32
  return $x . ': ' . phpversion( $x );
33
  }, get_loaded_extensions() );
34
+ $plugins = get_plugins();
35
+ $plugins = array_map( function ( $k, $x ) {
36
+ if ( ! is_plugin_active( $k ) ) {
37
+ return false;
38
+ }
39
+
40
+ return $x['Name'] . ': ' . $x['Version'] . ' (' . $x['PluginURI'] . ') ';
41
+ }, array_keys( $plugins ), array_values( $plugins ) );
42
 
43
  $prefix = 'Plugin version: ' . WPAUTOTERMS_VERSION . "\nPHP version: " . phpversion();
44
 
47
  static::SITE_INFO_SHORT => $prefix . "\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version,
48
  static::SITE_INFO_EXTENDED => $prefix . "\nPHP extensions:\n" . join( "\n", $ext ) .
49
  "\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version .
50
+ "\nWP plugins:\n" . join( "\n", array_filter( $plugins ) ),
51
  );
52
  }
53
 
includes/admin/admin.php CHANGED
@@ -7,6 +7,8 @@ if ( ! defined( 'ABSPATH' ) ) {
7
  }
8
 
9
  use wpautoterms\Action_Base;
 
 
10
  use wpautoterms\admin\action\Recheck_License;
11
  use wpautoterms\admin\action\Set_Option;
12
  use wpautoterms\admin\form\Legal_Page;
@@ -15,6 +17,7 @@ use wpautoterms\api\Query;
15
  use wpautoterms\Countries;
16
  use wpautoterms\cpt\Admin_Columns;
17
  use wpautoterms\cpt\CPT;
 
18
  use wpautoterms\Upgrade;
19
  use wpautoterms\Wpautoterms;
20
 
@@ -48,61 +51,72 @@ abstract class Admin {
48
  }
49
 
50
  public static function action_init() {
51
- add_action( 'add_meta_boxes', array( __CLASS__, 'add_meta_boxes' ) );
52
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ), 100 );
53
  add_filter( 'post_row_actions', array( __CLASS__, 'row_actions' ), 10, 2 );
54
  add_filter( 'pre_update_option', array( __CLASS__, 'fix_update' ), 10, 3 );
55
- add_filter( 'get_sample_permalink_html', array( __CLASS__, 'remove_permalink' ), 10, 5 );
56
  add_action( 'edit_form_top', array( __CLASS__, 'edit_form_top' ) );
57
  add_filter( 'get_pages', array( __CLASS__, 'update_wp_builtin_pp' ), 10, 2 );
 
 
 
 
 
58
 
59
- Notices::init( WPAUTOTERMS_OPTION_PREFIX . 'notices' );
60
-
61
- $recheck_action = new Recheck_License( CPT::edit_cap(), null, '', null, __( 'Access denied', WPAUTOTERMS_SLUG ) );
62
  $recheck_action->set_license_query( static::$_license );
63
 
64
  // TODO: extract warnings class
65
- static::$_warning_action = new Set_Option( CPT::edit_cap(), null, 'settings_warning_disable' );
66
  static::$_warning_action->set_option_name( 'settings_warning_disable' );
67
 
 
 
 
 
 
 
 
68
  Admin_Columns::init();
69
  Menu::init( static::$_license );
70
  static::$_license->check();
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
73
  public static function update_wp_builtin_pp( $pages, $r ) {
74
- if ( ! isset( $r['name'] ) || ! in_array( $r['name'], array(
75
  'wp_page_for_privacy_policy',
76
  'page_for_privacy_policy',
77
  'woocommerce_terms_page_id'
78
- ) ) ) {
 
 
 
 
 
 
 
 
 
79
  return $pages;
80
  }
81
  $r['post_type'] = CPT::type();
82
  $r['name'] = WPAUTOTERMS_SLUG . '_page_for_privacy_policy';
 
83
  $autoterms_pages = get_pages( $r );
84
 
85
  return array_merge( $pages, $autoterms_pages );
86
  }
87
 
88
- public static function add_meta_boxes() {
89
- global $post;
90
-
91
- if ( empty( $post ) || ( $post->post_type != CPT::type() ) ) {
92
- return;
93
- }
94
-
95
- remove_meta_box( 'slugdiv', $post->post_type, 'normal' );
96
- }
97
-
98
- public static function remove_permalink( $permalink, $post_id, $new_title, $new_slug, $post ) {
99
- if ( $post->post_type != CPT::type() ) {
100
- return $permalink;
101
- }
102
-
103
- return '';
104
- }
105
-
106
  public static function edit_form_top( $post ) {
107
  if ( $post->post_type != CPT::type() ) {
108
  return;
7
  }
8
 
9
  use wpautoterms\Action_Base;
10
+ use wpautoterms\admin\action\Check_Updates;
11
+ use wpautoterms\admin\action\Dismiss_Notice;
12
  use wpautoterms\admin\action\Recheck_License;
13
  use wpautoterms\admin\action\Set_Option;
14
  use wpautoterms\admin\form\Legal_Page;
17
  use wpautoterms\Countries;
18
  use wpautoterms\cpt\Admin_Columns;
19
  use wpautoterms\cpt\CPT;
20
+ use wpautoterms\frontend\notice\Update_Notice;
21
  use wpautoterms\Upgrade;
22
  use wpautoterms\Wpautoterms;
23
 
51
  }
52
 
53
  public static function action_init() {
 
54
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ), 100 );
55
  add_filter( 'post_row_actions', array( __CLASS__, 'row_actions' ), 10, 2 );
56
  add_filter( 'pre_update_option', array( __CLASS__, 'fix_update' ), 10, 3 );
 
57
  add_action( 'edit_form_top', array( __CLASS__, 'edit_form_top' ) );
58
  add_filter( 'get_pages', array( __CLASS__, 'update_wp_builtin_pp' ), 10, 2 );
59
+ add_action( 'activated_plugin', array( __CLASS__, 'on_activated_plugin' ), 10, 2 );
60
+ add_action( WPAUTOTERMS_SLUG . Dismiss_Notice::DISMISSED_ACTION_SUFFIX, array(
61
+ __CLASS__,
62
+ '_on_dismiss_notice'
63
+ ), 10, 3 );
64
 
65
+ $recheck_action = new Recheck_License( CPT::edit_cap(), '', null, null, __( 'Access denied', WPAUTOTERMS_SLUG ) );
 
 
66
  $recheck_action->set_license_query( static::$_license );
67
 
68
  // TODO: extract warnings class
69
+ static::$_warning_action = new Set_Option( CPT::edit_cap(), 'settings_warning_disable' );
70
  static::$_warning_action->set_option_name( 'settings_warning_disable' );
71
 
72
+ $cu = new Check_Updates( '', WPAUTOTERMS_SLUG . Update_Notice::ACTION_NAME, null, null,
73
+ __( 'Updated posts error', WPAUTOTERMS_SLUG ), false, true, true );
74
+ $cu->duration = intval( get_option( WPAUTOTERMS_OPTION_PREFIX . Update_Notice::ID . '_duration' ) );
75
+ $cu->message_multiple = get_option( WPAUTOTERMS_OPTION_PREFIX . Update_Notice::ID . '_message_multiple' );
76
+ $cu->message = get_option( WPAUTOTERMS_OPTION_PREFIX . Update_Notice::ID . '_message' );
77
+ $cu->cookie_prefix = Update_Notice::COOKIE_PREFIX;
78
+
79
  Admin_Columns::init();
80
  Menu::init( static::$_license );
81
  static::$_license->check();
82
  }
83
 
84
+ public static function _on_dismiss_notice( $class, $id, $success ) {
85
+ Options::set_option( Options::CACHE_PLUGINS_SUPPRESS_WARNING, true );
86
+ }
87
+
88
+ public static function on_activated_plugin( $plugin, $network_wide ) {
89
+ Options::set_option( Options::CACHE_PLUGINS_DETECTION, true );
90
+ Options::set_option( Options::CACHE_PLUGINS_DETECTED, false );
91
+ Options::set_option( Options::OB_TOTAL, 0 );
92
+ Options::set_option( Options::OB_NOT_INTERCEPTED, 0 );
93
+ }
94
+
95
  public static function update_wp_builtin_pp( $pages, $r ) {
96
+ $res = isset( $r['name'] ) && in_array( $r['name'], array(
97
  'wp_page_for_privacy_policy',
98
  'page_for_privacy_policy',
99
  'woocommerce_terms_page_id'
100
+ ) );
101
+ if ( ! $res && function_exists( 'wc_get_page_id' ) && isset( $r['exclude'] ) ) {
102
+ $cmp = array(
103
+ wc_get_page_id( 'cart' ),
104
+ wc_get_page_id( 'checkout' ),
105
+ wc_get_page_id( 'myaccount' ),
106
+ );
107
+ $res = $cmp === $r['exclude'];
108
+ }
109
+ if ( ! $res ) {
110
  return $pages;
111
  }
112
  $r['post_type'] = CPT::type();
113
  $r['name'] = WPAUTOTERMS_SLUG . '_page_for_privacy_policy';
114
+ unset( $r['exclude'] );
115
  $autoterms_pages = get_pages( $r );
116
 
117
  return array_merge( $pages, $autoterms_pages );
118
  }
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  public static function edit_form_top( $post ) {
121
  if ( $post->post_type != CPT::type() ) {
122
  return;
includes/admin/form/controls.php CHANGED
@@ -22,7 +22,7 @@ abstract class Controls {
22
 
23
  public static function radio( $control_id, $values ) {
24
  $control_id = esc_attr( $control_id );
25
- \wpautoterms\print_template( 'form/radio', compact( 'control_id', 'label', 'values' ) );
26
  }
27
 
28
  }
22
 
23
  public static function radio( $control_id, $values ) {
24
  $control_id = esc_attr( $control_id );
25
+ \wpautoterms\print_template( 'form/radio', compact( 'control_id', 'values' ) );
26
  }
27
 
28
  }
includes/admin/form/legal-page.php CHANGED
@@ -46,7 +46,7 @@ class Legal_Page {
46
 
47
  protected function _wizard_text() {
48
  return \wpautoterms\print_template( WPAUTOTERMS_LEGAL_PAGES_DIR . 'admin/' . $this->id(),
49
- array(), true );
50
  }
51
 
52
  public function wizard() {
46
 
47
  protected function _wizard_text() {
48
  return \wpautoterms\print_template( WPAUTOTERMS_LEGAL_PAGES_DIR . 'admin/' . $this->id(),
49
+ array(), true ) . \wpautoterms\print_template( WPAUTOTERMS_LEGAL_PAGES_DIR . 'common', array(), true );
50
  }
51
 
52
  public function wizard() {
includes/admin/menu.php CHANGED
@@ -9,7 +9,7 @@ use wpautoterms\admin\page\Compliancekits;
9
  use wpautoterms\admin\page\Legacy_Settings;
10
  use wpautoterms\admin\page\License_Settings;
11
  use wpautoterms\admin\page\Settings_Page;
12
- use wpautoterms\admin\page;
13
  use wpautoterms\api;
14
  use wpautoterms\cpt\CPT;
15
 
@@ -23,6 +23,7 @@ abstract class Menu {
23
 
24
  const PAGE_HELP = 'help';
25
  const PAGE_SETTINGS = 'settings';
 
26
  const PAGE_COMPLIANCE_KITS = 'compliancekits';
27
  const PAGE_LICENSE_SETTINGS = 'license_settings';
28
  const PAGE_LEGACY_SETTINGS = 'legacy_settings';
@@ -58,15 +59,17 @@ abstract class Menu {
58
  __( 'License', WPAUTOTERMS_SLUG ) );
59
  $ls->set_license( $license );
60
  $contact = new page\Help( static::PAGE_HELP, __( 'Help', WPAUTOTERMS_SLUG ) );
61
- $sm = new Send_Message( CPT::edit_cap(), null, $contact->id(), null,
62
  __( 'Access denied', WPAUTOTERMS_SLUG ), true );
63
  $contact->action = $sm;
64
- $sp = new Settings_Page( static::PAGE_SETTINGS, __( 'Settings', WPAUTOTERMS_SLUG ) );
 
65
  $sp->set_license( $license );
66
 
67
  static::$pages = array(
68
  new Compliancekits( static::PAGE_COMPLIANCE_KITS, __( 'Compliance Kits', WPAUTOTERMS_SLUG ), $license ),
69
  $sp,
 
70
  $ls,
71
  new Legacy_Settings( static::PAGE_LEGACY_SETTINGS, __( 'Legacy Auto TOS & PP', WPAUTOTERMS_SLUG ) ),
72
  $contact,
9
  use wpautoterms\admin\page\Legacy_Settings;
10
  use wpautoterms\admin\page\License_Settings;
11
  use wpautoterms\admin\page\Settings_Page;
12
+ use wpautoterms\admin\page\Settings_Page_Advanced;
13
  use wpautoterms\api;
14
  use wpautoterms\cpt\CPT;
15
 
23
 
24
  const PAGE_HELP = 'help';
25
  const PAGE_SETTINGS = 'settings';
26
+ const PAGE_SETTINGS_ADVANCED = 'settings_advanced';
27
  const PAGE_COMPLIANCE_KITS = 'compliancekits';
28
  const PAGE_LICENSE_SETTINGS = 'license_settings';
29
  const PAGE_LEGACY_SETTINGS = 'legacy_settings';
59
  __( 'License', WPAUTOTERMS_SLUG ) );
60
  $ls->set_license( $license );
61
  $contact = new page\Help( static::PAGE_HELP, __( 'Help', WPAUTOTERMS_SLUG ) );
62
+ $sm = new Send_Message( CPT::edit_cap(), $contact->id(), null, null,
63
  __( 'Access denied', WPAUTOTERMS_SLUG ), true );
64
  $contact->action = $sm;
65
+ $sp = new Settings_Page( static::PAGE_SETTINGS, __( 'General Settings', WPAUTOTERMS_SLUG ),
66
+ __( 'Settings', WPAUTOTERMS_SLUG ) );
67
  $sp->set_license( $license );
68
 
69
  static::$pages = array(
70
  new Compliancekits( static::PAGE_COMPLIANCE_KITS, __( 'Compliance Kits', WPAUTOTERMS_SLUG ), $license ),
71
  $sp,
72
+ new Settings_Page_Advanced( static::PAGE_SETTINGS_ADVANCED, __( 'Advanced Settings', WPAUTOTERMS_SLUG ) ),
73
  $ls,
74
  new Legacy_Settings( static::PAGE_LEGACY_SETTINGS, __( 'Legacy Auto TOS & PP', WPAUTOTERMS_SLUG ) ),
75
  $contact,
includes/admin/notices.php CHANGED
@@ -2,49 +2,117 @@
2
 
3
  namespace wpautoterms\admin;
4
 
 
 
 
5
  class Notices {
6
  const CLASS_ERROR = 'error';
7
  const CLASS_UPDATED = 'updated';
 
8
 
9
  const TRANSIENT_EXPIRE = 90;
10
 
11
- protected static $_transient_name;
12
- protected static $_transient_expire;
 
 
 
 
 
 
 
 
 
13
 
14
- public static function init( $transient_name, $transient_expire = false ) {
15
- static::$_transient_name = $transient_name;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  if ( $transient_expire === false ) {
17
- static::$_transient_expire = static::TRANSIENT_EXPIRE;
18
  }
19
- add_action( 'admin_notices', array( __CLASS__, 'show' ) );
 
 
20
  }
21
 
22
- public static function add( $message, $class = false ) {
 
 
 
 
 
 
23
  if ( $class === false ) {
24
  $class = static::CLASS_UPDATED;
25
  }
26
- $notices = maybe_unserialize( get_transient( static::$_transient_name ) );
 
27
  if ( $notices === false ) {
28
  $notices = array();
29
  }
30
  if ( ! isset( $notices[ $class ] ) ) {
31
  $notices[ $class ] = array();
32
  }
33
- $notices[ $class ][] = $message;
34
- set_transient( static::$_transient_name, $notices, static::$_transient_expire );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
- public static function show() {
38
- $notices = maybe_unserialize( get_transient( static::$_transient_name ) );
39
- if ( is_array( $notices ) ) {
40
- foreach ( $notices as $class => $messages ) {
41
- foreach ( $messages as $message ) {
42
- // TODO: with template
43
- ?>
44
- <div class="<?php echo esc_attr( $class ); ?>"><p><?php echo $message; ?></p></div><?php
45
- }
46
  }
47
  }
48
- delete_transient( static::$_transient_name );
 
 
 
 
 
 
 
 
49
  }
50
  }
2
 
3
  namespace wpautoterms\admin;
4
 
5
+ use wpautoterms\admin\action\Dismiss_Notice;
6
+ use wpautoterms\cpt\CPT;
7
+
8
  class Notices {
9
  const CLASS_ERROR = 'error';
10
  const CLASS_UPDATED = 'updated';
11
+ const CLASS_INFO = 'notice-info';
12
 
13
  const TRANSIENT_EXPIRE = 90;
14
 
15
+ const PERSISTENT_SUFFIX = '_persistent';
16
+ const ACTION_SUFFIX = '_action';
17
+
18
+ protected $_transient_name;
19
+ protected $_transient_expire;
20
+ protected $_persistent_name;
21
+ protected $_action_name;
22
+ /**
23
+ * @var Dismiss_Notice
24
+ */
25
+ protected $_action;
26
 
27
+ /**
28
+ * @var Notices
29
+ */
30
+ public static $instance;
31
+
32
+ /**
33
+ * @param string $transient_name
34
+ * @param string|false $persistent_name
35
+ * @param string|false $action_name
36
+ * @param int|false $transient_expire
37
+ */
38
+ public function __construct( $transient_name, $persistent_name = false, $action_name = false, $transient_expire = false ) {
39
+ $this->_transient_name = $transient_name;
40
+ if ( $persistent_name === false ) {
41
+ $this->_persistent_name = $this->_transient_name . static::PERSISTENT_SUFFIX;
42
+ } else {
43
+ $this->_persistent_name = $persistent_name;
44
+ }
45
+ if ( $action_name === false ) {
46
+ $this->_action_name = $this->_transient_name . static::ACTION_SUFFIX;
47
+ } else {
48
+ $this->_action_name = $action_name;
49
+ }
50
  if ( $transient_expire === false ) {
51
+ $this->_transient_expire = static::TRANSIENT_EXPIRE;
52
  }
53
+ add_action( 'admin_notices', array( $this, 'show' ) );
54
+ $this->_action = new Dismiss_Notice( CPT::edit_cap(), $this->_action_name );
55
+ $this->_action->set_notices( $this );
56
  }
57
 
58
+ /**
59
+ * @param string $message
60
+ * @param string|false $class
61
+ * @param bool $persistent
62
+ * @param string|false $id
63
+ */
64
+ public function add( $message, $class = false, $persistent = false, $id = false ) {
65
  if ( $class === false ) {
66
  $class = static::CLASS_UPDATED;
67
  }
68
+ $name = $persistent ? $this->_persistent_name : $this->_transient_name;
69
+ $notices = maybe_unserialize( get_transient( $name ) );
70
  if ( $notices === false ) {
71
  $notices = array();
72
  }
73
  if ( ! isset( $notices[ $class ] ) ) {
74
  $notices[ $class ] = array();
75
  }
76
+ if ( $id === false ) {
77
+ $notices[ $class ][] = $message;
78
+ } else {
79
+ $notices[ $class ][ $id ] = $message;
80
+ }
81
+ set_transient( $name, $notices, $persistent ? 0 : $this->_transient_expire );
82
+ }
83
+
84
+ public function delete_persistent( $class, $id ) {
85
+ $notices = maybe_unserialize( get_transient( $this->_persistent_name ) );
86
+ if ( $notices === false ) {
87
+ return false;
88
+ }
89
+ if ( ! isset( $notices[ $class ] ) || ! isset( $notices[ $class ][ $id ] ) ) {
90
+ return false;
91
+ }
92
+ unset( $notices[ $class ][ $id ] );
93
+ set_transient( $this->_persistent_name, $notices, 0 );
94
+
95
+ return true;
96
  }
97
 
98
+ protected function _show_section( $notices, $template ) {
99
+ if ( ! is_array( $notices ) ) {
100
+ return;
101
+ }
102
+ $action = $this->_action;
103
+ foreach ( $notices as $class => $messages ) {
104
+ foreach ( $messages as $id => $message ) {
105
+ \wpautoterms\print_template( $template, compact( 'id', 'message', 'action', 'class' ) );
 
106
  }
107
  }
108
+ }
109
+
110
+ public function show() {
111
+ $notices = maybe_unserialize( get_transient( $this->_transient_name ) );
112
+ $this->_show_section( $notices, 'admin-notice/regular' );
113
+ delete_transient( $this->_transient_name );
114
+
115
+ $notices = maybe_unserialize( get_transient( $this->_persistent_name ) );
116
+ $this->_show_section( $notices, 'admin-notice/dismissible' );
117
  }
118
  }
includes/admin/options.php CHANGED
@@ -10,6 +10,13 @@ class Options {
10
  const STATE = 'state';
11
  const LEGAL_PAGES_SLUG = 'legal_pages_slug';
12
  const SHOW_IN_PAGES_WIDGET = 'show_in_pages_widget';
 
 
 
 
 
 
 
13
  protected static $_defaults;
14
 
15
  public static function all_options() {
@@ -20,7 +27,7 @@ class Options {
20
  static::COUNTRY,
21
  static::STATE,
22
  static::LEGAL_PAGES_SLUG,
23
- static::SHOW_IN_PAGES_WIDGET
24
  );
25
  }
26
 
@@ -34,7 +41,14 @@ class Options {
34
  Options::COUNTRY => '',
35
  Options::STATE => '',
36
  Options::LEGAL_PAGES_SLUG => 'wpautoterms',
37
- Options::SHOW_IN_PAGES_WIDGET => false
 
 
 
 
 
 
 
38
  );
39
  }
40
 
10
  const STATE = 'state';
11
  const LEGAL_PAGES_SLUG = 'legal_pages_slug';
12
  const SHOW_IN_PAGES_WIDGET = 'show_in_pages_widget';
13
+ const CACHE_PLUGINS_COMPAT = 'cache_plugins_compat';
14
+ const OB_NOT_INTERCEPTED = 'ob_not_intercepted';
15
+ const OB_TOTAL = 'ob_total';
16
+ const CACHE_PLUGINS_DETECTED = 'cache_plugins_detected';
17
+ const CACHE_PLUGINS_DETECTION = 'cache_plugins_detection';
18
+ const CACHE_PLUGINS_SUPPRESS_WARNING = 'cache_plugins_suppress_warning';
19
+ const LINKS_ORDER = 'links_order';
20
  protected static $_defaults;
21
 
22
  public static function all_options() {
27
  static::COUNTRY,
28
  static::STATE,
29
  static::LEGAL_PAGES_SLUG,
30
+ static::SHOW_IN_PAGES_WIDGET,
31
  );
32
  }
33
 
41
  Options::COUNTRY => '',
42
  Options::STATE => '',
43
  Options::LEGAL_PAGES_SLUG => 'wpautoterms',
44
+ Options::SHOW_IN_PAGES_WIDGET => false,
45
+ Options::CACHE_PLUGINS_COMPAT => false,
46
+ Options::OB_NOT_INTERCEPTED => 0,
47
+ Options::OB_TOTAL => 0,
48
+ Options::CACHE_PLUGINS_DETECTION => true,
49
+ Options::CACHE_PLUGINS_DETECTED => false,
50
+ Options::CACHE_PLUGINS_SUPPRESS_WARNING => false,
51
+ Options::LINKS_ORDER => '',
52
  );
53
  }
54
 
includes/admin/page/settings-page-advanced.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace wpautoterms\admin\page;
4
+
5
+ use wpautoterms\admin\Notices;
6
+ use wpautoterms\admin\Options;
7
+ use wpautoterms\cpt\CPT;
8
+ use wpautoterms\Frontend;
9
+ use wpautoterms\option\Checkbox_Option;
10
+
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit;
13
+ }
14
+
15
+ class Settings_Page_Advanced extends Settings_Base {
16
+ public function define_options() {
17
+ parent::define_options();
18
+ $cache_reminder = __( 'Clean/delete cache after enabling or disabling this option.', WPAUTOTERMS_SLUG );
19
+ $s = array(
20
+ __( 'Enable this option only if you experience problems with the notification banners. Most popular caching plugins should handle the notification banners properly with this option disabled.',
21
+ WPAUTOTERMS_SLUG )
22
+ );
23
+ if ( Options::get_option( Options::CACHE_PLUGINS_DETECTED ) ) {
24
+ $s[] = __( '<strong>Unsupported caching plugins detected. We recommend enabling this option.</strong>' );
25
+ }
26
+ $s[] = $cache_reminder;
27
+ if ( count( $s ) == 2 ) {
28
+ $cache_hint_format = _x( '%s<br/>%s', 'Cache hint format', WPAUTOTERMS_SLUG );
29
+ } else {
30
+ $cache_hint_format = _x( '%s<br/>%s<br/>%s', 'Cache hint format', WPAUTOTERMS_SLUG );
31
+ }
32
+ array_unshift( $s, $cache_hint_format );
33
+ $compat_hint = call_user_func_array( 'sprintf', $s );
34
+ new Checkbox_Option( Options::CACHE_PLUGINS_COMPAT, __( 'Caching plugins compatibility mode', WPAUTOTERMS_SLUG ),
35
+ $compat_hint, $this->id(), static::SECTION_ID );
36
+ }
37
+
38
+ public function render() {
39
+ parent::render();
40
+ Notices::$instance->delete_persistent( Notices::CLASS_ERROR, Frontend::CACHE_PLUGIN_NOTICE_ID );
41
+ if ( Options::get_option( Options::CACHE_PLUGINS_COMPAT ) ) {
42
+ Options::set_option( Options::CACHE_PLUGINS_DETECTION, false );
43
+ }
44
+ }
45
+
46
+ public function defaults() {
47
+ return array_reduce( array(
48
+ Options::CACHE_PLUGINS_COMPAT
49
+ ), function ( $acc, $x ) {
50
+ $acc[ $x ] = Options::default_value( $x );
51
+
52
+ return $acc;
53
+ }, array() );
54
+ }
55
+
56
+ public function register_menu() {
57
+ add_submenu_page( false,
58
+ $this->title(),
59
+ false,
60
+ CPT::edit_cap(),
61
+ $this->id(),
62
+ array( $this, 'render' )
63
+ );
64
+ }
65
+ }
includes/admin/page/settings-page.php CHANGED
@@ -16,6 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  }
17
 
18
  class Settings_Page extends Settings_Base {
 
19
  const SHORTCODE_OPTION_TEMPLATE = 'shortcode-entry-option';
20
  const SHORTCODE_SELECT_TEMPLATE = 'shortcode-select-option';
21
  /**
@@ -86,6 +87,7 @@ class Settings_Page extends Settings_Base {
86
  $tooltip,
87
  $this->id(), static::SECTION_ID, false, $attrs );
88
  $slug->set_fallback( array( $this, 'slug_fail' ) );
 
89
  new Checkbox_Option( Options::SHOW_IN_PAGES_WIDGET, __( 'Show legal pages in Pages Widget', WPAUTOTERMS_SLUG ),
90
  '', $this->id(), static::SECTION_ID );
91
  }
@@ -105,11 +107,13 @@ class Settings_Page extends Settings_Base {
105
  if ( $this->_license->status() === License::STATUS_FREE ) {
106
  $dv = Options::default_value( Options::LEGAL_PAGES_SLUG );
107
  if ( $value !== $dv ) {
108
- Notices::add( __( 'Using free license, set pages slug to default.', WPAUTOTERMS_SLUG ), Notices::CLASS_ERROR );
 
109
  $value = $dv;
110
  }
111
  } elseif ( $wp_rewrite->using_permalinks() ) {
112
- Notices::add( sprintf( __( 'Invalid slug value, set to %s.', WPAUTOTERMS_SLUG ), $value ), Notices::CLASS_ERROR );
 
113
  }
114
 
115
  return $value;
16
  }
17
 
18
  class Settings_Page extends Settings_Base {
19
+
20
  const SHORTCODE_OPTION_TEMPLATE = 'shortcode-entry-option';
21
  const SHORTCODE_SELECT_TEMPLATE = 'shortcode-select-option';
22
  /**
87
  $tooltip,
88
  $this->id(), static::SECTION_ID, false, $attrs );
89
  $slug->set_fallback( array( $this, 'slug_fail' ) );
90
+
91
  new Checkbox_Option( Options::SHOW_IN_PAGES_WIDGET, __( 'Show legal pages in Pages Widget', WPAUTOTERMS_SLUG ),
92
  '', $this->id(), static::SECTION_ID );
93
  }
107
  if ( $this->_license->status() === License::STATUS_FREE ) {
108
  $dv = Options::default_value( Options::LEGAL_PAGES_SLUG );
109
  if ( $value !== $dv ) {
110
+ Notices::$instance->add( __( 'Using free license, set pages slug to default.', WPAUTOTERMS_SLUG ),
111
+ Notices::CLASS_ERROR );
112
  $value = $dv;
113
  }
114
  } elseif ( $wp_rewrite->using_permalinks() ) {
115
+ Notices::$instance->add( sprintf( __( 'Invalid slug value, set to %s.', WPAUTOTERMS_SLUG ), $value ),
116
+ Notices::CLASS_ERROR );
117
  }
118
 
119
  return $value;
includes/admin/review-banner.php CHANGED
@@ -18,7 +18,7 @@ class Review_Banner {
18
  return;
19
  }
20
  add_action( 'admin_notices', array( $this, 'print_notice' ) );
21
- $this->action = new Set_Option( CPT::edit_cap(), null, static::ACTION_ID );
22
  $this->action->set_option_name( static::ACTION_ID );
23
  }
24
 
18
  return;
19
  }
20
  add_action( 'admin_notices', array( $this, 'print_notice' ) );
21
+ $this->action = new Set_Option( CPT::edit_cap(), static::ACTION_ID );
22
  $this->action->set_option_name( static::ACTION_ID );
23
  }
24
 
includes/box/box.php CHANGED
@@ -6,6 +6,7 @@ use wpautoterms\admin\action\Toggle_Action;
6
  use wpautoterms\admin\page;
7
  use wpautoterms\cpt\CPT;
8
  use wpautoterms\Frontend;
 
9
  use wpautoterms\option\Text_Option;
10
 
11
  if ( ! defined( 'ABSPATH' ) ) {
@@ -20,7 +21,7 @@ abstract class Box {
20
 
21
  public function __construct( $id, $title, $infotip ) {
22
  $this->_id = $id;
23
- $this->_action = new Toggle_Action( CPT::edit_cap(), null, $this->enable_action_id() );
24
  $this->_action->set_option_name( $this->_enabled_option() );
25
  $this->_title = $title;
26
  $this->_infotip = $infotip;
@@ -81,10 +82,10 @@ abstract class Box {
81
 
82
  protected static function _container_classes() {
83
  return array(
84
- '#' . Frontend::container_id( Frontend::CONTAINER_LOCATION_TOP, Frontend::CONTAINER_TYPE_STATIC ),
85
- '#' . Frontend::container_id( Frontend::CONTAINER_LOCATION_TOP, Frontend::CONTAINER_TYPE_FIXED ),
86
- '#' . Frontend::container_id( Frontend::CONTAINER_LOCATION_BOTTOM, Frontend::CONTAINER_TYPE_STATIC ),
87
- '#' . Frontend::container_id( Frontend::CONTAINER_LOCATION_BOTTOM, Frontend::CONTAINER_TYPE_FIXED )
88
  );
89
  }
90
 
@@ -139,4 +140,11 @@ abstract class Box {
139
 
140
  wp_enqueue_script( WPAUTOTERMS_SLUG . '_css_hint', WPAUTOTERMS_PLUGIN_URL . 'js/css-hints.js', false, false, true );
141
  }
 
 
 
 
 
 
 
142
  }
6
  use wpautoterms\admin\page;
7
  use wpautoterms\cpt\CPT;
8
  use wpautoterms\Frontend;
9
+ use wpautoterms\frontend\Container_Constants;
10
  use wpautoterms\option\Text_Option;
11
 
12
  if ( ! defined( 'ABSPATH' ) ) {
21
 
22
  public function __construct( $id, $title, $infotip ) {
23
  $this->_id = $id;
24
+ $this->_action = new Toggle_Action( CPT::edit_cap(), $this->enable_action_id() );
25
  $this->_action->set_option_name( $this->_enabled_option() );
26
  $this->_title = $title;
27
  $this->_infotip = $infotip;
82
 
83
  protected static function _container_classes() {
84
  return array(
85
+ '#' . Frontend::container_id( Container_Constants::LOCATION_TOP, Container_Constants::TYPE_STATIC ),
86
+ '#' . Frontend::container_id( Container_Constants::LOCATION_TOP, Container_Constants::TYPE_FIXED ),
87
+ '#' . Frontend::container_id( Container_Constants::LOCATION_BOTTOM, Container_Constants::TYPE_STATIC ),
88
+ '#' . Frontend::container_id( Container_Constants::LOCATION_BOTTOM, Container_Constants::TYPE_FIXED )
89
  );
90
  }
91
 
140
 
141
  wp_enqueue_script( WPAUTOTERMS_SLUG . '_css_hint', WPAUTOTERMS_PLUGIN_URL . 'js/css-hints.js', false, false, true );
142
  }
143
+
144
+ public function _render_revert_message($option) {
145
+ \wpautoterms\print_template( 'options/revert-message', array(
146
+ 'option' => $option,
147
+ 'box' => $this
148
+ ) );
149
+ }
150
  }
includes/box/cookies-notice-box.php CHANGED
@@ -4,6 +4,7 @@ namespace wpautoterms\box;
4
 
5
  use wpautoterms\admin\Menu;
6
  use wpautoterms\cpt\CPT;
 
7
  use wpautoterms\frontend\notice\Cookies_Notice;
8
  use wpautoterms\option;
9
 
@@ -57,14 +58,14 @@ class Cookies_Notice_Box extends Licensed_Box {
57
  $a = new option\Choices_Option( $this->id() . '_bar_position', __( 'Announcement bar position', WPAUTOTERMS_SLUG ),
58
  '', $page_id, $section_id );
59
  $a->set_values( array(
60
- 'top' => __( 'top', WPAUTOTERMS_SLUG ),
61
- 'bottom' => __( 'bottom', WPAUTOTERMS_SLUG ),
62
  ) );
63
  $a = new option\Choices_Option( $this->id() . '_bar_type', __( 'Announcement bar type', WPAUTOTERMS_SLUG ),
64
  '', $page_id, $section_id );
65
  $a->set_values( array(
66
- 'static' => __( 'static', WPAUTOTERMS_SLUG ),
67
- 'fixed' => __( 'fixed', WPAUTOTERMS_SLUG ),
68
  ) );
69
  /*
70
  new option\Choices_Combo_Option($this->id().'_offset', __( 'Announcement bar offset', WPAUTOTERMS_SLUG ),
@@ -89,11 +90,12 @@ class Cookies_Notice_Box extends Licensed_Box {
89
  'media_buttons' => false,
90
  'editor_height' => 150,
91
  'filters' => array(
92
- 'mce_buttons' => array( $this, 'limited_buttons' ),
93
- 'mce_buttons_2' => array( $this, 'empty_buttons' ),
94
- 'mce_buttons_3' => array( $this, 'empty_buttons' ),
95
- 'mce_buttons_4' => array( $this, 'empty_buttons' ),
96
- 'wpautoterms_post_editor' => array( $this, 'shortcodes' ),
 
97
  ),
98
  'tinymce' => array(
99
  'resize' => false,
@@ -115,8 +117,8 @@ class Cookies_Notice_Box extends Licensed_Box {
115
  $ret = parent::defaults();
116
 
117
  return array_merge( $ret, array(
118
- $this->id() . '_bar_position' => 'top',
119
- $this->id() . '_bar_type' => 'static',
120
  $this->id() . '_disable_logged' => 'yes',
121
  $this->id() . '_message' => __( 'We use cookies to ensure that we give you the best experience on our website', WPAUTOTERMS_SLUG ),
122
  $this->id() . '_close_message' => __( 'Close', WPAUTOTERMS_SLUG ),
4
 
5
  use wpautoterms\admin\Menu;
6
  use wpautoterms\cpt\CPT;
7
+ use wpautoterms\frontend\Container_Constants;
8
  use wpautoterms\frontend\notice\Cookies_Notice;
9
  use wpautoterms\option;
10
 
58
  $a = new option\Choices_Option( $this->id() . '_bar_position', __( 'Announcement bar position', WPAUTOTERMS_SLUG ),
59
  '', $page_id, $section_id );
60
  $a->set_values( array(
61
+ Container_Constants::LOCATION_TOP => __( 'top', WPAUTOTERMS_SLUG ),
62
+ Container_Constants::LOCATION_BOTTOM => __( 'bottom', WPAUTOTERMS_SLUG ),
63
  ) );
64
  $a = new option\Choices_Option( $this->id() . '_bar_type', __( 'Announcement bar type', WPAUTOTERMS_SLUG ),
65
  '', $page_id, $section_id );
66
  $a->set_values( array(
67
+ Container_Constants::TYPE_STATIC => __( 'static', WPAUTOTERMS_SLUG ),
68
+ Container_Constants::TYPE_FIXED => __( 'fixed', WPAUTOTERMS_SLUG ),
69
  ) );
70
  /*
71
  new option\Choices_Combo_Option($this->id().'_offset', __( 'Announcement bar offset', WPAUTOTERMS_SLUG ),
90
  'media_buttons' => false,
91
  'editor_height' => 150,
92
  'filters' => array(
93
+ array( 'mce_buttons', array( $this, 'limited_buttons' ) ),
94
+ array( 'mce_buttons_2', array( $this, 'empty_buttons' ) ),
95
+ array( 'mce_buttons_3', array( $this, 'empty_buttons' ) ),
96
+ array( 'mce_buttons_4', array( $this, 'empty_buttons' ) ),
97
+ array( 'wpautoterms_post_editor', array( $this, 'shortcodes' ) ),
98
+ array( 'wpautoterms_post_editor', array( $this, '_render_revert_message' ) ),
99
  ),
100
  'tinymce' => array(
101
  'resize' => false,
117
  $ret = parent::defaults();
118
 
119
  return array_merge( $ret, array(
120
+ $this->id() . '_bar_position' => Container_Constants::LOCATION_TOP,
121
+ $this->id() . '_bar_type' => Container_Constants::TYPE_STATIC,
122
  $this->id() . '_disable_logged' => 'yes',
123
  $this->id() . '_message' => __( 'We use cookies to ensure that we give you the best experience on our website', WPAUTOTERMS_SLUG ),
124
  $this->id() . '_close_message' => __( 'Close', WPAUTOTERMS_SLUG ),
includes/box/endorsements-box.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace wpautoterms\box;
4
 
5
  use wpautoterms\admin\Menu;
 
6
  use wpautoterms\frontend\Endorsements;
7
  use wpautoterms\option;
8
 
@@ -50,11 +51,12 @@ class Endorsements_Box extends Licensed_Box {
50
  'media_buttons' => false,
51
  'editor_height' => 150,
52
  'filters' => array(
53
- 'mce_buttons' => array( $this, 'limited_buttons' ),
54
- 'mce_buttons_2' => array( $this, 'empty_buttons' ),
55
- 'mce_buttons_3' => array( $this, 'empty_buttons' ),
56
- 'mce_buttons_4' => array( $this, 'empty_buttons' ),
57
- 'wpautoterms_post_editor' => array( $this, 'shortcodes' ),
 
58
  ),
59
  'tinymce' => array(
60
  'resize' => false,
@@ -73,7 +75,7 @@ class Endorsements_Box extends Licensed_Box {
73
  '', $page_id, $section_id );
74
  $a->set_values( array(
75
  ' ' => __( 'at the top of the post (before post content)', WPAUTOTERMS_SLUG ),
76
- 'bottom' => __( 'at the bottom of the post (after post content)', WPAUTOTERMS_SLUG ),
77
  ) );
78
 
79
  new option\Color_Option( $this->id() . '_bg_color', __( 'Background color', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
3
  namespace wpautoterms\box;
4
 
5
  use wpautoterms\admin\Menu;
6
+ use wpautoterms\frontend\Container_Constants;
7
  use wpautoterms\frontend\Endorsements;
8
  use wpautoterms\option;
9
 
51
  'media_buttons' => false,
52
  'editor_height' => 150,
53
  'filters' => array(
54
+ array( 'mce_buttons', array( $this, 'limited_buttons' ) ),
55
+ array( 'mce_buttons_2', array( $this, 'empty_buttons' ) ),
56
+ array( 'mce_buttons_3', array( $this, 'empty_buttons' ) ),
57
+ array( 'mce_buttons_4', array( $this, 'empty_buttons' ) ),
58
+ array( 'wpautoterms_post_editor', array( $this, 'shortcodes' ) ),
59
+ array( 'wpautoterms_post_editor', array( $this, '_render_revert_message' ) ),
60
  ),
61
  'tinymce' => array(
62
  'resize' => false,
75
  '', $page_id, $section_id );
76
  $a->set_values( array(
77
  ' ' => __( 'at the top of the post (before post content)', WPAUTOTERMS_SLUG ),
78
+ Container_Constants::LOCATION_BOTTOM => __( 'at the bottom of the post (after post content)', WPAUTOTERMS_SLUG ),
79
  ) );
80
 
81
  new option\Color_Option( $this->id() . '_bg_color', __( 'Background color', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
includes/box/links-box.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace wpautoterms\box;
4
 
5
  use wpautoterms\admin\Menu;
 
6
  use wpautoterms\frontend\Links;
7
  use wpautoterms\option;
8
 
@@ -12,6 +13,10 @@ if ( ! defined( 'ABSPATH' ) ) {
12
 
13
  class Links_Box extends Box {
14
 
 
 
 
 
15
  public function define_options( $page_id, $section_id ) {
16
  new option\Checkbox_Option( $this->id(), __( 'Enabled', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
17
  new option\Color_Option( $this->id() . '_bg_color', __( 'Background color', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
@@ -33,9 +38,19 @@ class Links_Box extends Box {
33
  $page_id, $section_id );
34
  new option\Checkbox_Option( $this->id() . '_target_blank', __( 'Links to open in a new page', WPAUTOTERMS_SLUG ),
35
  '', $page_id, $section_id );
 
 
36
  $this->_custom_css_options( $page_id, $section_id );
37
  }
38
 
 
 
 
 
 
 
 
 
39
  public function defaults() {
40
  return array(
41
  $this->id() => true,
@@ -52,9 +67,26 @@ class Links_Box extends Box {
52
 
53
  protected function _class_hints() {
54
  return array(
55
- __( 'Links bar class:', WPAUTOTERMS_SLUG ) => '.'.Links::FOOTER_CLASS,
56
- __( 'Separator class:', WPAUTOTERMS_SLUG ) => '.'.Links::FOOTER_CLASS . ' .' . Links::SEPARATOR_CLASS,
57
- __( 'Link class:', WPAUTOTERMS_SLUG ) => '.'.Links::FOOTER_CLASS . ' a',
58
  );
59
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  }
3
  namespace wpautoterms\box;
4
 
5
  use wpautoterms\admin\Menu;
6
+ use wpautoterms\admin\Options;
7
  use wpautoterms\frontend\Links;
8
  use wpautoterms\option;
9
 
13
 
14
  class Links_Box extends Box {
15
 
16
+ public function __construct( $id, $title, $infotip ) {
17
+ parent::__construct( $id, $title, $infotip );
18
+ }
19
+
20
  public function define_options( $page_id, $section_id ) {
21
  new option\Checkbox_Option( $this->id(), __( 'Enabled', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
22
  new option\Color_Option( $this->id() . '_bg_color', __( 'Background color', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
38
  $page_id, $section_id );
39
  new option\Checkbox_Option( $this->id() . '_target_blank', __( 'Links to open in a new page', WPAUTOTERMS_SLUG ),
40
  '', $page_id, $section_id );
41
+ $so = new option\Hidden_Option( Options::LINKS_ORDER, '', '', $page_id, $section_id );
42
+ $so->custom_sanitize = array( $this, '_sanitize_sorting' );
43
  $this->_custom_css_options( $page_id, $section_id );
44
  }
45
 
46
+ public function _sanitize_sorting( $input ) {
47
+ $input = explode( ',', $input );
48
+ $input = array_map( 'trim', $input );
49
+ $input = array_filter( $input, 'is_numeric' );
50
+
51
+ return join( ',', $input );
52
+ }
53
+
54
  public function defaults() {
55
  return array(
56
  $this->id() => true,
67
 
68
  protected function _class_hints() {
69
  return array(
70
+ __( 'Links bar class:', WPAUTOTERMS_SLUG ) => '.' . Links::FOOTER_CLASS,
71
+ __( 'Separator class:', WPAUTOTERMS_SLUG ) => '.' . Links::FOOTER_CLASS . ' .' . Links::SEPARATOR_CLASS,
72
+ __( 'Link class:', WPAUTOTERMS_SLUG ) => '.' . Links::FOOTER_CLASS . ' a',
73
  );
74
  }
75
+
76
+ public function enqueue_scripts() {
77
+ parent::enqueue_scripts();
78
+ wp_enqueue_script( 'jquery-ui-sortable' );
79
+ wp_enqueue_script( WPAUTOTERMS_SLUG . '_links_box_page', WPAUTOTERMS_PLUGIN_URL . 'js/links-box-page.js',
80
+ false, false, true );
81
+ }
82
+
83
+ protected function _page_args( \wpautoterms\admin\page\Base $page ) {
84
+ $args = parent::_page_args( $page );
85
+ $args['after_section'] = \wpautoterms\print_template( 'options/links-reorder',
86
+ array(
87
+ 'posts' => Links::link_posts(),
88
+ ), true );
89
+
90
+ return $args;
91
+ }
92
  }
includes/box/update-notice-box.php CHANGED
@@ -4,6 +4,7 @@ namespace wpautoterms\box;
4
 
5
  use wpautoterms\admin\Menu;
6
  use wpautoterms\cpt\CPT;
 
7
  use wpautoterms\frontend\notice\Update_Notice;
8
  use wpautoterms\option;
9
 
@@ -55,22 +56,17 @@ class Update_Notice_Box extends Box {
55
  function define_options( $page_id, $section_id ) {
56
  new option\Checkbox_Option( $this->id(), __( 'Enabled', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
57
 
58
- if ( current_user_can( CPT::edit_cap() ) ) {
59
- // new option\Checkbox_Option( $this->id() . '_test_mode', __( 'Test mode', WPAUTOTERMS_SLUG ),
60
- // __( 'Show sample box to admin', WPAUTOTERMS_SLUG ), $page_id, $section_id );
61
- }
62
-
63
  $a = new option\Choices_Option( $this->id() . '_bar_position', __( 'Announcement bar position', WPAUTOTERMS_SLUG ),
64
  '', $page_id, $section_id );
65
  $a->set_values( array(
66
- 'top' => __( 'top', WPAUTOTERMS_SLUG ),
67
- 'bottom' => __( 'bottom', WPAUTOTERMS_SLUG ),
68
  ) );
69
  $a = new option\Choices_Option( $this->id() . '_bar_type', __( 'Announcement bar type', WPAUTOTERMS_SLUG ),
70
  '', $page_id, $section_id );
71
  $a->set_values( array(
72
- 'static' => __( 'static', WPAUTOTERMS_SLUG ),
73
- 'fixed' => __( 'fixed', WPAUTOTERMS_SLUG ),
74
  ) );
75
  /*
76
  new Choices_Combo_Option($this->id().'_offset', __( 'Announcement bar offset', WPAUTOTERMS_SLUG ),
@@ -103,11 +99,12 @@ class Update_Notice_Box extends Box {
103
  'media_buttons' => false,
104
  'editor_height' => 150,
105
  'filters' => array(
106
- 'mce_buttons' => array( $this, 'limited_buttons' ),
107
- 'mce_buttons_2' => array( $this, 'empty_buttons' ),
108
- 'mce_buttons_3' => array( $this, 'empty_buttons' ),
109
- 'mce_buttons_4' => array( $this, 'empty_buttons' ),
110
- 'wpautoterms_post_editor' => array( $this, 'shortcodes' ),
 
111
  ),
112
  'tinymce' => array(
113
  'resize' => false,
@@ -120,11 +117,12 @@ class Update_Notice_Box extends Box {
120
  'media_buttons' => false,
121
  'editor_height' => 150,
122
  'filters' => array(
123
- 'mce_buttons' => array( $this, 'limited_buttons' ),
124
- 'mce_buttons_2' => array( $this, 'empty_buttons' ),
125
- 'mce_buttons_3' => array( $this, 'empty_buttons' ),
126
- 'mce_buttons_4' => array( $this, 'empty_buttons' ),
127
- 'wpautoterms_post_editor' => array( $this, 'shortcodes_multiple' ),
 
128
  ),
129
  'tinymce' => array(
130
  'resize' => false,
@@ -145,8 +143,8 @@ class Update_Notice_Box extends Box {
145
  public function defaults() {
146
  return array(
147
  $this->id() => false,
148
- $this->id() . '_bar_position' => 'top',
149
- $this->id() . '_bar_type' => 'static',
150
  $this->id() . '_disable_logged' => 'yes',
151
  $this->id() . '_duration' => '3',
152
  $this->id() . '_message' => __( 'Our <a href="[wpautoterms page_link]">[wpautoterms page_title]</a> has been updated on [wpautoterms last_updated_date].', WPAUTOTERMS_SLUG ),
4
 
5
  use wpautoterms\admin\Menu;
6
  use wpautoterms\cpt\CPT;
7
+ use wpautoterms\frontend\Container_Constants;
8
  use wpautoterms\frontend\notice\Update_Notice;
9
  use wpautoterms\option;
10
 
56
  function define_options( $page_id, $section_id ) {
57
  new option\Checkbox_Option( $this->id(), __( 'Enabled', WPAUTOTERMS_SLUG ), '', $page_id, $section_id );
58
 
 
 
 
 
 
59
  $a = new option\Choices_Option( $this->id() . '_bar_position', __( 'Announcement bar position', WPAUTOTERMS_SLUG ),
60
  '', $page_id, $section_id );
61
  $a->set_values( array(
62
+ Container_Constants::LOCATION_TOP => __( 'top', WPAUTOTERMS_SLUG ),
63
+ Container_Constants::LOCATION_BOTTOM => __( 'bottom', WPAUTOTERMS_SLUG ),
64
  ) );
65
  $a = new option\Choices_Option( $this->id() . '_bar_type', __( 'Announcement bar type', WPAUTOTERMS_SLUG ),
66
  '', $page_id, $section_id );
67
  $a->set_values( array(
68
+ Container_Constants::TYPE_STATIC => __( 'static', WPAUTOTERMS_SLUG ),
69
+ Container_Constants::TYPE_FIXED => __( 'fixed', WPAUTOTERMS_SLUG ),
70
  ) );
71
  /*
72
  new Choices_Combo_Option($this->id().'_offset', __( 'Announcement bar offset', WPAUTOTERMS_SLUG ),
99
  'media_buttons' => false,
100
  'editor_height' => 150,
101
  'filters' => array(
102
+ array( 'mce_buttons', array( $this, 'limited_buttons' ) ),
103
+ array( 'mce_buttons_2', array( $this, 'empty_buttons' ) ),
104
+ array( 'mce_buttons_3', array( $this, 'empty_buttons' ) ),
105
+ array( 'mce_buttons_4', array( $this, 'empty_buttons' ) ),
106
+ array( 'wpautoterms_post_editor', array( $this, 'shortcodes' ) ),
107
+ array( 'wpautoterms_post_editor', array( $this, '_render_revert_message' ) ),
108
  ),
109
  'tinymce' => array(
110
  'resize' => false,
117
  'media_buttons' => false,
118
  'editor_height' => 150,
119
  'filters' => array(
120
+ array( 'mce_buttons', array( $this, 'limited_buttons' ) ),
121
+ array( 'mce_buttons_2', array( $this, 'empty_buttons' ) ),
122
+ array( 'mce_buttons_3', array( $this, 'empty_buttons' ) ),
123
+ array( 'mce_buttons_4', array( $this, 'empty_buttons' ) ),
124
+ array( 'wpautoterms_post_editor', array( $this, 'shortcodes_multiple' ) ),
125
+ array( 'wpautoterms_post_editor', array( $this, '_render_revert_message' ) ),
126
  ),
127
  'tinymce' => array(
128
  'resize' => false,
143
  public function defaults() {
144
  return array(
145
  $this->id() => false,
146
+ $this->id() . '_bar_position' => Container_Constants::LOCATION_TOP,
147
+ $this->id() . '_bar_type' => Container_Constants::TYPE_STATIC,
148
  $this->id() . '_disable_logged' => 'yes',
149
  $this->id() . '_duration' => '3',
150
  $this->id() . '_message' => __( 'Our <a href="[wpautoterms page_link]">[wpautoterms page_title]</a> has been updated on [wpautoterms last_updated_date].', WPAUTOTERMS_SLUG ),
includes/cpt/cpt.php CHANGED
@@ -11,13 +11,14 @@ abstract class CPT {
11
  const ROLE = 'manage_wpautoterms_pages';
12
  const ROLE_EDITOR = 'manage_wpautoterms_pages_editor';
13
  const BASE_ROLE = 'editor';
 
14
  protected static $_taxonomies = array( 'category' );
15
 
16
  public static function init() {
17
- add_filter( 'theme_' . static::type() . '_templates', array( __CLASS__, 'filter_templates' ), 10, 2 );
18
- add_filter( 'map_meta_cap', array( __CLASS__, 'map_meta_cap' ), 10, 4 );
19
- add_action( 'admin_menu', array( __CLASS__, 'remove_taxonomies' ) );
20
- add_filter( 'pre_get_posts', array( __CLASS__, 'extend_query_for_category' ) );
21
  }
22
 
23
  public static function edit_cap() {
@@ -76,7 +77,7 @@ abstract class CPT {
76
  $args = array(
77
  'labels' => $labels,
78
  'hierarchical' => true,
79
- 'supports' => array( 'title', 'editor', 'revisions', 'page-attributes', 'custom-fields' ),
80
  'public' => true,
81
  'show_ui' => true,
82
  //'show_in_nav_menus' => false,
@@ -142,7 +143,7 @@ abstract class CPT {
142
  *
143
  * @return array
144
  */
145
- public static function filter_templates( $post_templates, $theme ) {
146
  return array_merge( $post_templates, $theme->get_page_templates() );
147
  }
148
 
@@ -154,7 +155,7 @@ abstract class CPT {
154
  return static::endswith( $cap, static::cap_singular() ) || static::endswith( $cap, static::cap_plural() );
155
  }
156
 
157
- public static function map_meta_cap( $caps, $cap, $user_id, $args ) {
158
  if ( isset( $args[0] ) ) {
159
  $ok = false;
160
  foreach ( $caps as $c ) {
@@ -176,21 +177,19 @@ abstract class CPT {
176
  return $caps;
177
  }
178
 
179
- public static function remove_taxonomies() {
180
  foreach ( static::$_taxonomies as $t ) {
181
  remove_submenu_page( 'edit.php?post_type=' . static::type(),
182
  'edit-tags.php?taxonomy=' . $t . '&amp;post_type=' . static::type() );
183
  }
184
  }
185
 
186
- public static function extend_query_for_category( \WP_Query $query ) {
187
  if ( is_category() && $query->is_archive() ) {
188
  $query->set( 'post_type', array(
189
  'post',
190
  static::type()
191
  ) );
192
  }
193
-
194
- return $query;
195
  }
196
  }
11
  const ROLE = 'manage_wpautoterms_pages';
12
  const ROLE_EDITOR = 'manage_wpautoterms_pages_editor';
13
  const BASE_ROLE = 'editor';
14
+
15
  protected static $_taxonomies = array( 'category' );
16
 
17
  public static function init() {
18
+ add_filter( 'theme_' . static::type() . '_templates', array( __CLASS__, '_filter_templates' ), 10, 2 );
19
+ add_filter( 'map_meta_cap', array( __CLASS__, '_map_meta_cap' ), 10, 4 );
20
+ add_action( 'admin_menu', array( __CLASS__, '_remove_taxonomies' ) );
21
+ add_action( 'pre_get_posts', array( __CLASS__, '_extend_query_for_category' ) );
22
  }
23
 
24
  public static function edit_cap() {
77
  $args = array(
78
  'labels' => $labels,
79
  'hierarchical' => true,
80
+ 'supports' => array( 'title', 'editor', 'revisions', 'page-attributes', 'custom-fields', 'excerpt' ),
81
  'public' => true,
82
  'show_ui' => true,
83
  //'show_in_nav_menus' => false,
143
  *
144
  * @return array
145
  */
146
+ public static function _filter_templates( $post_templates, $theme ) {
147
  return array_merge( $post_templates, $theme->get_page_templates() );
148
  }
149
 
155
  return static::endswith( $cap, static::cap_singular() ) || static::endswith( $cap, static::cap_plural() );
156
  }
157
 
158
+ public static function _map_meta_cap( $caps, $cap, $user_id, $args ) {
159
  if ( isset( $args[0] ) ) {
160
  $ok = false;
161
  foreach ( $caps as $c ) {
177
  return $caps;
178
  }
179
 
180
+ public static function _remove_taxonomies() {
181
  foreach ( static::$_taxonomies as $t ) {
182
  remove_submenu_page( 'edit.php?post_type=' . static::type(),
183
  'edit-tags.php?taxonomy=' . $t . '&amp;post_type=' . static::type() );
184
  }
185
  }
186
 
187
+ public static function _extend_query_for_category( \WP_Query $query ) {
188
  if ( is_category() && $query->is_archive() ) {
189
  $query->set( 'post_type', array(
190
  'post',
191
  static::type()
192
  ) );
193
  }
 
 
194
  }
195
  }
includes/frontend.php CHANGED
@@ -2,7 +2,11 @@
2
 
3
  namespace wpautoterms;
4
 
5
-
 
 
 
 
6
  use wpautoterms\frontend\Endorsements;
7
  use wpautoterms\frontend\Links;
8
  use wpautoterms\frontend\notice\Cookies_Notice;
@@ -10,25 +14,37 @@ use wpautoterms\frontend\notice\Update_Notice;
10
  use wpautoterms\frontend\Pages_Widget_Extend;
11
 
12
  abstract class Frontend {
 
 
 
13
  protected static $_body_top = '';
14
  /**
15
  * @var Links
16
  */
17
  protected static $_links;
18
-
19
- const CONTAINER_LOCATION_TOP = 'top';
20
- const CONTAINER_LOCATION_BOTTOM = 'bottom';
21
- const CONTAINER_TYPE_STATIC = 'static';
22
- const CONTAINER_TYPE_FIXED = 'fixed';
23
-
24
 
25
  public static function init( $license ) {
26
  global $pagenow;
27
  if ( in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
28
  return;
29
  }
30
- // NOTE: modify buffer on teardown.
31
- ob_start( array( __CLASS__, '_out_head' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  add_action( WPAUTOTERMS_SLUG . '_registered_cpt', array( __CLASS__, 'action_registered_cpt' ), 20 );
33
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) );
34
  add_action( 'wp_footer', array( __CLASS__, 'footer' ), 100002 );
@@ -41,9 +57,33 @@ abstract class Frontend {
41
  new Pages_Widget_Extend();
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  public static function action_registered_cpt() {
46
- static::$_body_top = static::top_container( true );
 
 
47
  }
48
 
49
  public static function enqueue_scripts() {
@@ -51,23 +91,43 @@ abstract class Frontend {
51
  wp_enqueue_style( WPAUTOTERMS_SLUG . '_css' );
52
  }
53
 
54
- public static function _out_head( $buf ) {
55
  $ct = 'content-type';
56
  $ct_len = strlen( $ct );
57
- $handle = true;
58
  foreach ( headers_list() as $h ) {
59
  $h = ltrim( $h );
60
  if ( strncasecmp( $h, $ct, $ct_len ) === 0 ) {
61
  // do not handle non-html content
62
  if ( 1 !== preg_match( '/^content-type:\s*(text\/html|application\/xhtml\+xml)([^[:alnum:]]+.*|)$/i', $h ) ) {
63
- $handle = false;
64
  }
65
- break;
66
  }
67
  }
68
- if ( ! $handle ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  return $buf;
70
  }
 
 
 
 
 
 
 
 
71
  $m = array();
72
  preg_match( '/(.*<\s*body[^>]*>)(.*)/is', $buf, $m );
73
  $ret = '';
@@ -89,7 +149,10 @@ abstract class Frontend {
89
  static::bottom_container();
90
  }
91
 
92
- public static function container_id( $where = self::CONTAINER_LOCATION_TOP, $type = self::CONTAINER_TYPE_STATIC ) {
 
 
 
93
  return 'wpautoterms-' . $where . '-' . $type . '-container';
94
  }
95
 
@@ -110,8 +173,8 @@ abstract class Frontend {
110
  }
111
 
112
  protected static function top_container( $return = false ) {
113
- $c = static::container( self::CONTAINER_LOCATION_TOP, self::CONTAINER_TYPE_STATIC, $return );
114
- $c .= static::container( self::CONTAINER_LOCATION_TOP, self::CONTAINER_TYPE_FIXED, $return );
115
  if ( $return ) {
116
  return $c;
117
  }
@@ -121,7 +184,10 @@ abstract class Frontend {
121
  }
122
 
123
  protected static function bottom_container() {
124
- static::container( self::CONTAINER_LOCATION_BOTTOM, self::CONTAINER_TYPE_FIXED );
125
- static::container( self::CONTAINER_LOCATION_BOTTOM, self::CONTAINER_TYPE_STATIC );
 
 
 
126
  }
127
  }
2
 
3
  namespace wpautoterms;
4
 
5
+ use wpautoterms\admin\Menu;
6
+ use wpautoterms\admin\Notices;
7
+ use wpautoterms\admin\Options;
8
+ use wpautoterms\cpt\CPT;
9
+ use wpautoterms\frontend\Container_Constants;
10
  use wpautoterms\frontend\Endorsements;
11
  use wpautoterms\frontend\Links;
12
  use wpautoterms\frontend\notice\Cookies_Notice;
14
  use wpautoterms\frontend\Pages_Widget_Extend;
15
 
16
  abstract class Frontend {
17
+ const OB_TEST_TOTAL = 5;
18
+ const OB_PASSED_LIMIT = 0.2;
19
+ const CACHE_PLUGIN_NOTICE_ID = 'cache_plugin_usage';
20
  protected static $_body_top = '';
21
  /**
22
  * @var Links
23
  */
24
  protected static $_links;
25
+ protected static $_body_applied = false;
26
+ protected static $_compat;
 
 
 
 
27
 
28
  public static function init( $license ) {
29
  global $pagenow;
30
  if ( in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
31
  return;
32
  }
33
+ static::$_compat = Options::get_option( Options::CACHE_PLUGINS_COMPAT );
34
+ if ( ! static::$_compat ) {
35
+ // NOTE: modify buffer on teardown.
36
+ $detection_mode = ! Options::get_option( Options::CACHE_PLUGINS_SUPPRESS_WARNING ) &&
37
+ Options::get_option( Options::CACHE_PLUGINS_DETECTION );
38
+ if ( $detection_mode ) {
39
+ add_action( 'init', array( __CLASS__, '_init' ) );
40
+ $body_handler = array( __CLASS__, '_out_head_supported' );
41
+ } else {
42
+ $body_handler = array( __CLASS__, '_out_head' );
43
+ }
44
+ add_filter( 'wp_cache_ob_callback_filter', $body_handler );
45
+ add_filter( 'cache_enabler_before_store', $body_handler );
46
+ ob_start( array( __CLASS__, '_out_head' ) );
47
+ }
48
  add_action( WPAUTOTERMS_SLUG . '_registered_cpt', array( __CLASS__, 'action_registered_cpt' ), 20 );
49
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) );
50
  add_action( 'wp_footer', array( __CLASS__, 'footer' ), 100002 );
57
  new Pages_Widget_Extend();
58
  }
59
 
60
+ public static function _init() {
61
+ if ( ! \is_user_logged_in() ) {
62
+ $total = Options::get_option( Options::OB_TOTAL );
63
+ if ( $total > static::OB_TEST_TOTAL ) {
64
+ $passed = Options::get_option( Options::OB_NOT_INTERCEPTED );
65
+ Options::set_option( Options::OB_NOT_INTERCEPTED, 0 );
66
+ Options::set_option( Options::OB_TOTAL, 1 );
67
+ if ( $passed > $total * static::OB_PASSED_LIMIT ) {
68
+ Options::set_option( Options::CACHE_PLUGINS_DETECTION, false );
69
+ Options::set_option( Options::CACHE_PLUGINS_DETECTED, true );
70
+ Notices::$instance->add(
71
+ __( 'Cache plugins detected. Please review ' .
72
+ '<a href="' . admin_url( 'edit.php?post_type=' . CPT::type() . '&page=' . WPAUTOTERMS_SLUG .
73
+ '_' . Menu::PAGE_SETTINGS_ADVANCED ) .
74
+ '">WPAutoTerms settings</a> and enable the Caching Plugins compatibility mode.',
75
+ WPAUTOTERMS_SLUG ), Notices::CLASS_ERROR, true, static::CACHE_PLUGIN_NOTICE_ID );
76
+ }
77
+ } elseif ( static::_is_html_content() ) {
78
+ Options::set_option( Options::OB_TOTAL, $total + 1 );
79
+ }
80
+ }
81
+ }
82
 
83
  public static function action_registered_cpt() {
84
+ if ( ! static::$_compat ) {
85
+ static::$_body_top = static::top_container( true );
86
+ }
87
  }
88
 
89
  public static function enqueue_scripts() {
91
  wp_enqueue_style( WPAUTOTERMS_SLUG . '_css' );
92
  }
93
 
94
+ protected static function _is_html_content() {
95
  $ct = 'content-type';
96
  $ct_len = strlen( $ct );
 
97
  foreach ( headers_list() as $h ) {
98
  $h = ltrim( $h );
99
  if ( strncasecmp( $h, $ct, $ct_len ) === 0 ) {
100
  // do not handle non-html content
101
  if ( 1 !== preg_match( '/^content-type:\s*(text\/html|application\/xhtml\+xml)([^[:alnum:]]+.*|)$/i', $h ) ) {
102
+ return false;
103
  }
 
104
  }
105
  }
106
+
107
+ return true;
108
+ }
109
+
110
+ public static function _out_head_supported( $buf ) {
111
+ Options::set_option( Options::CACHE_PLUGINS_DETECTION, false );
112
+ Options::set_option( Options::CACHE_PLUGINS_DETECTED, false );
113
+ Options::set_option( Options::OB_NOT_INTERCEPTED, 0 );
114
+ Options::set_option( Options::OB_TOTAL, 0 );
115
+
116
+ return static::_out_head( $buf );
117
+ }
118
+
119
+ public static function _out_head( $buf ) {
120
+ if ( ! static::_is_html_content() ) {
121
  return $buf;
122
  }
123
+ if ( ! Options::get_option( Options::CACHE_PLUGINS_SUPPRESS_WARNING ) && ! \is_user_logged_in() &&
124
+ Options::get_option( Options::CACHE_PLUGINS_DETECTION ) ) {
125
+ Options::set_option( Options::OB_NOT_INTERCEPTED, Options::get_option( Options::OB_NOT_INTERCEPTED ) + 1 );
126
+ }
127
+ if ( static::$_body_applied ) {
128
+ return $buf;
129
+ }
130
+ static::$_body_applied = true;
131
  $m = array();
132
  preg_match( '/(.*<\s*body[^>]*>)(.*)/is', $buf, $m );
133
  $ret = '';
149
  static::bottom_container();
150
  }
151
 
152
+ public static function container_id(
153
+ $where = Container_Constants::LOCATION_TOP,
154
+ $type = Container_Constants::TYPE_STATIC
155
+ ) {
156
  return 'wpautoterms-' . $where . '-' . $type . '-container';
157
  }
158
 
173
  }
174
 
175
  protected static function top_container( $return = false ) {
176
+ $c = static::container( Container_Constants::LOCATION_TOP, Container_Constants::TYPE_STATIC, $return );
177
+ $c .= static::container( Container_Constants::LOCATION_TOP, Container_Constants::TYPE_FIXED, $return );
178
  if ( $return ) {
179
  return $c;
180
  }
184
  }
185
 
186
  protected static function bottom_container() {
187
+ if ( static::$_compat ) {
188
+ self::top_container();
189
+ }
190
+ static::container( Container_Constants::LOCATION_BOTTOM, Container_Constants::TYPE_FIXED );
191
+ static::container( Container_Constants::LOCATION_BOTTOM, Container_Constants::TYPE_STATIC );
192
  }
193
  }
includes/frontend/container-constants.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace wpautoterms\frontend;
4
+
5
+
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
+
10
+ abstract class Container_Constants {
11
+ const LOCATION_TOP = 'top';
12
+ const LOCATION_BOTTOM = 'bottom';
13
+
14
+ const TYPE_STATIC = 'static';
15
+ const TYPE_FIXED = 'fixed';
16
+ }
includes/frontend/endorsements.php CHANGED
@@ -47,7 +47,7 @@ class Endorsements {
47
  'message' => do_shortcode( $message )
48
  ), true );
49
  $message = Styles::print_styles( static::ID, static::css_class_id(), true ) . $message;
50
- if ( $where == 'bottom' ) {
51
  return $content . $message;
52
  }
53
 
47
  'message' => do_shortcode( $message )
48
  ), true );
49
  $message = Styles::print_styles( static::ID, static::css_class_id(), true ) . $message;
50
+ if ( $where == Container_Constants::LOCATION_BOTTOM ) {
51
  return $content . $message;
52
  }
53
 
includes/frontend/links.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace wpautoterms\frontend;
4
 
 
5
  use wpautoterms\cpt\CPT;
6
  use wpautoterms\gen_css\Attr;
7
  use wpautoterms\gen_css\Document;
@@ -12,6 +13,8 @@ class Links {
12
  const FOOTER_CLASS = 'wpautoterms-footer';
13
  const SEPARATOR_CLASS = 'separator';
14
 
 
 
15
  public function __construct() {
16
  add_action( 'wp_print_styles', array( $this, 'print_styles' ) );
17
  }
@@ -20,23 +23,52 @@ class Links {
20
  return WPAUTOTERMS_OPTION_PREFIX . static::MODULE_ID;
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  public function links_box() {
24
  if ( ! get_option( WPAUTOTERMS_OPTION_PREFIX . static::MODULE_ID ) ) {
25
  return;
26
  }
27
- $wp_type = CPT::type();
28
- $args = array(
29
- 'post_type' => $wp_type,
30
- 'post_status' => 'publish',
31
- 'orderby' => 'post_modified',
32
- 'numberposts' => - 1
33
- );
34
-
35
- $posts = get_posts( $args );
36
- // Filter out by post type, category page adds "post" in filter.
37
- $posts = array_filter( $posts, function ( \WP_Post $x ) use ( $wp_type ) {
38
- return $x->post_type == $wp_type;
39
- } );
40
  $new_page = $custom = get_option( static::_option_prefix() . '_target_blank' );
41
  \wpautoterms\print_template( static::MODULE_ID, compact( 'posts', 'new_page' ) );
42
  }
2
 
3
  namespace wpautoterms\frontend;
4
 
5
+ use wpautoterms\admin\Options;
6
  use wpautoterms\cpt\CPT;
7
  use wpautoterms\gen_css\Attr;
8
  use wpautoterms\gen_css\Document;
13
  const FOOTER_CLASS = 'wpautoterms-footer';
14
  const SEPARATOR_CLASS = 'separator';
15
 
16
+ static $_posts;
17
+
18
  public function __construct() {
19
  add_action( 'wp_print_styles', array( $this, 'print_styles' ) );
20
  }
23
  return WPAUTOTERMS_OPTION_PREFIX . static::MODULE_ID;
24
  }
25
 
26
+ public static function links_order() {
27
+ $order = explode( ',', Options::get_option( Options::LINKS_ORDER ) );
28
+
29
+ return array_map( 'intval', $order );
30
+ }
31
+
32
+ public static function link_posts() {
33
+ if ( static::$_posts == null ) {
34
+ $wp_type = CPT::type();
35
+ $args = array(
36
+ 'post_type' => $wp_type,
37
+ 'post_status' => 'publish',
38
+ 'numberposts' => - 1
39
+ );
40
+
41
+ $posts = get_posts( $args );
42
+ // Filter out by post type, category page adds "post" in filter.
43
+ $posts = array_filter( $posts, function ( \WP_Post $x ) use ( $wp_type ) {
44
+ return $x->post_type == $wp_type;
45
+ } );
46
+ $posts = array_reduce( $posts, function ( $acc, \WP_Post $x ) {
47
+ $acc[ $x->ID ] = $x;
48
+
49
+ return $acc;
50
+ }, array() );
51
+ static::$_posts = array();
52
+ $order = static::links_order();
53
+ if ( ! empty( $order ) ) {
54
+ foreach ( $order as $id ) {
55
+ if ( isset( $posts[ $id ] ) ) {
56
+ static::$_posts[] = $posts[ $id ];
57
+ unset( $posts[ $id ] );
58
+ }
59
+ }
60
+ }
61
+ static::$_posts = array_merge( static::$_posts, array_values( $posts ) );
62
+ }
63
+
64
+ return static::$_posts;
65
+ }
66
+
67
  public function links_box() {
68
  if ( ! get_option( WPAUTOTERMS_OPTION_PREFIX . static::MODULE_ID ) ) {
69
  return;
70
  }
71
+ $posts = static::link_posts();
 
 
 
 
 
 
 
 
 
 
 
 
72
  $new_page = $custom = get_option( static::_option_prefix() . '_target_blank' );
73
  \wpautoterms\print_template( static::MODULE_ID, compact( 'posts', 'new_page' ) );
74
  }
includes/frontend/notice/base-notice.php CHANGED
@@ -14,7 +14,6 @@ abstract class Base_Notice {
14
  protected $_type;
15
  protected $_message;
16
  protected $_close_message;
17
- protected $_skip;
18
  protected $_id;
19
  protected $_tag;
20
  protected $_container;
@@ -25,14 +24,12 @@ abstract class Base_Notice {
25
  $this->_tag = str_replace( '_', '-', $this->_id );
26
  $this->_container = $container_class;
27
  $this->_element = $element_class;
28
- $this->_skip = false;
29
  }
30
 
31
  public function init() {
32
  if ( ! $this->_is_enabled() ) {
33
  return;
34
  }
35
- add_action( WPAUTOTERMS_SLUG . '_registered_cpt', array( $this, 'action_registered_cpt' ) );
36
  add_action( 'wp_print_styles', array( $this, 'print_styles' ) );
37
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
38
  add_action( WPAUTOTERMS_SLUG . '_container', array( $this, 'container' ), 10, 2 );
@@ -53,40 +50,35 @@ abstract class Base_Notice {
53
  }
54
 
55
  public function enqueue_scripts() {
56
- if ( $this->_skip ) {
57
- return;
58
- }
59
  wp_enqueue_script( WPAUTOTERMS_SLUG . '_js',
60
  WPAUTOTERMS_PLUGIN_URL . 'js/wpautoterms.js',
61
- false,
62
  false,
63
  true );
 
64
  }
65
 
66
- abstract protected function get_data();
 
 
 
 
67
 
68
- public function action_registered_cpt() {
69
  $disable_logged = get_option( WPAUTOTERMS_OPTION_PREFIX . $this->_id . '_disable_logged' );
70
- if ( ( ( $disable_logged == 'yes' ) && \is_user_logged_in() ) || ! $this->get_data() ) {
71
- $this->_skip = true;
72
- }
73
  }
74
 
75
  public function print_styles() {
76
- if ( $this->_skip ) {
77
- return;
78
- }
79
  Styles::print_styles( $this->_id, $this->_element );
80
  }
81
 
82
  public function container( $where, $type ) {
83
- if ( $this->_skip ) {
84
- return;
85
- }
86
  if ( ( $this->_where == $where ) && ( $this->_type == $type ) ) {
87
- $this->print_box();
88
  }
89
  }
90
 
91
- abstract protected function print_box();
92
  }
14
  protected $_type;
15
  protected $_message;
16
  protected $_close_message;
 
17
  protected $_id;
18
  protected $_tag;
19
  protected $_container;
24
  $this->_tag = str_replace( '_', '-', $this->_id );
25
  $this->_container = $container_class;
26
  $this->_element = $element_class;
 
27
  }
28
 
29
  public function init() {
30
  if ( ! $this->_is_enabled() ) {
31
  return;
32
  }
 
33
  add_action( 'wp_print_styles', array( $this, 'print_styles' ) );
34
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
35
  add_action( WPAUTOTERMS_SLUG . '_container', array( $this, 'container' ), 10, 2 );
50
  }
51
 
52
  public function enqueue_scripts() {
 
 
 
53
  wp_enqueue_script( WPAUTOTERMS_SLUG . '_js',
54
  WPAUTOTERMS_PLUGIN_URL . 'js/wpautoterms.js',
55
+ array( 'jquery', 'wp-util' ),
56
  false,
57
  true );
58
+ wp_localize_script( WPAUTOTERMS_SLUG . '_js', 'wpautoterms_js_' . $this->id(), $this->_localize_args() );
59
  }
60
 
61
+ protected function _localize_args() {
62
+ return array(
63
+ 'disable' => $this->_is_disabled_logged()
64
+ );
65
+ }
66
 
67
+ protected function _is_disabled_logged() {
68
  $disable_logged = get_option( WPAUTOTERMS_OPTION_PREFIX . $this->_id . '_disable_logged' );
69
+
70
+ return \is_user_logged_in() && $disable_logged == 'yes';
 
71
  }
72
 
73
  public function print_styles() {
 
 
 
74
  Styles::print_styles( $this->_id, $this->_element );
75
  }
76
 
77
  public function container( $where, $type ) {
 
 
 
78
  if ( ( $this->_where == $where ) && ( $this->_type == $type ) ) {
79
+ $this->_print_box();
80
  }
81
  }
82
 
83
+ abstract protected function _print_box();
84
  }
includes/frontend/notice/cookies-notice.php CHANGED
@@ -31,19 +31,15 @@ class Cookies_Notice extends Base_Notice {
31
  return $this->_license->status() != License::STATUS_FREE && parent::_is_enabled();
32
  }
33
 
34
- protected function print_box() {
35
  $cookie = 'wpautoterms-cookies-notice';
36
- if ( ! isset( $_COOKIE[ $cookie ] ) ) {
37
- \wpautoterms\print_template( 'cookies-notice', array(
38
- 'cookie_name' => $cookie,
39
- 'cookie_value' => 1,
40
- 'message' => do_shortcode( $this->_message ),
41
- 'close' => $this->_close_message,
42
- ) );
43
- }
44
- }
45
-
46
- protected function get_data() {
47
- return true;
48
  }
49
  }
31
  return $this->_license->status() != License::STATUS_FREE && parent::_is_enabled();
32
  }
33
 
34
+ protected function _print_box() {
35
  $cookie = 'wpautoterms-cookies-notice';
36
+ $class_escaped = esc_attr( Cookies_Notice::CLASS_COOKIES_NOTICE );
37
+ \wpautoterms\print_template( 'cookies-notice', array(
38
+ 'cookie_name' => $cookie,
39
+ 'cookie_value' => 1,
40
+ 'class_escaped' => $class_escaped,
41
+ 'message' => do_shortcode( $this->_message ),
42
+ 'close' => $this->_close_message,
43
+ ) );
 
 
 
 
44
  }
45
  }
includes/frontend/notice/update-notice.php CHANGED
@@ -2,107 +2,49 @@
2
 
3
  namespace wpautoterms\frontend\notice;
4
 
5
- use wpautoterms\cpt\CPT;
 
6
 
7
  if ( ! defined( 'ABSPATH' ) ) {
8
  exit;
9
  }
10
 
11
  class Update_Notice extends Base_Notice {
 
 
12
  const BLOCK_CLASS = 'wpautoterms-update-notice';
13
  const CLOSE_CLASS = 'wpautoterms-notice-close';
 
14
 
15
- protected $_duration;
16
- protected $_posts;
17
  public $message_multiple;
 
18
 
19
  public static function create() {
20
- $a = new Update_Notice( 'update_notice', 'wpautoterms-update-notice-container', static::BLOCK_CLASS );
21
  $a->message_multiple = get_option( WPAUTOTERMS_OPTION_PREFIX . $a->id() . '_message_multiple' );
22
 
23
  return $a;
24
  }
25
 
26
- protected function get_posts() {
27
- $args = array(
28
- 'post_type' => CPT::type(),
29
- 'post_status' => 'publish',
30
- 'orderby' => 'post_modified',
31
- 'date_query' => array(
32
- 'column' => 'post_modified',
33
- 'after' => '-' . $this->_duration . ' days',
34
- ),
35
- );
36
-
37
- $posts = get_posts( $args );
38
- $this->_posts = array();
39
- if ( count( $posts ) ) {
40
- foreach ( $posts as $post ) {
41
- if ( $post->post_modified == $post->post_date ) {
42
- continue;
43
- }
44
- $t = get_post_modified_time( get_option( 'date_format' ), false, $post, true );
45
- if ( ! isset( $this->_posts[ $t ] ) ) {
46
- $this->_posts[ $t ] = array();
47
- }
48
- $this->_posts[ $t ][] = $post;
49
- }
50
- }
51
- }
52
-
53
- protected function print_box() {
54
- if ( empty( $this->_posts ) ) {
55
- return;
56
- }
57
- global $wpautoterms_post;
58
- global $wpautoterms_posts;
59
- foreach ( $this->_posts as $date => $posts ) {
60
- if ( count( $posts ) > 1 ) {
61
- $wpautoterms_posts = array();
62
- $wpautoterms_post = $posts[0];
63
- $cookie = array();
64
- $values = array();
65
- foreach ( $posts as $post ) {
66
- $modified = strtotime( $post->post_modified );
67
- $tmp_cookie = 'wpautoterms-update-notice-' . $post->ID;
68
- if ( ! isset( $_COOKIE[ $tmp_cookie ] ) || ( $_COOKIE[ $tmp_cookie ] != $modified ) ) {
69
- $cookie[] = $tmp_cookie;
70
- $values[] = $modified;
71
- $wpautoterms_posts[] = $post;
72
- }
73
- }
74
- if ( ! empty( $wpautoterms_posts ) ) {
75
- \wpautoterms\print_template( 'update-notice', array(
76
- 'cookie_name' => join( ',', $cookie ),
77
- 'cookie_value' => join( ',', $values ),
78
- 'message' => do_shortcode( $this->message_multiple ),
79
- 'close' => $this->_close_message,
80
- ) );
81
- }
82
- } else if ( count( $posts ) ) {
83
- $post = $posts[0];
84
- $modified = strtotime( $post->post_modified );
85
- $cookie = 'wpautoterms-update-notice-' . $post->ID;
86
- if ( ! isset( $_COOKIE[ $cookie ] ) || ( $_COOKIE[ $cookie ] != $modified ) ) {
87
- $wpautoterms_post = $post;
88
- \wpautoterms\print_template( 'update-notice', array(
89
- 'cookie_name' => $cookie,
90
- 'cookie_value' => $modified,
91
- 'message' => do_shortcode( $this->_message ),
92
- 'close' => $this->_close_message,
93
- ) );
94
- }
95
- }
96
- }
97
  }
98
 
99
- protected function get_data() {
100
- $this->_duration = intval( get_option( WPAUTOTERMS_OPTION_PREFIX . 'update_notice_duration' ) );
101
- $this->get_posts();
102
- if ( empty( $this->_posts ) ) {
103
- return false;
104
- }
105
-
106
- return true;
 
 
 
 
 
107
  }
108
  }
2
 
3
  namespace wpautoterms\frontend\notice;
4
 
5
+ use wpautoterms\admin\Options;
6
+ use wpautoterms\Updated_Posts;
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
9
  exit;
10
  }
11
 
12
  class Update_Notice extends Base_Notice {
13
+ const ID = 'update_notice';
14
+ const COOKIE_PREFIX = 'wpautoterms-update-notice-';
15
  const BLOCK_CLASS = 'wpautoterms-update-notice';
16
  const CLOSE_CLASS = 'wpautoterms-notice-close';
17
+ const ACTION_NAME = '_check_updates';
18
 
 
 
19
  public $message_multiple;
20
+ protected $compat;
21
 
22
  public static function create() {
23
+ $a = new Update_Notice( static::ID, WPAUTOTERMS_TAG . '-update-notice-container', static::BLOCK_CLASS );
24
  $a->message_multiple = get_option( WPAUTOTERMS_OPTION_PREFIX . $a->id() . '_message_multiple' );
25
 
26
  return $a;
27
  }
28
 
29
+ protected function _print_box() {
30
+ \wpautoterms\print_template( 'update-notice', array(
31
+ 'class_escaped' => esc_attr( static::BLOCK_CLASS ),
32
+ 'close' => $this->_close_message,
33
+ ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
+ protected function _localize_args() {
37
+ $ret = parent::_localize_args();
38
+ $posts = new Updated_Posts( intval( get_option( WPAUTOTERMS_OPTION_PREFIX . 'update_notice_duration' ) ),
39
+ static::COOKIE_PREFIX, $this->_message, $this->message_multiple );
40
+ $posts->fetch_posts();
41
+ $ret['data'] = $posts->transform();
42
+ $ret['ajaxurl'] = admin_url( 'admin-ajax.php' );
43
+ $ret['action'] = WPAUTOTERMS_SLUG . static::ACTION_NAME;
44
+ $ret['cache_detector_cookie'] = WPAUTOTERMS_SLUG . '_cache_detector';
45
+ $ret['cache_detected'] = 1;
46
+ setcookie( $ret['cache_detector_cookie'], 0, 0, COOKIEPATH, COOKIE_DOMAIN );
47
+
48
+ return $ret;
49
  }
50
  }
includes/frontend/pages-widget-extend.php CHANGED
@@ -10,7 +10,7 @@ class Pages_Widget_Extend {
10
 
11
  public function __construct() {
12
  add_filter( 'widget_pages_args', array( $this, 'widget_pages_args' ), 10 );
13
- add_filter( 'wp_list_pages', array( $this, 'wp_list_pages' ), 10, 3 );
14
  }
15
 
16
  public function widget_pages_args( $args ) {
@@ -19,7 +19,7 @@ class Pages_Widget_Extend {
19
  return $args;
20
  }
21
 
22
- public function wp_list_pages( $output, $r, $pages ) {
23
  if ( ! isset( $r[ static::MARKER ] ) || ! Options::get_option( Options::SHOW_IN_PAGES_WIDGET ) ) {
24
  return $output;
25
  }
10
 
11
  public function __construct() {
12
  add_filter( 'widget_pages_args', array( $this, 'widget_pages_args' ), 10 );
13
+ add_filter( 'wp_list_pages', array( $this, 'wp_list_pages' ), 10, 2 );
14
  }
15
 
16
  public function widget_pages_args( $args ) {
19
  return $args;
20
  }
21
 
22
+ public function wp_list_pages( $output, $r ) {
23
  if ( ! isset( $r[ static::MARKER ] ) || ! Options::get_option( Options::SHOW_IN_PAGES_WIDGET ) ) {
24
  return $output;
25
  }
includes/option/editor-option.php CHANGED
@@ -10,7 +10,7 @@ class Editor_Option extends Option {
10
 
11
  protected $_settings;
12
 
13
- public function set_settings($settings){
14
  $this->_settings = $settings;
15
  }
16
 
@@ -20,16 +20,16 @@ class Editor_Option extends Option {
20
 
21
  function render() {
22
  if ( isset( $this->_settings['filters'] ) ) {
23
- foreach ( $this->_settings['filters'] as $k => $v ) {
24
- add_filter( $k, $v );
25
  }
26
  }
27
  do_action( "wpautoterms_pre_editor", $this );
28
  wp_editor( $this->get_value(), $this->_name, $this->_settings );
29
  do_action( "wpautoterms_post_editor", $this );
30
  if ( isset( $this->_settings['filters'] ) ) {
31
- foreach ( $this->_settings['filters'] as $k => $v ) {
32
- remove_filter( $k, $v );
33
  }
34
  }
35
  }
10
 
11
  protected $_settings;
12
 
13
+ public function set_settings( $settings ) {
14
  $this->_settings = $settings;
15
  }
16
 
20
 
21
  function render() {
22
  if ( isset( $this->_settings['filters'] ) ) {
23
+ foreach ( $this->_settings['filters'] as $v ) {
24
+ add_filter( $v[0], $v[1] );
25
  }
26
  }
27
  do_action( "wpautoterms_pre_editor", $this );
28
  wp_editor( $this->get_value(), $this->_name, $this->_settings );
29
  do_action( "wpautoterms_post_editor", $this );
30
  if ( isset( $this->_settings['filters'] ) ) {
31
+ foreach ( $this->_settings['filters'] as $v ) {
32
+ remove_filter( $v[0], $v[1] );
33
  }
34
  }
35
  }
includes/option/hidden-option.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace wpautoterms\option;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+ class Hidden_Option extends Option {
10
+ const TYPE_GENERIC = 'hidden-option';
11
+
12
+ /**
13
+ * @var callable
14
+ */
15
+ public $custom_sanitize;
16
+
17
+ protected static function _default_template() {
18
+ return static::TYPE_GENERIC;
19
+ }
20
+
21
+ public function sanitize( $input ) {
22
+ if ( $this->custom_sanitize != null ) {
23
+ return call_user_func( $this->custom_sanitize, $input );
24
+ }
25
+
26
+ return $input;
27
+ }
28
+ }
includes/shortcode/post-links.php CHANGED
@@ -20,7 +20,15 @@ class Post_Links extends Sub_Shortcode {
20
  esc_html( $post->post_title ) . '</a>';
21
  }
22
 
23
- return join( ', ', $links );
 
 
 
 
 
 
 
 
24
  }
25
 
26
  }
20
  esc_html( $post->post_title ) . '</a>';
21
  }
22
 
23
+ if ( count( $links ) > 1 ) {
24
+ $last = array_pop( $links );
25
+ $ret = join( ', ', $links );
26
+ $ret = sprintf( __( "%s and %s" ), $ret, $last );
27
+ } else {
28
+ $ret = join( ', ', $links );
29
+ }
30
+
31
+ return $ret;
32
  }
33
 
34
  }
includes/updated-posts.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace wpautoterms;
4
+
5
+ use wpautoterms\cpt\CPT;
6
+
7
+ class Updated_Posts {
8
+ protected $_duration;
9
+ protected $_posts;
10
+ protected $_cookie_prefix;
11
+ protected $_message;
12
+ protected $_message_multiple;
13
+
14
+ public function __construct( $duration, $cookie_prefix, $message, $message_multiple ) {
15
+ $this->_duration = $duration;
16
+ $this->_cookie_prefix = $cookie_prefix;
17
+ $this->_message = $message;
18
+ $this->_message_multiple = $message_multiple;
19
+ }
20
+
21
+ public function fetch_posts() {
22
+ $args = array(
23
+ 'post_type' => CPT::type(),
24
+ 'post_status' => 'publish',
25
+ 'orderby' => 'post_modified',
26
+ 'date_query' => array(
27
+ 'column' => 'post_modified',
28
+ 'after' => '-' . $this->_duration . ' days',
29
+ ),
30
+ );
31
+
32
+ $posts = get_posts( $args );
33
+ $this->_posts = array();
34
+ if ( count( $posts ) ) {
35
+ foreach ( $posts as $post ) {
36
+ if ( $post->post_modified == $post->post_date ) {
37
+ continue;
38
+ }
39
+ $t = get_post_modified_time( get_option( 'date_format' ), false, $post, true );
40
+ if ( ! isset( $this->_posts[ $t ] ) ) {
41
+ $this->_posts[ $t ] = array();
42
+ }
43
+ $this->_posts[ $t ][] = $post;
44
+ }
45
+ }
46
+ }
47
+
48
+ public function transform() {
49
+ $post_data = array();
50
+ if ( empty( $this->_posts ) ) {
51
+ return $post_data;
52
+ }
53
+ global $wpautoterms_post;
54
+ global $wpautoterms_posts;
55
+ foreach ( $this->_posts as $posts ) {
56
+ $wpautoterms_posts = array();
57
+ $wpautoterms_post = null;
58
+ $cookies = array();
59
+ $values = array();
60
+ foreach ( $posts as $post ) {
61
+ $cookie_name = $this->_cookie_prefix . $post->ID;
62
+ $modified = strtotime( $post->post_modified );
63
+ if ( ! isset( $_COOKIE[ $cookie_name ] ) || $_COOKIE[ $cookie_name ] != $modified ) {
64
+ if ( $wpautoterms_post == null ) {
65
+ $wpautoterms_post = $post;
66
+ }
67
+ $wpautoterms_posts[] = $post;
68
+ $cookies[] = $cookie_name;
69
+ $values[] = $modified;
70
+ }
71
+ }
72
+ if ( count( $wpautoterms_posts ) > 0 ) {
73
+ $post_data[] = array(
74
+ 'message' => count( $wpautoterms_posts ) > 1 ? do_shortcode( $this->_message_multiple ) :
75
+ do_shortcode( $this->_message ),
76
+ 'cookies' => $cookies,
77
+ 'values' => $values
78
+ );
79
+ }
80
+ }
81
+
82
+ return $post_data;
83
+ }
84
+
85
+ public function posts() {
86
+ $this->_posts;
87
+ }
88
+
89
+ }
includes/wpautoterms.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace wpautoterms;
4
 
5
  use wpautoterms\admin\form\Legal_Page;
 
6
  use wpautoterms\admin\Options;
7
  use wpautoterms\cpt\CPT;
8
  use wpautoterms\frontend\Widget;
@@ -31,6 +32,7 @@ abstract class Wpautoterms {
31
  Shortcodes::init();
32
  Legacy_Shortcodes::init();
33
  Widget::init();
 
34
  }
35
 
36
  /**
3
  namespace wpautoterms;
4
 
5
  use wpautoterms\admin\form\Legal_Page;
6
+ use wpautoterms\admin\Notices;
7
  use wpautoterms\admin\Options;
8
  use wpautoterms\cpt\CPT;
9
  use wpautoterms\frontend\Widget;
32
  Shortcodes::init();
33
  Legacy_Shortcodes::init();
34
  Widget::init();
35
+ Notices::$instance = new Notices( WPAUTOTERMS_OPTION_PREFIX . 'notices' );
36
  }
37
 
38
  /**
js/box-page.js CHANGED
@@ -55,38 +55,35 @@ jQuery(document).ready(function ($) {
55
  s.trigger("change");
56
  });
57
 
58
- function send_to_editor( html ) {
59
- var editor,
60
- hasTinymce = typeof tinymce !== 'undefined',
61
- hasQuicktags = typeof QTags !== 'undefined';
62
-
63
- if ( ! wpActiveEditor ) {
64
- if ( hasTinymce && tinymce.activeEditor ) {
65
- editor = tinymce.activeEditor;
66
- wpActiveEditor = editor.id;
67
- } else if ( ! hasQuicktags ) {
68
- return false;
69
- }
70
- } else if ( hasTinymce ) {
71
- editor = tinymce.get( wpActiveEditor );
72
  }
73
-
74
- if ( editor && ! editor.isHidden() ) {
75
- editor.execCommand( 'mceInsertContent', false, html );
76
- } else if ( hasQuicktags ) {
77
- QTags.insertContent( html );
78
  } else {
79
- document.getElementById( wpActiveEditor ).value += html;
 
 
 
 
80
  }
81
  }
82
 
83
- $(".wpautoterms-shortcodes-source a").each(function () {
84
- var t=jQuery(this);
85
- var id=t.data("editor");
86
- var data=t.data("data");
87
- t.click(function(){
88
- send_to_editor(data);
89
- //tinymce.get(id).execCommand('mceInsertContent', false, data);
90
  });
 
 
 
 
 
 
 
91
  });
92
  });
55
  s.trigger("change");
56
  });
57
 
58
+ function send_to_editor(editorId, html, replace) {
59
+ var editor;
60
+ if (typeof tinymce !== 'undefined') {
61
+ editor = tinymce.get(editorId);
 
 
 
 
 
 
 
 
 
 
62
  }
63
+ if (editor && !editor.isHidden()) {
64
+ editor.execCommand(replace ? "mceSetContent" : "mceInsertContent", false, html);
 
 
 
65
  } else {
66
+ if (replace) {
67
+ document.getElementById(editorId).value = html;
68
+ } else {
69
+ document.getElementById(editorId).value += html;
70
+ }
71
  }
72
  }
73
 
74
+ function inject_action(el, replace) {
75
+ var t = jQuery(el);
76
+ var id = t.data("editor");
77
+ var data = t.data("data");
78
+ t.click(function () {
79
+ send_to_editor(id, data, replace);
 
80
  });
81
+ }
82
+
83
+ $(".wpautoterms-shortcodes-source a").each(function () {
84
+ inject_action(this, false);
85
+ });
86
+ $(".wpautoterms-replace-source a").each(function () {
87
+ inject_action(this, true);
88
  });
89
  });
js/common.js CHANGED
@@ -25,7 +25,6 @@ jQuery(document).ready(function ($) {
25
  Object.assign(args, data);
26
  }
27
  }
28
- console.log(args);
29
  $.post(ajaxurl, args);
30
  }
31
  });
25
  Object.assign(args, data);
26
  }
27
  }
 
28
  $.post(ajaxurl, args);
29
  }
30
  });
js/data/states.js CHANGED
@@ -5,9 +5,7 @@ wpautotermsStates.states = {
5
  "AD": [],
6
  "AE": [],
7
  "AF": [
8
- "AF-SAR",
9
- "AF-TAK",
10
- "AF-BAL",
11
  "AF-BAM",
12
  "AF-BDG",
13
  "AF-BDS",
@@ -15,6 +13,7 @@ wpautotermsStates.states = {
15
  "AF-DAY",
16
  "AF-FRA",
17
  "AF-FYB",
 
18
  "AF-GHA",
19
  "AF-GHO",
20
  "AF-HEL",
@@ -24,64 +23,61 @@ wpautotermsStates.states = {
24
  "AF-KAN",
25
  "AF-KAP",
26
  "AF-KDZ",
27
- "AF-URU",
28
  "AF-KHO",
29
  "AF-KNR",
30
  "AF-LAG",
31
  "AF-LOG",
32
  "AF-NAN",
33
  "AF-NIM",
34
- "AF-WAR",
35
  "AF-NUR",
36
  "AF-PAN",
37
  "AF-PAR",
38
  "AF-PIA",
39
  "AF-PKA",
 
40
  "AF-SAM",
41
- "AF-ZAB"
 
 
42
  ],
43
  "AG": [],
44
  "AI": [],
45
  "AL": [],
46
  "AM": [
47
- "AM-TV",
48
- "AM-AV",
49
- "AM-ER",
50
- "AM-GR",
51
- "AM-SU",
52
  "AM-KT",
53
  "AM-LO",
 
54
  "AM-SH",
55
  "AM-AG",
 
56
  "AM-AR",
 
 
 
57
  "AM-VD"
58
  ],
59
  "AO": [
60
- "AO-CNO",
61
  "AO-MOX",
62
- "AO-CUS",
63
- "AO-MAL",
64
  "AO-LNO",
65
- "AO-BGO",
 
 
 
66
  "AO-ZAI",
67
- "AO-BGU",
68
  "AO-LUA",
69
- "AO-HUI",
70
- "AO-BIE",
71
- "AO-UIG",
72
- "AO-CAB",
73
  "AO-HUA",
74
- "AO-CCU",
 
75
  "AO-NAM",
76
- "AO-CNN",
77
  "AO-LSU"
78
  ],
79
  "AQ": [],
80
  "AR": [
81
- "AR-E",
82
- "AR-G",
83
- "AR-H",
84
- "AR-J",
85
  "AR-K",
86
  "AR-L",
87
  "AR-M",
@@ -99,29 +95,33 @@ wpautotermsStates.states = {
99
  "AR-Z",
100
  "AR-A",
101
  "AR-B",
102
- "AR-D"
 
 
 
 
103
  ],
104
  "AS": [],
105
  "AT": [
106
- "AT-6",
107
- "AT-7",
108
- "AT-8",
109
  "AT-1",
110
- "AT-9",
111
  "AT-2",
 
112
  "AT-3",
113
  "AT-4",
114
- "AT-5"
 
 
 
115
  ],
116
  "AU": [
117
- "AU-SA",
118
  "AU-WA",
119
- "AU-TAS",
120
- "AU-VIC",
121
  "AU-ACT",
122
  "AU-NSW",
123
  "AU-NT",
124
- "AU-QLD"
 
 
 
125
  ],
126
  "AW": [],
127
  "AX": [],
@@ -132,83 +132,83 @@ wpautotermsStates.states = {
132
  "BB": [],
133
  "BD": [],
134
  "BE": [
135
- "BE-VLI",
136
- "BE-VOV",
137
- "BE-WBR",
138
- "BE-VWV",
139
  "BE-WLX",
140
- "BE-WNA",
141
  "BE-VAN",
142
- "BE-WLG",
143
  "BE-VBR",
144
- "BE-WHT"
 
 
 
 
 
 
145
  ],
146
  "BF": [
147
- "BF-KOP",
148
- "BF-KOS",
149
- "BF-SIS",
150
- "BF-OUB",
151
- "BF-MOU",
152
- "BF-SMT",
153
- "BF-OUD",
154
- "BF-ZOU",
155
- "BF-NAM",
156
  "BF-ZON",
157
- "BF-KOT",
158
  "BF-ZIR",
 
 
 
 
 
159
  "BF-BAL",
160
- "BF-PAS",
 
161
  "BF-BAM",
162
- "BF-YAT",
163
  "BF-BAN",
164
- "BF-NAO",
 
165
  "BF-BAZ",
166
- "BF-YAG",
167
  "BF-BGR",
168
- "BF-KOW",
 
169
  "BF-BLG",
170
- "BF-TUI",
171
  "BF-BLK",
172
- "BF-PON",
173
  "BF-COM",
174
- "BF-TAP",
175
  "BF-GAN",
176
- "BF-NAY",
177
  "BF-GNA",
178
- "BF-SOR",
179
  "BF-GOU",
180
- "BF-LER",
181
  "BF-HOU",
182
- "BF-SOM",
183
  "BF-IOB",
184
- "BF-SEN",
185
  "BF-KAD",
186
- "BF-SNG",
187
  "BF-KEN",
188
- "BF-NOU",
189
  "BF-KMD",
 
190
  "BF-KMP",
191
- "BF-LOR"
 
 
 
 
192
  ],
193
  "BG": [],
194
  "BH": [],
195
  "BI": [
196
- "BI-BM",
197
- "BI-RY",
198
- "BI-BR",
199
- "BI-MA",
200
- "BI-CA",
201
  "BI-RT",
202
- "BI-CI",
203
- "BI-KY",
204
  "BI-GI",
205
- "BI-NG",
206
- "BI-KI",
207
- "BI-KR",
208
  "BI-BB",
209
- "BI-MW",
210
  "BI-BL",
211
- "BI-MU"
 
 
 
 
 
 
 
212
  ],
213
  "BJ": [],
214
  "BL": [],
@@ -217,10 +217,6 @@ wpautotermsStates.states = {
217
  "BO": [],
218
  "BQ": [],
219
  "BR": [
220
- "BR-RO",
221
- "BR-RR",
222
- "BR-RS",
223
- "BR-SC",
224
  "BR-SE",
225
  "BR-SP",
226
  "BR-TO",
@@ -243,7 +239,11 @@ wpautotermsStates.states = {
243
  "BR-PI",
244
  "BR-PR",
245
  "BR-RJ",
246
- "BR-RN"
 
 
 
 
247
  ],
248
  "BS": [],
249
  "BT": [],
@@ -252,31 +252,31 @@ wpautotermsStates.states = {
252
  "BY": [],
253
  "BZ": [],
254
  "CA": [
255
- "CA-NU",
256
- "CA-AB",
257
- "CA-SK",
258
- "CA-BC",
259
  "CA-MB",
260
- "CA-QC",
261
  "CA-NB",
 
262
  "CA-NL",
263
- "CA-PE",
264
  "CA-NS",
265
- "CA-YT",
266
  "CA-NT",
267
- "CA-ON"
 
 
 
 
 
268
  ],
269
  "CC": [],
270
  "CD": [
271
- "CD-OR",
272
- "CD-EQ",
273
- "CD-KA",
274
- "CD-KE",
275
- "CD-NK",
276
  "CD-KW",
 
277
  "CD-MA",
278
  "CD-BC",
 
279
  "CD-BN",
 
 
 
280
  "CD-SK"
281
  ],
282
  "CF": [],
@@ -286,27 +286,26 @@ wpautotermsStates.states = {
286
  "CK": [],
287
  "CL": [],
288
  "CM": [
289
- "CM-NO",
290
- "CM-NW",
291
- "CM-SW",
292
- "CM-OU",
293
- "CM-AD",
294
  "CM-SU",
295
  "CM-CE",
296
  "CM-EN",
297
  "CM-ES",
298
- "CM-LT"
 
 
 
 
 
299
  ],
300
  "CN": [
301
- "CN-46",
302
  "CN-51",
303
  "CN-52",
304
  "CN-53",
305
  "CN-61",
306
  "CN-62",
307
  "CN-63",
308
- "CN-13",
309
  "CN-71",
 
310
  "CN-14",
311
  "CN-21",
312
  "CN-22",
@@ -320,32 +319,33 @@ wpautotermsStates.states = {
320
  "CN-41",
321
  "CN-42",
322
  "CN-43",
323
- "CN-44"
 
324
  ],
325
  "CO": [],
326
  "CR": [
327
- "CR-A",
328
- "CR-C",
329
  "CR-G",
330
  "CR-H",
331
  "CR-L",
332
  "CR-P",
333
- "CR-SJ"
 
 
334
  ],
335
  "CU": [
336
- "CU-01",
337
- "CU-02",
338
- "CU-12",
339
- "CU-03",
340
  "CU-04",
341
- "CU-11",
342
  "CU-05",
343
- "CU-14",
344
  "CU-06",
345
- "CU-10",
346
  "CU-07",
347
- "CU-13",
348
  "CU-08",
 
 
 
 
 
349
  "CU-09"
350
  ],
351
  "CV": [],
@@ -354,30 +354,27 @@ wpautotermsStates.states = {
354
  "CY": [],
355
  "CZ": [],
356
  "DE": [
 
 
 
 
 
357
  "DE-SN",
 
 
358
  "DE-BB",
359
- "DE-BE",
360
- "DE-NI",
361
  "DE-SL",
 
 
362
  "DE-BW",
363
- "DE-BY",
364
- "DE-SH",
365
  "DE-TH",
366
- "DE-HB",
367
- "DE-HE",
368
- "DE-RP",
369
- "DE-ST",
370
- "DE-HH",
371
- "DE-MV",
372
  "DE-NW"
373
  ],
374
  "DJ": [],
375
  "DK": [],
376
  "DM": [],
377
  "DO": [
378
- "DO-04",
379
- "DO-05",
380
- "DO-06",
381
  "DO-07",
382
  "DO-08",
383
  "DO-09",
@@ -403,63 +400,62 @@ wpautotermsStates.states = {
403
  "DO-29",
404
  "DO-30",
405
  "DO-02",
406
- "DO-03"
 
 
 
407
  ],
408
  "DZ": [
409
- "DZ-05",
410
- "DZ-06",
411
- "DZ-07",
412
- "DZ-08",
413
- "DZ-47",
414
  "DZ-09",
415
  "DZ-10",
416
- "DZ-42",
417
  "DZ-11",
418
- "DZ-48",
419
  "DZ-12",
420
- "DZ-37",
421
  "DZ-13",
 
422
  "DZ-14",
423
- "DZ-33",
424
  "DZ-15",
 
425
  "DZ-16",
426
- "DZ-43",
427
  "DZ-17",
 
428
  "DZ-18",
429
- "DZ-38",
430
  "DZ-19",
 
431
  "DZ-20",
432
- "DZ-34",
433
  "DZ-21",
 
434
  "DZ-22",
435
- "DZ-44",
436
  "DZ-23",
 
437
  "DZ-24",
438
- "DZ-39",
439
  "DZ-25",
 
440
  "DZ-26",
441
- "DZ-35",
442
  "DZ-27",
 
443
  "DZ-28",
444
- "DZ-45",
445
  "DZ-29",
 
446
  "DZ-30",
447
- "DZ-40",
448
  "DZ-31",
449
- "DZ-32",
450
- "DZ-36",
451
  "DZ-01",
452
  "DZ-02",
453
- "DZ-46",
454
  "DZ-03",
455
  "DZ-04",
456
- "DZ-41"
 
 
 
 
 
 
457
  ],
458
  "EC": [
459
- "EC-U",
460
- "EC-W",
461
- "EC-X",
462
- "EC-Y",
463
  "EC-Z",
464
  "EC-A",
465
  "EC-B",
@@ -479,109 +475,113 @@ wpautotermsStates.states = {
479
  "EC-S",
480
  "EC-SD",
481
  "EC-SE",
482
- "EC-T"
483
- ],
 
 
 
 
484
  "EE": [],
485
  "EG": [],
486
  "EH": [],
487
  "ER": [
488
- "ER-AN",
489
- "ER-DK",
490
- "ER-DU",
491
  "ER-GB",
492
  "ER-MA",
493
- "ER-SK"
 
 
 
494
  ],
495
  "ES": [
496
- "ES-BI",
497
- "ES-P",
498
- "ES-BU",
499
- "ES-TO",
500
- "ES-SG",
501
- "ES-C",
502
- "ES-VA",
503
- "ES-CA",
504
- "ES-TF",
505
- "ES-LO",
506
- "ES-SA",
507
- "ES-Z",
508
- "ES-CC",
509
  "ES-TE",
510
- "ES-O",
511
  "ES-T",
512
- "ES-SS",
513
- "ES-LU",
 
 
 
 
514
  "ES-CO",
515
  "ES-CR",
516
- "ES-SO",
517
  "ES-CS",
518
- "ES-PO",
519
  "ES-CU",
 
 
520
  "ES-S",
521
- "ES-VI",
522
- "ES-M",
523
  "ES-GC",
524
- "ES-J",
525
  "ES-GI",
526
  "ES-GR",
527
- "ES-MU",
528
  "ES-GU",
 
529
  "ES-H",
530
- "ES-MA",
531
- "ES-HU",
532
- "ES-PM",
533
  "ES-A",
534
- "ES-L",
 
 
535
  "ES-AB",
536
  "ES-AL",
537
- "ES-NA",
538
- "ES-SE",
539
  "ES-ZA",
 
 
540
  "ES-AV",
541
- "ES-LE",
542
  "ES-B",
543
- "ES-OR",
544
  "ES-BA",
545
- "ES-V"
 
 
 
 
 
 
 
 
 
 
546
  ],
547
  "ET": [
548
- "ET-BE",
549
- "ET-GA",
550
- "ET-HA",
551
  "ET-TI",
552
- "ET-OR",
553
- "ET-SO",
554
  "ET-AF",
555
  "ET-AM",
556
- "ET-SN"
 
 
 
 
 
557
  ],
558
  "FI": [],
559
  "FJ": [],
560
  "FK": [],
561
  "FM": [
562
- "FM-PNI",
563
  "FM-YAP",
 
564
  "FM-KSA",
565
  "FM-TRK"
566
  ],
567
  "FO": [],
568
  "FR": [],
569
  "GA": [
570
- "GA-5",
571
- "GA-6",
572
- "GA-9",
573
- "GA-7",
574
- "GA-8",
575
  "GA-1",
576
  "GA-2",
 
577
  "GA-3",
578
- "GA-4"
 
 
 
 
579
  ],
580
  "GB": [],
581
  "GD": [],
582
  "GE": [
583
- "GE-AJ",
584
- "GE-AB"
585
  ],
586
  "GF": [],
587
  "GG": [],
@@ -592,22 +592,22 @@ wpautotermsStates.states = {
592
  "GN": [],
593
  "GP": [],
594
  "GQ": [
 
 
595
  "GQ-KN",
596
  "GQ-LI",
597
- "GQ-AN",
598
- "GQ-BN",
599
- "GQ-BS",
600
  "GQ-WN",
601
- "GQ-CS"
 
602
  ],
603
  "GR": [],
604
  "GS": [],
605
  "GT": [],
606
  "GU": [],
607
  "GW": [
608
- "GW-L",
609
  "GW-N",
610
- "GW-S"
 
611
  ],
612
  "GY": [],
613
  "HK": [],
@@ -617,36 +617,36 @@ wpautotermsStates.states = {
617
  "HT": [],
618
  "HU": [],
619
  "ID": [
620
- "ID-JT",
621
- "ID-ST",
622
  "ID-KB",
623
  "ID-KI",
624
  "ID-KR",
625
  "ID-KS",
626
  "ID-KT",
 
627
  "ID-LA",
628
- "ID-SU",
629
  "ID-MA",
630
  "ID-MU",
631
  "ID-NB",
632
  "ID-NT",
 
633
  "ID-PA",
 
634
  "ID-PB",
635
- "ID-SN",
636
  "ID-RI",
637
  "ID-SA",
638
  "ID-SB",
639
- "ID-SG",
640
  "ID-BA",
641
- "ID-SR",
642
  "ID-BB",
643
  "ID-BE",
644
  "ID-BT",
645
  "ID-GO",
 
646
  "ID-JA",
647
- "ID-SS",
648
  "ID-JB",
649
- "ID-JI"
 
 
650
  ],
651
  "IE": [
652
  "IE-L",
@@ -657,42 +657,38 @@ wpautotermsStates.states = {
657
  "IL": [],
658
  "IM": [],
659
  "IN": [
660
- "IN-SK",
661
- "IN-TN",
662
  "IN-AP",
663
  "IN-AR",
664
- "IN-WB",
665
  "IN-AS",
666
  "IN-BR",
667
  "IN-CT",
 
668
  "IN-GA",
669
  "IN-GJ",
670
  "IN-HP",
671
  "IN-HR",
 
672
  "IN-JH",
673
  "IN-JK",
674
  "IN-KA",
675
- "IN-TR",
676
  "IN-KL",
677
  "IN-MH",
678
  "IN-ML",
679
  "IN-MN",
680
  "IN-MP",
681
- "IN-UP",
682
  "IN-MZ",
683
  "IN-NL",
684
  "IN-OR",
685
  "IN-PB",
 
686
  "IN-RJ",
687
- "IN-UT"
 
688
  ],
689
  "IO": [],
690
  "IQ": [],
691
  "IR": [
692
- "IR-08",
693
- "IR-10",
694
- "IR-11",
695
- "IR-12",
696
  "IR-13",
697
  "IR-14",
698
  "IR-15",
@@ -718,139 +714,140 @@ wpautotermsStates.states = {
718
  "IR-04",
719
  "IR-05",
720
  "IR-06",
721
- "IR-07"
 
 
 
 
722
  ],
723
  "IS": [],
724
  "IT": [
725
- "IT-VR",
726
- "IT-VS",
727
- "IT-VT",
 
 
 
 
 
728
  "IT-SA",
729
- "IT-VV",
730
- "IT-AL",
731
- "IT-KR",
732
  "IT-SI",
733
- "IT-AN",
734
- "IT-LC",
735
  "IT-SO",
736
- "IT-PD",
737
- "IT-LE",
738
  "IT-SP",
739
- "IT-PE",
740
- "IT-LI",
741
  "IT-SR",
742
- "IT-PG",
743
- "IT-LO",
744
  "IT-SS",
745
- "IT-PI",
746
- "IT-LT",
747
  "IT-SV",
748
- "IT-PN",
749
  "IT-TA",
750
- "IT-PO",
751
- "IT-MB",
752
  "IT-TE",
753
- "IT-PR",
754
- "IT-MC",
755
  "IT-TN",
756
- "IT-PT",
757
- "IT-ME",
758
  "IT-TO",
759
- "IT-PU",
760
- "IT-MI",
761
  "IT-TP",
762
- "IT-LU",
763
- "IT-PV",
764
  "IT-TR",
765
- "IT-MN",
766
- "IT-PZ",
767
- "IT-MS",
768
- "IT-MO",
769
  "IT-TS",
770
  "IT-NU",
771
- "IT-OG",
772
- "IT-RA",
773
- "IT-OR",
774
- "IT-OT",
775
- "IT-PA",
776
- "IT-PC",
777
  "IT-TV",
778
- "IT-AO",
779
- "IT-AP",
780
- "IT-RC",
781
- "IT-AQ",
782
- "IT-AR",
783
- "IT-MT",
784
- "IT-AT",
785
- "IT-AV",
786
  "IT-UD",
787
- "IT-BA",
788
- "IT-BG",
789
- "IT-RE",
790
- "IT-BI",
791
- "IT-BL",
792
- "IT-NA",
793
- "IT-BN",
794
- "IT-BO",
795
  "IT-VA",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  "IT-BR",
 
797
  "IT-BS",
798
- "IT-RG",
799
  "IT-BT",
800
  "IT-BZ",
801
- "IT-NO",
802
  "IT-CA",
 
803
  "IT-CB",
804
- "IT-VB",
805
  "IT-CE",
 
806
  "IT-CH",
807
- "IT-RI",
808
  "IT-CI",
809
  "IT-CL",
810
  "IT-CN",
 
811
  "IT-CO",
812
- "IT-VC",
813
  "IT-CR",
 
814
  "IT-CS",
815
- "IT-RM",
816
  "IT-CT",
817
  "IT-CZ",
818
  "IT-EN",
 
819
  "IT-FC",
820
- "IT-VE",
821
  "IT-FE",
 
822
  "IT-FG",
823
- "IT-RN",
824
  "IT-FI",
825
  "IT-FM",
826
  "IT-FR",
 
827
  "IT-GE",
828
- "IT-VI",
829
  "IT-GO",
830
  "IT-GR",
831
- "IT-RO",
832
  "IT-IM",
833
  "IT-IS",
834
- "IT-AG"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
835
  ],
836
  "JE": [],
837
  "JM": [],
838
  "JO": [],
839
  "JP": [],
840
  "KE": [
 
 
 
841
  "KE-200",
842
  "KE-300",
843
  "KE-400",
844
- "KE-500",
845
- "KE-700",
846
- "KE-800",
847
- "KE-110"
848
  ],
849
  "KG": [],
850
  "KH": [
851
- "KH-11",
852
- "KH-13",
853
- "KH-14",
854
  "KH-15",
855
  "KH-16",
856
  "KH-17",
@@ -867,71 +864,74 @@ wpautotermsStates.states = {
867
  "KH-8",
868
  "KH-9",
869
  "KH-1",
870
- "KH-10"
 
 
 
871
  ],
872
  "KI": [],
873
  "KM": [],
874
  "KN": [
875
- "KN-N",
876
- "KN-K"
877
  ],
878
  "KP": [
 
 
 
879
  "KP-04",
880
  "KP-05",
 
881
  "KP-06",
882
  "KP-07",
883
- "KP-08",
884
- "KP-10",
885
- "KP-02",
886
- "KP-03",
887
  "KP-09"
888
  ],
889
  "KR": [
890
- "KR-46",
891
  "KR-42",
892
- "KR-49",
893
- "KR-45",
894
- "KR-48",
895
- "KR-44",
896
  "KR-47",
897
  "KR-41",
 
 
 
 
898
  "KR-43"
899
  ],
900
  "KW": [],
901
  "KY": [],
902
  "KZ": [],
903
  "LA": [
904
- "LA-PH",
905
- "LA-BL",
906
- "LA-XE",
907
- "LA-CH",
908
- "LA-VI",
909
- "LA-HO",
910
- "LA-OU",
911
  "LA-KH",
912
- "LA-SV",
913
  "LA-LM",
 
 
 
914
  "LA-LP",
915
  "LA-AT",
916
- "LA-XA",
917
- "LA-XS",
918
  "LA-BK",
919
- "LA-XI",
 
 
 
 
 
920
  "LA-SL"
921
  ],
922
  "LB": [],
923
  "LC": [],
924
  "LI": [],
925
  "LK": [
926
- "LK-8",
927
  "LK-1",
928
  "LK-2",
929
  "LK-3",
930
  "LK-4",
931
  "LK-5",
932
- "LK-9",
933
  "LK-6",
934
- "LK-7"
 
935
  ],
936
  "LR": [],
937
  "LS": [],
@@ -940,52 +940,52 @@ wpautotermsStates.states = {
940
  "LV": [],
941
  "LY": [],
942
  "MA": [
943
- "MA-HAJ",
944
- "MA-OUA",
945
- "MA-TNT",
946
- "MA-NOU",
947
- "MA-NAD",
948
- "MA-ESM",
949
- "MA-LAA",
950
- "MA-JRA",
951
- "MA-SEF",
952
- "MA-HAO",
953
  "MA-ZAG",
954
- "MA-KEN",
955
- "MA-HOC",
 
 
956
  "MA-ASZ",
957
- "MA-KHO",
958
  "MA-AZI",
 
959
  "MA-BEM",
960
- "MA-MED",
961
- "MA-SIK",
962
  "MA-BER",
963
- "MA-KES",
964
  "MA-BES",
965
- "MA-SET",
966
  "MA-BOD",
967
- "MA-IFR",
 
 
968
  "MA-BOM",
969
- "MA-MOU",
970
- "MA-FIG",
971
- "MA-TIZ",
972
  "MA-CHE",
973
- "MA-TAZ",
974
  "MA-CHI",
975
- "MA-KHE",
976
  "MA-CHT",
977
- "MA-SAF",
978
- "MA-TAT",
979
  "MA-ERR",
980
- "MA-ESI",
981
- "MA-LAR",
982
- "MA-TAR",
983
- "MA-GUE",
984
- "MA-TAO",
985
- "MA-KHN",
986
  "MA-OUD",
987
- "MA-TAI",
988
- "MA-JDI"
 
 
 
 
 
 
 
 
 
 
 
 
989
  ],
990
  "MC": [],
991
  "MD": [],
@@ -997,11 +997,11 @@ wpautotermsStates.states = {
997
  "ML": [],
998
  "MM": [
999
  "MM-13",
 
1000
  "MM-12",
1001
- "MM-17",
1002
  "MM-15",
1003
  "MM-16",
1004
- "MM-11",
1005
  "MM-14"
1006
  ],
1007
  "MN": [
@@ -1042,9 +1042,6 @@ wpautotermsStates.states = {
1042
  ],
1043
  "MW": [],
1044
  "MX": [
1045
- "MX-CHP",
1046
- "MX-COA",
1047
- "MX-COL",
1048
  "MX-DUR",
1049
  "MX-GRO",
1050
  "MX-GUA",
@@ -1056,6 +1053,7 @@ wpautotermsStates.states = {
1056
  "MX-NAY",
1057
  "MX-NLE",
1058
  "MX-OAX",
 
1059
  "MX-PUE",
1060
  "MX-QUE",
1061
  "MX-ROO",
@@ -1067,38 +1065,40 @@ wpautotermsStates.states = {
1067
  "MX-TLA",
1068
  "MX-VER",
1069
  "MX-YUC",
1070
- "MX-ZAC",
1071
  "MX-AGU",
1072
  "MX-BCN",
1073
  "MX-BCS",
1074
  "MX-CAM",
1075
- "MX-CHH"
 
 
 
1076
  ],
1077
  "MY": [
1078
  "MY-13",
1079
- "MY-12",
1080
- "MY-06",
1081
- "MY-09",
1082
- "MY-07",
1083
  "MY-01",
1084
- "MY-08",
1085
  "MY-02",
 
1086
  "MY-03",
1087
- "MY-11",
1088
  "MY-04",
 
1089
  "MY-05",
 
 
 
 
1090
  "MY-10"
1091
  ],
1092
  "MZ": [
1093
- "MZ-L",
1094
- "MZ-Q",
1095
- "MZ-N",
1096
- "MZ-P",
1097
  "MZ-A",
1098
  "MZ-B",
1099
- "MZ-T",
1100
  "MZ-G",
1101
  "MZ-I",
 
 
 
 
1102
  "MZ-S"
1103
  ],
1104
  "NA": [],
@@ -1106,57 +1106,57 @@ wpautotermsStates.states = {
1106
  "NE": [],
1107
  "NF": [],
1108
  "NG": [
1109
- "NG-KN",
1110
- "NG-YO",
1111
- "NG-KO",
1112
- "NG-KT",
1113
  "NG-KW",
1114
  "NG-LA",
1115
  "NG-NA",
1116
  "NG-NI",
1117
- "NG-ZA",
1118
  "NG-OG",
1119
  "NG-ON",
1120
- "NG-PL",
1121
  "NG-OS",
1122
  "NG-OY",
 
1123
  "NG-AB",
 
1124
  "NG-AD",
1125
  "NG-AK",
1126
  "NG-AN",
1127
- "NG-RI",
1128
  "NG-BA",
1129
  "NG-BE",
1130
  "NG-BO",
 
1131
  "NG-BY",
1132
  "NG-CR",
1133
  "NG-DE",
1134
- "NG-SO",
1135
  "NG-EB",
1136
  "NG-ED",
1137
  "NG-EK",
1138
  "NG-EN",
 
1139
  "NG-GO",
1140
- "NG-TA",
1141
  "NG-IM",
1142
  "NG-JI",
1143
  "NG-KD",
1144
- "NG-KE"
 
 
 
 
1145
  ],
1146
  "NI": [],
1147
  "NL": [
1148
- "NL-DR",
1149
- "NL-ZE",
1150
- "NL-FL",
1151
- "NL-GR",
1152
- "NL-FR",
1153
- "NL-UT",
1154
- "NL-NH",
1155
  "NL-GE",
1156
- "NL-NB",
1157
  "NL-ZH",
 
 
 
 
 
 
 
1158
  "NL-OV",
1159
- "NL-LI"
 
1160
  ],
1161
  "NO": [],
1162
  "NP": [],
@@ -1165,39 +1165,67 @@ wpautotermsStates.states = {
1165
  "NZ": [],
1166
  "OM": [],
1167
  "PA": [
1168
- "PA-8",
1169
- "PA-1",
1170
- "PA-2",
1171
- "PA-3",
1172
  "PA-4",
1173
  "PA-5",
1174
  "PA-6",
1175
  "PA-7",
 
 
 
 
1176
  "PA-9"
1177
  ],
1178
  "PE": [],
1179
  "PF": [],
1180
  "PG": [
1181
- "PG-CPM",
1182
- "PG-SAN",
1183
- "PG-WBK",
1184
- "PG-EBR",
1185
- "PG-MPM",
1186
- "PG-EHG",
1187
  "PG-EPW",
1188
- "PG-MPL",
1189
  "PG-ESW",
1190
- "PG-NPP",
1191
- "PG-SHM",
1192
  "PG-GPK",
1193
- "PG-WPD",
1194
  "PG-MBA",
 
 
1195
  "PG-NIK",
 
 
 
 
 
 
1196
  "PG-WHM",
1197
- "PG-CPK",
1198
- "PG-MRL"
1199
  ],
1200
  "PH": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1201
  "PH-MAD",
1202
  "PH-MAG",
1203
  "PH-MAS",
@@ -1235,6 +1263,7 @@ wpautotermsStates.states = {
1235
  "PH-ZAS",
1236
  "PH-ZMB",
1237
  "PH-ZSI",
 
1238
  "PH-ABR",
1239
  "PH-AGN",
1240
  "PH-AGS",
@@ -1249,60 +1278,32 @@ wpautotermsStates.states = {
1249
  "PH-BIL",
1250
  "PH-BOH",
1251
  "PH-BTG",
1252
- "PH-BTN",
1253
- "PH-BUK",
1254
- "PH-BUL",
1255
- "PH-CAG",
1256
- "PH-CAM",
1257
- "PH-CAN",
1258
- "PH-CAP",
1259
- "PH-CAS",
1260
- "PH-CAT",
1261
- "PH-CAV",
1262
- "PH-CEB",
1263
- "PH-COM",
1264
- "PH-DAO",
1265
- "PH-DAS",
1266
- "PH-DAV",
1267
- "PH-DIN",
1268
- "PH-EAS",
1269
- "PH-GUI",
1270
- "PH-IFU",
1271
- "PH-ILI",
1272
- "PH-ILN",
1273
- "PH-ILS",
1274
- "PH-ISA",
1275
- "PH-KAL",
1276
- "PH-LAG",
1277
- "PH-LAN",
1278
- "PH-LAS",
1279
- "PH-LEY",
1280
- "PH-LUN"
1281
  ],
1282
  "PK": [
1283
- "PK-KP",
1284
  "PK-PB",
1285
  "PK-SD",
1286
  "PK-TA",
1287
- "PK-BA"
 
1288
  ],
1289
  "PL": [
1290
- "PL-LB",
1291
- "PL-ZP",
1292
- "PL-LD",
1293
- "PL-PM",
1294
- "PL-LU",
1295
- "PL-WP",
1296
  "PL-MA",
1297
- "PL-PK",
1298
  "PL-MZ",
1299
- "PL-WN",
 
1300
  "PL-OP",
1301
- "PL-PD",
1302
  "PL-DS",
1303
- "PL-SL",
 
1304
  "PL-KP",
1305
- "PL-SK"
 
 
 
 
 
 
1306
  ],
1307
  "PM": [],
1308
  "PN": [],
@@ -1310,22 +1311,22 @@ wpautotermsStates.states = {
1310
  "PS": [],
1311
  "PT": [],
1312
  "PW": [
1313
- "PW-150",
1314
- "PW-370",
1315
- "PW-212",
1316
- "PW-222",
1317
- "PW-214",
1318
- "PW-350",
1319
- "PW-002",
1320
  "PW-218",
1321
  "PW-004",
1322
- "PW-228",
1323
  "PW-227",
1324
- "PW-010",
1325
  "PW-226",
 
1326
  "PW-050",
 
 
1327
  "PW-100",
1328
- "PW-224"
 
 
 
 
 
 
1329
  ],
1330
  "PY": [],
1331
  "QA": [],
@@ -1334,56 +1335,56 @@ wpautotermsStates.states = {
1334
  "RS": [],
1335
  "RU": [],
1336
  "RW": [
1337
- "RW-05",
1338
  "RW-04",
1339
  "RW-02",
 
1340
  "RW-03"
1341
  ],
1342
  "SA": [
1343
- "SA-08",
1344
- "SA-01",
1345
- "SA-12",
1346
- "SA-02",
1347
  "SA-03",
1348
- "SA-11",
1349
  "SA-04",
1350
- "SA-14",
1351
  "SA-05",
1352
- "SA-10",
1353
  "SA-06",
 
1354
  "SA-07",
1355
- "SA-09"
 
 
 
 
 
1356
  ],
1357
  "SB": [
1358
- "SB-WE",
1359
- "SB-GU",
1360
- "SB-IS",
1361
- "SB-TE",
1362
  "SB-MK",
1363
  "SB-ML",
 
1364
  "SB-RB",
1365
  "SB-CE",
1366
- "SB-CH"
 
 
 
1367
  ],
1368
  "SC": [],
1369
  "SD": [
1370
- "SD-GZ",
1371
- "SD-KA",
1372
- "SD-NR",
1373
- "SD-KS",
1374
- "SD-DC",
1375
- "SD-SI",
1376
- "SD-DE",
1377
- "SD-NO",
1378
  "SD-KN",
 
1379
  "SD-DN",
1380
- "SD-RS",
1381
  "SD-DS",
1382
- "SD-KH",
1383
- "SD-DW",
1384
  "SD-NW",
 
 
1385
  "SD-GD",
1386
- "SD-NB"
 
 
 
 
 
 
 
1387
  ],
1388
  "SE": [],
1389
  "SG": [],
@@ -1392,8 +1393,8 @@ wpautotermsStates.states = {
1392
  "SJ": [],
1393
  "SK": [],
1394
  "SL": [
1395
- "SL-E",
1396
  "SL-N",
 
1397
  "SL-S"
1398
  ],
1399
  "SM": [],
@@ -1401,16 +1402,16 @@ wpautotermsStates.states = {
1401
  "SO": [],
1402
  "SR": [],
1403
  "SS": [
1404
- "SS-EC",
1405
- "SS-EE8",
1406
- "SS-EW",
1407
  "SS-JG",
1408
- "SS-WR",
1409
  "SS-LK",
 
1410
  "SS-NU",
1411
- "SS-UY",
1412
  "SS-BN",
1413
- "SS-BW"
 
 
 
 
1414
  ],
1415
  "ST": [],
1416
  "SV": [],
@@ -1422,82 +1423,82 @@ wpautotermsStates.states = {
1422
  "TF": [],
1423
  "TG": [],
1424
  "TH": [
1425
- "TH-70",
1426
- "TH-63",
1427
- "TH-91",
1428
- "TH-30",
1429
- "TH-46",
1430
- "TH-67",
1431
- "TH-31",
1432
- "TH-90",
1433
- "TH-32",
1434
- "TH-57",
1435
- "TH-66",
1436
  "TH-33",
1437
- "TH-86",
1438
  "TH-34",
1439
- "TH-52",
1440
- "TH-65",
1441
  "TH-35",
1442
- "TH-74",
1443
  "TH-36",
1444
- "TH-47",
1445
- "TH-62",
1446
  "TH-37",
1447
- "TH-77",
 
1448
  "TH-39",
1449
- "TH-58",
 
1450
  "TH-40",
1451
- "TH-82",
1452
  "TH-41",
1453
- "TH-53",
1454
  "TH-42",
 
1455
  "TH-43",
1456
- "TH-48",
1457
- "TH-83",
 
 
 
 
1458
  "TH-11",
1459
- "TH-60",
 
1460
  "TH-12",
1461
- "TH-73",
 
 
1462
  "TH-13",
1463
- "TH-54",
1464
- "TH-61",
1465
  "TH-14",
1466
- "TH-76",
1467
- "TH-92",
 
1468
  "TH-15",
1469
- "TH-49",
1470
  "TH-16",
1471
- "TH-81",
1472
- "TH-S",
1473
- "TH-84",
1474
  "TH-17",
1475
- "TH-44",
1476
  "TH-18",
1477
- "TH-64",
1478
- "TH-96",
1479
  "TH-19",
1480
- "TH-55",
1481
  "TH-20",
1482
- "TH-95",
1483
- "TH-93",
1484
  "TH-21",
1485
- "TH-50",
1486
  "TH-22",
1487
- "TH-94",
1488
- "TH-85",
 
1489
  "TH-23",
1490
- "TH-45",
1491
- "TH-72",
1492
  "TH-24",
1493
- "TH-75",
 
 
1494
  "TH-25",
1495
- "TH-56",
1496
- "TH-71",
1497
  "TH-26",
1498
- "TH-80",
 
1499
  "TH-27",
1500
- "TH-51"
 
 
 
 
1501
  ],
1502
  "TJ": [],
1503
  "TK": [],
@@ -1506,97 +1507,93 @@ wpautotermsStates.states = {
1506
  "TN": [],
1507
  "TO": [],
1508
  "TR": [
1509
- "TR-48",
1510
- "TR-76",
1511
- "TR-58",
1512
- "TR-17",
1513
- "TR-32",
1514
- "TR-18",
1515
- "TR-75",
1516
- "TR-19",
1517
- "TR-43",
1518
  "TR-20",
1519
- "TR-74",
1520
  "TR-21",
1521
- "TR-38",
 
1522
  "TR-22",
1523
- "TR-73",
1524
- "TR-59",
1525
  "TR-23",
1526
- "TR-33",
 
1527
  "TR-24",
1528
- "TR-72",
1529
- "TR-81",
1530
  "TR-25",
1531
- "TR-44",
1532
- "TR-55",
1533
  "TR-26",
1534
- "TR-71",
1535
- "TR-80",
1536
  "TR-27",
1537
- "TR-39",
1538
- "TR-54",
1539
  "TR-28",
1540
- "TR-70",
1541
- "TR-60",
1542
  "TR-29",
1543
- "TR-34",
1544
- "TR-53",
1545
  "TR-30",
1546
- "TR-69",
1547
  "TR-31",
1548
- "TR-45",
1549
- "TR-52",
 
1550
  "TR-01",
1551
- "TR-68",
 
1552
  "TR-02",
1553
- "TR-40",
1554
- "TR-51",
1555
  "TR-03",
1556
- "TR-67",
1557
- "TR-61",
1558
  "TR-04",
1559
- "TR-35",
1560
- "TR-50",
1561
  "TR-05",
1562
- "TR-66",
1563
- "TR-56",
1564
  "TR-06",
1565
- "TR-46",
1566
- "TR-49",
1567
  "TR-07",
1568
- "TR-65",
1569
  "TR-08",
1570
- "TR-41",
1571
  "TR-09",
1572
- "TR-64",
1573
- "TR-62",
1574
  "TR-10",
1575
- "TR-36",
1576
  "TR-11",
1577
- "TR-79",
1578
- "TR-57",
1579
  "TR-12",
1580
- "TR-47",
 
1581
  "TR-13",
1582
- "TR-78",
 
1583
  "TR-14",
1584
- "TR-42",
 
1585
  "TR-15",
1586
- "TR-77",
1587
- "TR-63",
1588
  "TR-16",
1589
- "TR-37"
 
 
 
 
 
 
 
 
1590
  ],
1591
  "TT": [],
1592
  "TV": [],
1593
  "TW": [],
1594
  "TZ": [],
1595
  "UA": [
1596
- "UA-59",
1597
- "UA-61",
1598
- "UA-63",
1599
- "UA-65",
1600
  "UA-68",
1601
  "UA-71",
1602
  "UA-74",
@@ -1617,78 +1614,81 @@ wpautotermsStates.states = {
1617
  "UA-48",
1618
  "UA-51",
1619
  "UA-53",
1620
- "UA-56"
 
 
 
 
1621
  ],
1622
  "UG": [],
1623
  "UM": [
1624
- "UM-79",
1625
- "UM-81",
1626
- "UM-84",
1627
  "UM-86",
 
1628
  "UM-67",
1629
- "UM-95",
1630
  "UM-71",
1631
  "UM-76",
1632
- "UM-89"
 
 
 
1633
  ],
1634
  "US": [
1635
- "US-MN",
1636
- "US-MO",
1637
- "US-PA",
1638
- "US-VA",
1639
- "US-MS",
1640
- "US-NV",
1641
  "US-MT",
1642
- "US-UT",
1643
  "US-NC",
1644
- "US-TX",
1645
- "US-ND",
1646
  "US-AK",
 
1647
  "US-AL",
1648
  "US-AR",
1649
- "US-NY",
1650
  "US-AZ",
1651
- "US-NE",
1652
  "US-CA",
 
1653
  "US-CO",
1654
- "US-RI",
1655
  "US-CT",
1656
- "US-OH",
 
1657
  "US-DE",
1658
  "US-FL",
1659
- "US-NH",
1660
  "US-GA",
1661
- "US-SC",
1662
  "US-HI",
1663
  "US-IA",
1664
- "US-OK",
1665
  "US-ID",
1666
- "US-WY",
1667
  "US-IL",
1668
- "US-NJ",
1669
  "US-IN",
1670
  "US-WV",
1671
  "US-KS",
1672
- "US-SD",
1673
  "US-KY",
1674
- "US-WI",
1675
  "US-LA",
1676
- "US-OR",
 
1677
  "US-MA",
1678
- "US-WA",
1679
  "US-MD",
1680
- "US-NM",
 
1681
  "US-ME",
1682
- "US-VT",
1683
  "US-MI",
1684
- "US-TN"
 
 
 
 
 
 
 
1685
  ],
1686
  "UY": [],
1687
  "UZ": [],
1688
  "VA": [],
1689
  "VC": [],
1690
  "VE": [
1691
- "VE-Z",
1692
  "VE-B",
1693
  "VE-C",
1694
  "VE-D",
@@ -1710,113 +1710,114 @@ wpautotermsStates.states = {
1710
  "VE-U",
1711
  "VE-V",
1712
  "VE-X",
1713
- "VE-Y"
 
1714
  ],
1715
  "VG": [],
1716
  "VI": [],
1717
  "VN": [
1718
- "VN-39",
1719
- "VN-40",
1720
- "VN-57",
1721
- "VN-01",
1722
- "VN-02",
1723
- "VN-52",
1724
  "VN-03",
1725
  "VN-04",
1726
- "VN-46",
1727
  "VN-05",
1728
  "VN-06",
1729
- "VN-58",
 
1730
  "VN-07",
1731
  "VN-09",
1732
- "VN-53",
 
1733
  "VN-13",
1734
- "VN-73",
1735
  "VN-14",
1736
- "VN-47",
 
1737
  "VN-15",
1738
- "VN-72",
1739
  "VN-18",
1740
- "VN-41",
 
1741
  "VN-20",
1742
- "VN-71",
1743
  "VN-21",
1744
- "VN-54",
 
1745
  "VN-22",
1746
  "VN-70",
1747
  "VN-23",
1748
- "VN-49",
 
1749
  "VN-24",
1750
- "VN-69",
1751
  "VN-25",
1752
- "VN-43",
 
 
1753
  "VN-26",
1754
- "VN-68",
1755
  "VN-27",
1756
- "VN-55",
1757
  "VN-28",
1758
- "VN-67",
1759
  "VN-29",
1760
- "VN-50",
1761
  "VN-30",
1762
- "VN-66",
1763
  "VN-31",
1764
- "VN-44",
1765
  "VN-32",
1766
- "VN-63",
1767
  "VN-33",
1768
- "VN-56",
 
1769
  "VN-34",
1770
- "VN-61",
1771
  "VN-35",
1772
- "VN-51",
1773
  "VN-36",
1774
- "VN-59",
1775
  "VN-37",
1776
- "VN-45"
 
 
 
 
 
 
 
1777
  ],
1778
  "VU": [
1779
- "VU-TOB",
1780
- "VU-MAP",
1781
  "VU-PAM",
1782
  "VU-SAM",
1783
  "VU-SEE",
1784
- "VU-TAE"
 
 
1785
  ],
1786
  "WF": [],
1787
  "WS": [],
1788
  "YE": [],
1789
  "YT": [],
1790
  "ZA": [
1791
- "ZA-EC",
1792
- "ZA-FS",
1793
- "ZA-ZN",
1794
- "ZA-GP",
1795
  "ZA-LP",
1796
  "ZA-MP",
1797
  "ZA-NC",
1798
  "ZA-NW",
1799
- "ZA-WC"
 
 
 
 
1800
  ],
1801
  "ZM": [
1802
- "ZM-08",
1803
- "ZM-01",
1804
- "ZM-02",
1805
  "ZM-03",
1806
  "ZM-04",
1807
  "ZM-05",
1808
  "ZM-06",
1809
  "ZM-07",
1810
- "ZM-09"
 
 
 
1811
  ],
1812
  "ZW": [
1813
- "ZW-MN",
1814
- "ZW-MW",
1815
- "ZW-MV",
1816
  "ZW-MA",
 
1817
  "ZW-MC",
1818
- "ZW-MS",
1819
  "ZW-ME",
1820
- "ZW-MI"
 
 
 
1821
  ]
1822
  };
5
  "AD": [],
6
  "AE": [],
7
  "AF": [
8
+ "AF-WAR",
 
 
9
  "AF-BAM",
10
  "AF-BDG",
11
  "AF-BDS",
13
  "AF-DAY",
14
  "AF-FRA",
15
  "AF-FYB",
16
+ "AF-ZAB",
17
  "AF-GHA",
18
  "AF-GHO",
19
  "AF-HEL",
23
  "AF-KAN",
24
  "AF-KAP",
25
  "AF-KDZ",
 
26
  "AF-KHO",
27
  "AF-KNR",
28
  "AF-LAG",
29
  "AF-LOG",
30
  "AF-NAN",
31
  "AF-NIM",
 
32
  "AF-NUR",
33
  "AF-PAN",
34
  "AF-PAR",
35
  "AF-PIA",
36
  "AF-PKA",
37
+ "AF-URU",
38
  "AF-SAM",
39
+ "AF-SAR",
40
+ "AF-TAK",
41
+ "AF-BAL"
42
  ],
43
  "AG": [],
44
  "AI": [],
45
  "AL": [],
46
  "AM": [
 
 
 
 
 
47
  "AM-KT",
48
  "AM-LO",
49
+ "AM-TV",
50
  "AM-SH",
51
  "AM-AG",
52
+ "AM-SU",
53
  "AM-AR",
54
+ "AM-AV",
55
+ "AM-ER",
56
+ "AM-GR",
57
  "AM-VD"
58
  ],
59
  "AO": [
60
+ "AO-BIE",
61
  "AO-MOX",
62
+ "AO-CAB",
 
63
  "AO-LNO",
64
+ "AO-CCU",
65
+ "AO-MAL",
66
+ "AO-CNN",
67
+ "AO-HUI",
68
  "AO-ZAI",
69
+ "AO-CNO",
70
  "AO-LUA",
71
+ "AO-CUS",
 
 
 
72
  "AO-HUA",
73
+ "AO-UIG",
74
+ "AO-BGO",
75
  "AO-NAM",
76
+ "AO-BGU",
77
  "AO-LSU"
78
  ],
79
  "AQ": [],
80
  "AR": [
 
 
 
 
81
  "AR-K",
82
  "AR-L",
83
  "AR-M",
95
  "AR-Z",
96
  "AR-A",
97
  "AR-B",
98
+ "AR-D",
99
+ "AR-E",
100
+ "AR-G",
101
+ "AR-H",
102
+ "AR-J"
103
  ],
104
  "AS": [],
105
  "AT": [
 
 
 
106
  "AT-1",
 
107
  "AT-2",
108
+ "AT-9",
109
  "AT-3",
110
  "AT-4",
111
+ "AT-5",
112
+ "AT-6",
113
+ "AT-7",
114
+ "AT-8"
115
  ],
116
  "AU": [
 
117
  "AU-WA",
 
 
118
  "AU-ACT",
119
  "AU-NSW",
120
  "AU-NT",
121
+ "AU-QLD",
122
+ "AU-SA",
123
+ "AU-TAS",
124
+ "AU-VIC"
125
  ],
126
  "AW": [],
127
  "AX": [],
132
  "BB": [],
133
  "BD": [],
134
  "BE": [
 
 
 
 
135
  "BE-WLX",
 
136
  "BE-VAN",
 
137
  "BE-VBR",
138
+ "BE-WLG",
139
+ "BE-WNA",
140
+ "BE-VLI",
141
+ "BE-WHT",
142
+ "BE-VOV",
143
+ "BE-VWV",
144
+ "BE-WBR"
145
  ],
146
  "BF": [
147
+ "BF-SOM",
 
 
 
 
 
 
 
 
148
  "BF-ZON",
149
+ "BF-PON",
150
  "BF-ZIR",
151
+ "BF-NAY",
152
+ "BF-YAT",
153
+ "BF-LER",
154
+ "BF-YAG",
155
+ "BF-SEN",
156
  "BF-BAL",
157
+ "BF-TUI",
158
+ "BF-NOU",
159
  "BF-BAM",
160
+ "BF-SMT",
161
  "BF-BAN",
162
+ "BF-TAP",
163
+ "BF-LOR",
164
  "BF-BAZ",
165
+ "BF-ZOU",
166
  "BF-BGR",
167
+ "BF-SOR",
168
+ "BF-SIS",
169
  "BF-BLG",
 
170
  "BF-BLK",
171
+ "BF-OUB",
172
  "BF-COM",
 
173
  "BF-GAN",
174
+ "BF-MOU",
175
  "BF-GNA",
 
176
  "BF-GOU",
177
+ "BF-KOT",
178
  "BF-HOU",
 
179
  "BF-IOB",
180
+ "BF-OUD",
181
  "BF-KAD",
 
182
  "BF-KEN",
183
+ "BF-NAM",
184
  "BF-KMD",
185
+ "BF-SNG",
186
  "BF-KMP",
187
+ "BF-KOW",
188
+ "BF-KOP",
189
+ "BF-KOS",
190
+ "BF-PAS",
191
+ "BF-NAO"
192
  ],
193
  "BG": [],
194
  "BH": [],
195
  "BI": [
196
+ "BI-NG",
 
 
 
 
197
  "BI-RT",
198
+ "BI-MW",
 
199
  "BI-GI",
200
+ "BI-KY",
 
 
201
  "BI-BB",
202
+ "BI-MU",
203
  "BI-BL",
204
+ "BI-KR",
205
+ "BI-BM",
206
+ "BI-BR",
207
+ "BI-KI",
208
+ "BI-CA",
209
+ "BI-RY",
210
+ "BI-CI",
211
+ "BI-MA"
212
  ],
213
  "BJ": [],
214
  "BL": [],
217
  "BO": [],
218
  "BQ": [],
219
  "BR": [
 
 
 
 
220
  "BR-SE",
221
  "BR-SP",
222
  "BR-TO",
239
  "BR-PI",
240
  "BR-PR",
241
  "BR-RJ",
242
+ "BR-RN",
243
+ "BR-RO",
244
+ "BR-RR",
245
+ "BR-RS",
246
+ "BR-SC"
247
  ],
248
  "BS": [],
249
  "BT": [],
252
  "BY": [],
253
  "BZ": [],
254
  "CA": [
 
 
 
 
255
  "CA-MB",
 
256
  "CA-NB",
257
+ "CA-QC",
258
  "CA-NL",
 
259
  "CA-NS",
260
+ "CA-PE",
261
  "CA-NT",
262
+ "CA-NU",
263
+ "CA-ON",
264
+ "CA-AB",
265
+ "CA-YT",
266
+ "CA-BC",
267
+ "CA-SK"
268
  ],
269
  "CC": [],
270
  "CD": [
 
 
 
 
 
271
  "CD-KW",
272
+ "CD-OR",
273
  "CD-MA",
274
  "CD-BC",
275
+ "CD-NK",
276
  "CD-BN",
277
+ "CD-EQ",
278
+ "CD-KA",
279
+ "CD-KE",
280
  "CD-SK"
281
  ],
282
  "CF": [],
286
  "CK": [],
287
  "CL": [],
288
  "CM": [
 
 
 
 
 
289
  "CM-SU",
290
  "CM-CE",
291
  "CM-EN",
292
  "CM-ES",
293
+ "CM-OU",
294
+ "CM-LT",
295
+ "CM-NO",
296
+ "CM-NW",
297
+ "CM-AD",
298
+ "CM-SW"
299
  ],
300
  "CN": [
 
301
  "CN-51",
302
  "CN-52",
303
  "CN-53",
304
  "CN-61",
305
  "CN-62",
306
  "CN-63",
 
307
  "CN-71",
308
+ "CN-13",
309
  "CN-14",
310
  "CN-21",
311
  "CN-22",
319
  "CN-41",
320
  "CN-42",
321
  "CN-43",
322
+ "CN-44",
323
+ "CN-46"
324
  ],
325
  "CO": [],
326
  "CR": [
 
 
327
  "CR-G",
328
  "CR-H",
329
  "CR-L",
330
  "CR-P",
331
+ "CR-SJ",
332
+ "CR-A",
333
+ "CR-C"
334
  ],
335
  "CU": [
336
+ "CU-13",
 
 
 
337
  "CU-04",
 
338
  "CU-05",
339
+ "CU-12",
340
  "CU-06",
 
341
  "CU-07",
342
+ "CU-11",
343
  "CU-08",
344
+ "CU-01",
345
+ "CU-10",
346
+ "CU-14",
347
+ "CU-02",
348
+ "CU-03",
349
  "CU-09"
350
  ],
351
  "CV": [],
354
  "CY": [],
355
  "CZ": [],
356
  "DE": [
357
+ "DE-HB",
358
+ "DE-ST",
359
+ "DE-HE",
360
+ "DE-NI",
361
+ "DE-HH",
362
  "DE-SN",
363
+ "DE-MV",
364
+ "DE-SH",
365
  "DE-BB",
 
 
366
  "DE-SL",
367
+ "DE-BE",
368
+ "DE-RP",
369
  "DE-BW",
 
 
370
  "DE-TH",
371
+ "DE-BY",
 
 
 
 
 
372
  "DE-NW"
373
  ],
374
  "DJ": [],
375
  "DK": [],
376
  "DM": [],
377
  "DO": [
 
 
 
378
  "DO-07",
379
  "DO-08",
380
  "DO-09",
400
  "DO-29",
401
  "DO-30",
402
  "DO-02",
403
+ "DO-03",
404
+ "DO-04",
405
+ "DO-05",
406
+ "DO-06"
407
  ],
408
  "DZ": [
409
+ "DZ-40",
 
 
 
 
410
  "DZ-09",
411
  "DZ-10",
 
412
  "DZ-11",
413
+ "DZ-35",
414
  "DZ-12",
 
415
  "DZ-13",
416
+ "DZ-46",
417
  "DZ-14",
 
418
  "DZ-15",
419
+ "DZ-41",
420
  "DZ-16",
421
+ "DZ-48",
422
  "DZ-17",
423
+ "DZ-36",
424
  "DZ-18",
 
425
  "DZ-19",
426
+ "DZ-47",
427
  "DZ-20",
 
428
  "DZ-21",
429
+ "DZ-42",
430
  "DZ-22",
 
431
  "DZ-23",
432
+ "DZ-37",
433
  "DZ-24",
 
434
  "DZ-25",
435
+ "DZ-32",
436
  "DZ-26",
 
437
  "DZ-27",
438
+ "DZ-43",
439
  "DZ-28",
 
440
  "DZ-29",
441
+ "DZ-38",
442
  "DZ-30",
 
443
  "DZ-31",
444
+ "DZ-33",
 
445
  "DZ-01",
446
  "DZ-02",
447
+ "DZ-44",
448
  "DZ-03",
449
  "DZ-04",
450
+ "DZ-39",
451
+ "DZ-05",
452
+ "DZ-06",
453
+ "DZ-34",
454
+ "DZ-07",
455
+ "DZ-08",
456
+ "DZ-45"
457
  ],
458
  "EC": [
 
 
 
 
459
  "EC-Z",
460
  "EC-A",
461
  "EC-B",
475
  "EC-S",
476
  "EC-SD",
477
  "EC-SE",
478
+ "EC-T",
479
+ "EC-U",
480
+ "EC-W",
481
+ "EC-X",
482
+ "EC-Y"
483
+ ],
484
  "EE": [],
485
  "EG": [],
486
  "EH": [],
487
  "ER": [
 
 
 
488
  "ER-GB",
489
  "ER-MA",
490
+ "ER-SK",
491
+ "ER-AN",
492
+ "ER-DK",
493
+ "ER-DU"
494
  ],
495
  "ES": [
496
+ "ES-OR",
497
+ "ES-NA",
498
+ "ES-V",
 
 
 
 
 
 
 
 
 
 
499
  "ES-TE",
 
500
  "ES-T",
501
+ "ES-CC",
502
+ "ES-TO",
503
+ "ES-MA",
504
+ "ES-TF",
505
+ "ES-L",
506
+ "ES-SO",
507
  "ES-CO",
508
  "ES-CR",
 
509
  "ES-CS",
510
+ "ES-SE",
511
  "ES-CU",
512
+ "ES-LE",
513
+ "ES-O",
514
  "ES-S",
 
 
515
  "ES-GC",
 
516
  "ES-GI",
517
  "ES-GR",
 
518
  "ES-GU",
519
+ "ES-LO",
520
  "ES-H",
 
 
 
521
  "ES-A",
522
+ "ES-SA",
523
+ "ES-HU",
524
+ "ES-SS",
525
  "ES-AB",
526
  "ES-AL",
 
 
527
  "ES-ZA",
528
+ "ES-LU",
529
+ "ES-Z",
530
  "ES-AV",
531
+ "ES-PO",
532
  "ES-B",
533
+ "ES-VI",
534
  "ES-BA",
535
+ "ES-MU",
536
+ "ES-PM",
537
+ "ES-BI",
538
+ "ES-BU",
539
+ "ES-M",
540
+ "ES-P",
541
+ "ES-C",
542
+ "ES-VA",
543
+ "ES-CA",
544
+ "ES-SG",
545
+ "ES-J"
546
  ],
547
  "ET": [
 
 
 
548
  "ET-TI",
 
 
549
  "ET-AF",
550
  "ET-AM",
551
+ "ET-SO",
552
+ "ET-BE",
553
+ "ET-SN",
554
+ "ET-GA",
555
+ "ET-HA",
556
+ "ET-OR"
557
  ],
558
  "FI": [],
559
  "FJ": [],
560
  "FK": [],
561
  "FM": [
 
562
  "FM-YAP",
563
+ "FM-PNI",
564
  "FM-KSA",
565
  "FM-TRK"
566
  ],
567
  "FO": [],
568
  "FR": [],
569
  "GA": [
 
 
 
 
 
570
  "GA-1",
571
  "GA-2",
572
+ "GA-9",
573
  "GA-3",
574
+ "GA-4",
575
+ "GA-5",
576
+ "GA-6",
577
+ "GA-7",
578
+ "GA-8"
579
  ],
580
  "GB": [],
581
  "GD": [],
582
  "GE": [
583
+ "GE-AB",
584
+ "GE-AJ"
585
  ],
586
  "GF": [],
587
  "GG": [],
592
  "GN": [],
593
  "GP": [],
594
  "GQ": [
595
+ "GQ-BS",
596
+ "GQ-CS",
597
  "GQ-KN",
598
  "GQ-LI",
 
 
 
599
  "GQ-WN",
600
+ "GQ-AN",
601
+ "GQ-BN"
602
  ],
603
  "GR": [],
604
  "GS": [],
605
  "GT": [],
606
  "GU": [],
607
  "GW": [
 
608
  "GW-N",
609
+ "GW-S",
610
+ "GW-L"
611
  ],
612
  "GY": [],
613
  "HK": [],
617
  "HT": [],
618
  "HU": [],
619
  "ID": [
 
 
620
  "ID-KB",
621
  "ID-KI",
622
  "ID-KR",
623
  "ID-KS",
624
  "ID-KT",
625
+ "ID-SR",
626
  "ID-LA",
 
627
  "ID-MA",
628
  "ID-MU",
629
  "ID-NB",
630
  "ID-NT",
631
+ "ID-SS",
632
  "ID-PA",
633
+ "ID-SG",
634
  "ID-PB",
 
635
  "ID-RI",
636
  "ID-SA",
637
  "ID-SB",
638
+ "ID-ST",
639
  "ID-BA",
 
640
  "ID-BB",
641
  "ID-BE",
642
  "ID-BT",
643
  "ID-GO",
644
+ "ID-SU",
645
  "ID-JA",
 
646
  "ID-JB",
647
+ "ID-JI",
648
+ "ID-JT",
649
+ "ID-SN"
650
  ],
651
  "IE": [
652
  "IE-L",
657
  "IL": [],
658
  "IM": [],
659
  "IN": [
660
+ "IN-UP",
 
661
  "IN-AP",
662
  "IN-AR",
 
663
  "IN-AS",
664
  "IN-BR",
665
  "IN-CT",
666
+ "IN-UT",
667
  "IN-GA",
668
  "IN-GJ",
669
  "IN-HP",
670
  "IN-HR",
671
+ "IN-WB",
672
  "IN-JH",
673
  "IN-JK",
674
  "IN-KA",
 
675
  "IN-KL",
676
  "IN-MH",
677
  "IN-ML",
678
  "IN-MN",
679
  "IN-MP",
 
680
  "IN-MZ",
681
  "IN-NL",
682
  "IN-OR",
683
  "IN-PB",
684
+ "IN-TR",
685
  "IN-RJ",
686
+ "IN-SK",
687
+ "IN-TN"
688
  ],
689
  "IO": [],
690
  "IQ": [],
691
  "IR": [
 
 
 
 
692
  "IR-13",
693
  "IR-14",
694
  "IR-15",
714
  "IR-04",
715
  "IR-05",
716
  "IR-06",
717
+ "IR-07",
718
+ "IR-08",
719
+ "IR-10",
720
+ "IR-11",
721
+ "IR-12"
722
  ],
723
  "IS": [],
724
  "IT": [
725
+ "IT-RC",
726
+ "IT-RE",
727
+ "IT-RG",
728
+ "IT-MT",
729
+ "IT-RI",
730
+ "IT-RM",
731
+ "IT-RN",
732
+ "IT-RO",
733
  "IT-SA",
 
 
 
734
  "IT-SI",
735
+ "IT-NA",
 
736
  "IT-SO",
 
 
737
  "IT-SP",
 
 
738
  "IT-SR",
 
 
739
  "IT-SS",
 
 
740
  "IT-SV",
 
741
  "IT-TA",
 
 
742
  "IT-TE",
 
 
743
  "IT-TN",
 
 
744
  "IT-TO",
 
 
745
  "IT-TP",
 
 
746
  "IT-TR",
 
 
 
 
747
  "IT-TS",
748
  "IT-NU",
 
 
 
 
 
 
749
  "IT-TV",
 
 
 
 
 
 
 
 
750
  "IT-UD",
 
 
 
 
 
 
 
 
751
  "IT-VA",
752
+ "IT-VB",
753
+ "IT-VC",
754
+ "IT-VE",
755
+ "IT-VI",
756
+ "IT-VR",
757
+ "IT-VS",
758
+ "IT-VT",
759
+ "IT-VV",
760
+ "IT-OR",
761
+ "IT-OT",
762
+ "IT-AL",
763
+ "IT-AN",
764
+ "IT-PD",
765
+ "IT-PE",
766
  "IT-BR",
767
+ "IT-LI",
768
  "IT-BS",
 
769
  "IT-BT",
770
  "IT-BZ",
 
771
  "IT-CA",
772
+ "IT-PG",
773
  "IT-CB",
 
774
  "IT-CE",
775
+ "IT-LO",
776
  "IT-CH",
 
777
  "IT-CI",
778
  "IT-CL",
779
  "IT-CN",
780
+ "IT-PI",
781
  "IT-CO",
 
782
  "IT-CR",
783
+ "IT-LT",
784
  "IT-CS",
 
785
  "IT-CT",
786
  "IT-CZ",
787
  "IT-EN",
788
+ "IT-PN",
789
  "IT-FC",
 
790
  "IT-FE",
791
+ "IT-LU",
792
  "IT-FG",
 
793
  "IT-FI",
794
  "IT-FM",
795
  "IT-FR",
796
+ "IT-PO",
797
  "IT-GE",
 
798
  "IT-GO",
799
  "IT-GR",
 
800
  "IT-IM",
801
  "IT-IS",
802
+ "IT-KR",
803
+ "IT-PR",
804
+ "IT-LC",
805
+ "IT-LE",
806
+ "IT-PT",
807
+ "IT-MB",
808
+ "IT-MC",
809
+ "IT-ME",
810
+ "IT-PU",
811
+ "IT-MS",
812
+ "IT-MI",
813
+ "IT-NO",
814
+ "IT-OG",
815
+ "IT-PV",
816
+ "IT-AG",
817
+ "IT-MN",
818
+ "IT-PA",
819
+ "IT-PC",
820
+ "IT-AO",
821
+ "IT-AP",
822
+ "IT-PZ",
823
+ "IT-AQ",
824
+ "IT-AR",
825
+ "IT-MO",
826
+ "IT-AT",
827
+ "IT-AV",
828
+ "IT-BA",
829
+ "IT-BG",
830
+ "IT-RA",
831
+ "IT-BI",
832
+ "IT-BL",
833
+ "IT-BN",
834
+ "IT-BO"
835
  ],
836
  "JE": [],
837
  "JM": [],
838
  "JO": [],
839
  "JP": [],
840
  "KE": [
841
+ "KE-700",
842
+ "KE-800",
843
+ "KE-110",
844
  "KE-200",
845
  "KE-300",
846
  "KE-400",
847
+ "KE-500"
 
 
 
848
  ],
849
  "KG": [],
850
  "KH": [
 
 
 
851
  "KH-15",
852
  "KH-16",
853
  "KH-17",
864
  "KH-8",
865
  "KH-9",
866
  "KH-1",
867
+ "KH-10",
868
+ "KH-11",
869
+ "KH-13",
870
+ "KH-14"
871
  ],
872
  "KI": [],
873
  "KM": [],
874
  "KN": [
875
+ "KN-K",
876
+ "KN-N"
877
  ],
878
  "KP": [
879
+ "KP-08",
880
+ "KP-02",
881
+ "KP-03",
882
  "KP-04",
883
  "KP-05",
884
+ "KP-10",
885
  "KP-06",
886
  "KP-07",
 
 
 
 
887
  "KP-09"
888
  ],
889
  "KR": [
890
+ "KR-48",
891
  "KR-42",
 
 
 
 
892
  "KR-47",
893
  "KR-41",
894
+ "KR-45",
895
+ "KR-46",
896
+ "KR-44",
897
+ "KR-49",
898
  "KR-43"
899
  ],
900
  "KW": [],
901
  "KY": [],
902
  "KZ": [],
903
  "LA": [
 
 
 
 
 
 
 
904
  "LA-KH",
 
905
  "LA-LM",
906
+ "LA-XI",
907
+ "LA-PH",
908
+ "LA-VI",
909
  "LA-LP",
910
  "LA-AT",
911
+ "LA-XE",
912
+ "LA-OU",
913
  "LA-BK",
914
+ "LA-XS",
915
+ "LA-BL",
916
+ "LA-XA",
917
+ "LA-SV",
918
+ "LA-CH",
919
+ "LA-HO",
920
  "LA-SL"
921
  ],
922
  "LB": [],
923
  "LC": [],
924
  "LI": [],
925
  "LK": [
926
+ "LK-9",
927
  "LK-1",
928
  "LK-2",
929
  "LK-3",
930
  "LK-4",
931
  "LK-5",
 
932
  "LK-6",
933
+ "LK-7",
934
+ "LK-8"
935
  ],
936
  "LR": [],
937
  "LS": [],
940
  "LV": [],
941
  "LY": [],
942
  "MA": [
943
+ "MA-TAZ",
944
+ "MA-TAO",
945
+ "MA-TAT",
946
+ "MA-MOU",
947
+ "MA-GUE",
948
+ "MA-KHO",
 
 
 
 
949
  "MA-ZAG",
950
+ "MA-KHE",
951
+ "MA-MED",
952
+ "MA-SIK",
953
+ "MA-HAJ",
954
  "MA-ASZ",
955
+ "MA-TAI",
956
  "MA-AZI",
957
+ "MA-KHN",
958
  "MA-BEM",
959
+ "MA-TAR",
 
960
  "MA-BER",
961
+ "MA-JDI",
962
  "MA-BES",
 
963
  "MA-BOD",
964
+ "MA-SAF",
965
+ "MA-HAO",
966
+ "MA-LAR",
967
  "MA-BOM",
 
 
 
968
  "MA-CHE",
969
+ "MA-SET",
970
  "MA-CHI",
971
+ "MA-JRA",
972
  "MA-CHT",
 
 
973
  "MA-ERR",
 
 
 
 
 
 
974
  "MA-OUD",
975
+ "MA-HOC",
976
+ "MA-TIZ",
977
+ "MA-ESI",
978
+ "MA-ESM",
979
+ "MA-OUA",
980
+ "MA-NOU",
981
+ "MA-KEN",
982
+ "MA-LAA",
983
+ "MA-NAD",
984
+ "MA-IFR",
985
+ "MA-SEF",
986
+ "MA-FIG",
987
+ "MA-TNT",
988
+ "MA-KES"
989
  ],
990
  "MC": [],
991
  "MD": [],
997
  "ML": [],
998
  "MM": [
999
  "MM-13",
1000
+ "MM-11",
1001
  "MM-12",
 
1002
  "MM-15",
1003
  "MM-16",
1004
+ "MM-17",
1005
  "MM-14"
1006
  ],
1007
  "MN": [
1042
  ],
1043
  "MW": [],
1044
  "MX": [
 
 
 
1045
  "MX-DUR",
1046
  "MX-GRO",
1047
  "MX-GUA",
1053
  "MX-NAY",
1054
  "MX-NLE",
1055
  "MX-OAX",
1056
+ "MX-ZAC",
1057
  "MX-PUE",
1058
  "MX-QUE",
1059
  "MX-ROO",
1065
  "MX-TLA",
1066
  "MX-VER",
1067
  "MX-YUC",
 
1068
  "MX-AGU",
1069
  "MX-BCN",
1070
  "MX-BCS",
1071
  "MX-CAM",
1072
+ "MX-CHH",
1073
+ "MX-CHP",
1074
+ "MX-COA",
1075
+ "MX-COL"
1076
  ],
1077
  "MY": [
1078
  "MY-13",
 
 
 
 
1079
  "MY-01",
 
1080
  "MY-02",
1081
+ "MY-09",
1082
  "MY-03",
 
1083
  "MY-04",
1084
+ "MY-12",
1085
  "MY-05",
1086
+ "MY-06",
1087
+ "MY-11",
1088
+ "MY-07",
1089
+ "MY-08",
1090
  "MY-10"
1091
  ],
1092
  "MZ": [
 
 
 
 
1093
  "MZ-A",
1094
  "MZ-B",
1095
+ "MZ-Q",
1096
  "MZ-G",
1097
  "MZ-I",
1098
+ "MZ-L",
1099
+ "MZ-T",
1100
+ "MZ-N",
1101
+ "MZ-P",
1102
  "MZ-S"
1103
  ],
1104
  "NA": [],
1106
  "NE": [],
1107
  "NF": [],
1108
  "NG": [
 
 
 
 
1109
  "NG-KW",
1110
  "NG-LA",
1111
  "NG-NA",
1112
  "NG-NI",
1113
+ "NG-TA",
1114
  "NG-OG",
1115
  "NG-ON",
 
1116
  "NG-OS",
1117
  "NG-OY",
1118
+ "NG-PL",
1119
  "NG-AB",
1120
+ "NG-YO",
1121
  "NG-AD",
1122
  "NG-AK",
1123
  "NG-AN",
 
1124
  "NG-BA",
1125
  "NG-BE",
1126
  "NG-BO",
1127
+ "NG-ZA",
1128
  "NG-BY",
1129
  "NG-CR",
1130
  "NG-DE",
 
1131
  "NG-EB",
1132
  "NG-ED",
1133
  "NG-EK",
1134
  "NG-EN",
1135
+ "NG-RI",
1136
  "NG-GO",
 
1137
  "NG-IM",
1138
  "NG-JI",
1139
  "NG-KD",
1140
+ "NG-KE",
1141
+ "NG-KN",
1142
+ "NG-SO",
1143
+ "NG-KO",
1144
+ "NG-KT"
1145
  ],
1146
  "NI": [],
1147
  "NL": [
 
 
 
 
 
 
 
1148
  "NL-GE",
 
1149
  "NL-ZH",
1150
+ "NL-NH",
1151
+ "NL-NB",
1152
+ "NL-ZE",
1153
+ "NL-FR",
1154
+ "NL-DR",
1155
+ "NL-LI",
1156
+ "NL-FL",
1157
  "NL-OV",
1158
+ "NL-UT",
1159
+ "NL-GR"
1160
  ],
1161
  "NO": [],
1162
  "NP": [],
1165
  "NZ": [],
1166
  "OM": [],
1167
  "PA": [
 
 
 
 
1168
  "PA-4",
1169
  "PA-5",
1170
  "PA-6",
1171
  "PA-7",
1172
+ "PA-8",
1173
+ "PA-1",
1174
+ "PA-2",
1175
+ "PA-3",
1176
  "PA-9"
1177
  ],
1178
  "PE": [],
1179
  "PF": [],
1180
  "PG": [
 
 
 
 
 
 
1181
  "PG-EPW",
 
1182
  "PG-ESW",
1183
+ "PG-WBK",
1184
+ "PG-MPL",
1185
  "PG-GPK",
1186
+ "PG-NPP",
1187
  "PG-MBA",
1188
+ "PG-SHM",
1189
+ "PG-CPK",
1190
  "PG-NIK",
1191
+ "PG-CPM",
1192
+ "PG-WPD",
1193
+ "PG-MRL",
1194
+ "PG-EBR",
1195
+ "PG-SAN",
1196
+ "PG-EHG",
1197
  "PG-WHM",
1198
+ "PG-MPM"
 
1199
  ],
1200
  "PH": [
1201
+ "PH-BUK",
1202
+ "PH-BUL",
1203
+ "PH-CAG",
1204
+ "PH-CAM",
1205
+ "PH-CAN",
1206
+ "PH-CAP",
1207
+ "PH-CAS",
1208
+ "PH-CAT",
1209
+ "PH-CAV",
1210
+ "PH-CEB",
1211
+ "PH-COM",
1212
+ "PH-DAO",
1213
+ "PH-DAS",
1214
+ "PH-DAV",
1215
+ "PH-DIN",
1216
+ "PH-EAS",
1217
+ "PH-GUI",
1218
+ "PH-IFU",
1219
+ "PH-ILI",
1220
+ "PH-ILN",
1221
+ "PH-ILS",
1222
+ "PH-ISA",
1223
+ "PH-KAL",
1224
+ "PH-LAG",
1225
+ "PH-LAN",
1226
+ "PH-LAS",
1227
+ "PH-LEY",
1228
+ "PH-LUN",
1229
  "PH-MAD",
1230
  "PH-MAG",
1231
  "PH-MAS",
1263
  "PH-ZAS",
1264
  "PH-ZMB",
1265
  "PH-ZSI",
1266
+ "PH-00",
1267
  "PH-ABR",
1268
  "PH-AGN",
1269
  "PH-AGS",
1278
  "PH-BIL",
1279
  "PH-BOH",
1280
  "PH-BTG",
1281
+ "PH-BTN"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1282
  ],
1283
  "PK": [
 
1284
  "PK-PB",
1285
  "PK-SD",
1286
  "PK-TA",
1287
+ "PK-BA",
1288
+ "PK-KP"
1289
  ],
1290
  "PL": [
 
 
 
 
 
 
1291
  "PL-MA",
 
1292
  "PL-MZ",
1293
+ "PL-PK",
1294
+ "PL-ZP",
1295
  "PL-OP",
 
1296
  "PL-DS",
1297
+ "PL-PD",
1298
+ "PL-WP",
1299
  "PL-KP",
1300
+ "PL-LB",
1301
+ "PL-SL",
1302
+ "PL-SK",
1303
+ "PL-WN",
1304
+ "PL-LD",
1305
+ "PL-LU",
1306
+ "PL-PM"
1307
  ],
1308
  "PM": [],
1309
  "PN": [],
1311
  "PS": [],
1312
  "PT": [],
1313
  "PW": [
 
 
 
 
 
 
 
1314
  "PW-218",
1315
  "PW-004",
 
1316
  "PW-227",
 
1317
  "PW-226",
1318
+ "PW-010",
1319
  "PW-050",
1320
+ "PW-214",
1321
+ "PW-350",
1322
  "PW-100",
1323
+ "PW-150",
1324
+ "PW-224",
1325
+ "PW-228",
1326
+ "PW-212",
1327
+ "PW-370",
1328
+ "PW-002",
1329
+ "PW-222"
1330
  ],
1331
  "PY": [],
1332
  "QA": [],
1335
  "RS": [],
1336
  "RU": [],
1337
  "RW": [
 
1338
  "RW-04",
1339
  "RW-02",
1340
+ "RW-05",
1341
  "RW-03"
1342
  ],
1343
  "SA": [
 
 
 
 
1344
  "SA-03",
 
1345
  "SA-04",
1346
+ "SA-11",
1347
  "SA-05",
 
1348
  "SA-06",
1349
+ "SA-10",
1350
  "SA-07",
1351
+ "SA-08",
1352
+ "SA-09",
1353
+ "SA-01",
1354
+ "SA-14",
1355
+ "SA-02",
1356
+ "SA-12"
1357
  ],
1358
  "SB": [
 
 
 
 
1359
  "SB-MK",
1360
  "SB-ML",
1361
+ "SB-WE",
1362
  "SB-RB",
1363
  "SB-CE",
1364
+ "SB-TE",
1365
+ "SB-CH",
1366
+ "SB-GU",
1367
+ "SB-IS"
1368
  ],
1369
  "SC": [],
1370
  "SD": [
 
 
 
 
 
 
 
 
1371
  "SD-KN",
1372
+ "SD-NB",
1373
  "SD-DN",
1374
+ "SD-NR",
1375
  "SD-DS",
 
 
1376
  "SD-NW",
1377
+ "SD-DW",
1378
+ "SD-KH",
1379
  "SD-GD",
1380
+ "SD-GZ",
1381
+ "SD-SI",
1382
+ "SD-KA",
1383
+ "SD-DC",
1384
+ "SD-NO",
1385
+ "SD-DE",
1386
+ "SD-RS",
1387
+ "SD-KS"
1388
  ],
1389
  "SE": [],
1390
  "SG": [],
1393
  "SJ": [],
1394
  "SK": [],
1395
  "SL": [
 
1396
  "SL-N",
1397
+ "SL-E",
1398
  "SL-S"
1399
  ],
1400
  "SM": [],
1402
  "SO": [],
1403
  "SR": [],
1404
  "SS": [
 
 
 
1405
  "SS-JG",
 
1406
  "SS-LK",
1407
+ "SS-WR",
1408
  "SS-NU",
 
1409
  "SS-BN",
1410
+ "SS-UY",
1411
+ "SS-BW",
1412
+ "SS-EC",
1413
+ "SS-EE8",
1414
+ "SS-EW"
1415
  ],
1416
  "ST": [],
1417
  "SV": [],
1423
  "TF": [],
1424
  "TG": [],
1425
  "TH": [
 
 
 
 
 
 
 
 
 
 
 
1426
  "TH-33",
 
1427
  "TH-34",
1428
+ "TH-50",
1429
+ "TH-76",
1430
  "TH-35",
 
1431
  "TH-36",
1432
+ "TH-45",
1433
+ "TH-81",
1434
  "TH-37",
1435
+ "TH-S",
1436
+ "TH-66",
1437
  "TH-39",
1438
+ "TH-56",
1439
+ "TH-84",
1440
  "TH-40",
1441
+ "TH-65",
1442
  "TH-41",
1443
+ "TH-51",
1444
  "TH-42",
1445
+ "TH-64",
1446
  "TH-43",
1447
+ "TH-46",
1448
+ "TH-44",
1449
+ "TH-63",
1450
+ "TH-75",
1451
+ "TH-96",
1452
+ "TH-57",
1453
  "TH-11",
1454
+ "TH-62",
1455
+ "TH-74",
1456
  "TH-12",
1457
+ "TH-95",
1458
+ "TH-52",
1459
+ "TH-80",
1460
  "TH-13",
1461
+ "TH-73",
 
1462
  "TH-14",
1463
+ "TH-94",
1464
+ "TH-47",
1465
+ "TH-83",
1466
  "TH-15",
1467
+ "TH-72",
1468
  "TH-16",
1469
+ "TH-93",
1470
+ "TH-58",
 
1471
  "TH-17",
1472
+ "TH-71",
1473
  "TH-18",
1474
+ "TH-92",
1475
+ "TH-53",
1476
  "TH-19",
1477
+ "TH-70",
1478
  "TH-20",
1479
+ "TH-91",
1480
+ "TH-48",
1481
  "TH-21",
1482
+ "TH-67",
1483
  "TH-22",
1484
+ "TH-90",
1485
+ "TH-60",
1486
+ "TH-77",
1487
  "TH-23",
 
 
1488
  "TH-24",
1489
+ "TH-86",
1490
+ "TH-54",
1491
+ "TH-82",
1492
  "TH-25",
 
 
1493
  "TH-26",
1494
+ "TH-49",
1495
+ "TH-85",
1496
  "TH-27",
1497
+ "TH-30",
1498
+ "TH-61",
1499
+ "TH-31",
1500
+ "TH-32",
1501
+ "TH-55"
1502
  ],
1503
  "TJ": [],
1504
  "TK": [],
1507
  "TN": [],
1508
  "TO": [],
1509
  "TR": [
 
 
 
 
 
 
 
 
 
1510
  "TR-20",
1511
+ "TR-53",
1512
  "TR-21",
1513
+ "TR-69",
1514
+ "TR-36",
1515
  "TR-22",
1516
+ "TR-52",
 
1517
  "TR-23",
1518
+ "TR-68",
1519
+ "TR-47",
1520
  "TR-24",
1521
+ "TR-78",
1522
+ "TR-61",
1523
  "TR-25",
1524
+ "TR-67",
1525
+ "TR-42",
1526
  "TR-26",
 
 
1527
  "TR-27",
1528
+ "TR-37",
 
1529
  "TR-28",
1530
+ "TR-59",
 
1531
  "TR-29",
1532
+ "TR-81",
1533
+ "TR-48",
1534
  "TR-30",
1535
+ "TR-66",
1536
  "TR-31",
1537
+ "TR-43",
1538
+ "TR-32",
1539
+ "TR-63",
1540
  "TR-01",
1541
+ "TR-79",
1542
+ "TR-38",
1543
  "TR-02",
1544
+ "TR-76",
1545
+ "TR-64",
1546
  "TR-03",
1547
+ "TR-33",
 
1548
  "TR-04",
1549
+ "TR-51",
1550
+ "TR-80",
1551
  "TR-05",
1552
+ "TR-77",
1553
+ "TR-44",
1554
  "TR-06",
1555
+ "TR-50",
1556
+ "TR-62",
1557
  "TR-07",
1558
+ "TR-39",
1559
  "TR-08",
1560
+ "TR-49",
1561
  "TR-09",
1562
+ "TR-75",
1563
+ "TR-34",
1564
  "TR-10",
1565
+ "TR-58",
1566
  "TR-11",
1567
+ "TR-74",
1568
+ "TR-45",
1569
  "TR-12",
1570
+ "TR-65",
1571
+ "TR-57",
1572
  "TR-13",
1573
+ "TR-73",
1574
+ "TR-40",
1575
  "TR-14",
1576
+ "TR-60",
1577
+ "TR-56",
1578
  "TR-15",
1579
+ "TR-72",
1580
+ "TR-35",
1581
  "TR-16",
1582
+ "TR-55",
1583
+ "TR-17",
1584
+ "TR-71",
1585
+ "TR-46",
1586
+ "TR-18",
1587
+ "TR-54",
1588
+ "TR-19",
1589
+ "TR-70",
1590
+ "TR-41"
1591
  ],
1592
  "TT": [],
1593
  "TV": [],
1594
  "TW": [],
1595
  "TZ": [],
1596
  "UA": [
 
 
 
 
1597
  "UA-68",
1598
  "UA-71",
1599
  "UA-74",
1614
  "UA-48",
1615
  "UA-51",
1616
  "UA-53",
1617
+ "UA-56",
1618
+ "UA-59",
1619
+ "UA-61",
1620
+ "UA-63",
1621
+ "UA-65"
1622
  ],
1623
  "UG": [],
1624
  "UM": [
 
 
 
1625
  "UM-86",
1626
+ "UM-89",
1627
  "UM-67",
 
1628
  "UM-71",
1629
  "UM-76",
1630
+ "UM-79",
1631
+ "UM-95",
1632
+ "UM-81",
1633
+ "UM-84"
1634
  ],
1635
  "US": [
 
 
 
 
 
 
1636
  "US-MT",
1637
+ "US-SC",
1638
  "US-NC",
 
 
1639
  "US-AK",
1640
+ "US-OK",
1641
  "US-AL",
1642
  "US-AR",
1643
+ "US-NJ",
1644
  "US-AZ",
1645
+ "US-SD",
1646
  "US-CA",
1647
+ "US-WA",
1648
  "US-CO",
1649
+ "US-OR",
1650
  "US-CT",
1651
+ "US-WY",
1652
+ "US-NM",
1653
  "US-DE",
1654
  "US-FL",
1655
+ "US-TN",
1656
  "US-GA",
1657
+ "US-PA",
1658
  "US-HI",
1659
  "US-IA",
1660
+ "US-NV",
1661
  "US-ID",
1662
+ "US-VT",
1663
  "US-IL",
1664
+ "US-ND",
1665
  "US-IN",
1666
  "US-WV",
1667
  "US-KS",
 
1668
  "US-KY",
 
1669
  "US-LA",
1670
+ "US-VA",
1671
+ "US-NY",
1672
  "US-MA",
 
1673
  "US-MD",
1674
+ "US-UT",
1675
+ "US-NE",
1676
  "US-ME",
 
1677
  "US-MI",
1678
+ "US-RI",
1679
+ "US-MN",
1680
+ "US-MO",
1681
+ "US-TX",
1682
+ "US-OH",
1683
+ "US-WI",
1684
+ "US-MS",
1685
+ "US-NH"
1686
  ],
1687
  "UY": [],
1688
  "UZ": [],
1689
  "VA": [],
1690
  "VC": [],
1691
  "VE": [
 
1692
  "VE-B",
1693
  "VE-C",
1694
  "VE-D",
1710
  "VE-U",
1711
  "VE-V",
1712
  "VE-X",
1713
+ "VE-Y",
1714
+ "VE-Z"
1715
  ],
1716
  "VG": [],
1717
  "VI": [],
1718
  "VN": [
 
 
 
 
 
 
1719
  "VN-03",
1720
  "VN-04",
1721
+ "VN-61",
1722
  "VN-05",
1723
  "VN-06",
1724
+ "VN-71",
1725
+ "VN-55",
1726
  "VN-07",
1727
  "VN-09",
1728
+ "VN-59",
1729
+ "VN-50",
1730
  "VN-13",
 
1731
  "VN-14",
1732
+ "VN-69",
1733
+ "VN-44",
1734
  "VN-15",
 
1735
  "VN-18",
1736
+ "VN-68",
1737
+ "VN-56",
1738
  "VN-20",
 
1739
  "VN-21",
1740
+ "VN-67",
1741
+ "VN-51",
1742
  "VN-22",
1743
  "VN-70",
1744
  "VN-23",
1745
+ "VN-66",
1746
+ "VN-45",
1747
  "VN-24",
 
1748
  "VN-25",
1749
+ "VN-63",
1750
+ "VN-57",
1751
+ "VN-72",
1752
  "VN-26",
 
1753
  "VN-27",
1754
+ "VN-52",
1755
  "VN-28",
 
1756
  "VN-29",
1757
+ "VN-46",
1758
  "VN-30",
 
1759
  "VN-31",
1760
+ "VN-41",
1761
  "VN-32",
 
1762
  "VN-33",
1763
+ "VN-58",
1764
+ "VN-53",
1765
  "VN-34",
 
1766
  "VN-35",
1767
+ "VN-47",
1768
  "VN-36",
 
1769
  "VN-37",
1770
+ "VN-43",
1771
+ "VN-39",
1772
+ "VN-40",
1773
+ "VN-54",
1774
+ "VN-73",
1775
+ "VN-01",
1776
+ "VN-02",
1777
+ "VN-49"
1778
  ],
1779
  "VU": [
 
 
1780
  "VU-PAM",
1781
  "VU-SAM",
1782
  "VU-SEE",
1783
+ "VU-TAE",
1784
+ "VU-TOB",
1785
+ "VU-MAP"
1786
  ],
1787
  "WF": [],
1788
  "WS": [],
1789
  "YE": [],
1790
  "YT": [],
1791
  "ZA": [
 
 
 
 
1792
  "ZA-LP",
1793
  "ZA-MP",
1794
  "ZA-NC",
1795
  "ZA-NW",
1796
+ "ZA-WC",
1797
+ "ZA-EC",
1798
+ "ZA-FS",
1799
+ "ZA-GP",
1800
+ "ZA-ZN"
1801
  ],
1802
  "ZM": [
 
 
 
1803
  "ZM-03",
1804
  "ZM-04",
1805
  "ZM-05",
1806
  "ZM-06",
1807
  "ZM-07",
1808
+ "ZM-08",
1809
+ "ZM-09",
1810
+ "ZM-01",
1811
+ "ZM-02"
1812
  ],
1813
  "ZW": [
 
 
 
1814
  "ZW-MA",
1815
+ "ZW-MW",
1816
  "ZW-MC",
 
1817
  "ZW-ME",
1818
+ "ZW-MV",
1819
+ "ZW-MI",
1820
+ "ZW-MN",
1821
+ "ZW-MS"
1822
  ]
1823
  };
js/data/translations/af/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippyne",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippyne",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ar/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "الفلبّين",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "الفلبّين",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ary/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/as/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ফিলিপাইনছ",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ফিলিপাইনছ",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/az/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippin",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippin",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/azb/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/bel/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/bg/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филипини",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филипини",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/bn/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ফিলিপাইনস",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ফিলিপাইনস",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/bo/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/bs/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipini",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipini",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ca/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ceb/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ckb/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فلیپین",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فلیپین",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/cs/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipíny",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipíny",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/cy/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Pilipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Pilipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/da/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippinerne",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippinerne",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/de/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippinen",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippinen",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/de_CH/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippinen",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippinen",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/de_DE/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippinen",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippinen",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/dzo/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/el/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Δυτική",
1148
  "PH": "Φιλιππίνες",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Δυτική",
1148
  "PH": "Φιλιππίνες",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/en/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/en_AU/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/en_CA/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/en_NZ/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/en_ZA/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/eo/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinoj",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinoj",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_CO/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_CR/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_ES/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_GT/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_MX/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_PE/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/es_VE/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/et/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipiinid",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipiinid",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/eu/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinak",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinak",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/fa/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فیلیپین",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فیلیپین",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/fi/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippiinit",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippiinit",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/fr/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Highlands occidentaux",
1147
  "PG-WPD": "Ouest",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan du Nord",
1151
  "PH-AGS": "Agusan du Sud",
1146
  "PG-WHM": "Highlands occidentaux",
1147
  "PG-WPD": "Ouest",
1148
  "PH": "Philippines",
1149
+ "PH-00": "Région de la capitale nationale",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan du Nord",
1152
  "PH-AGS": "Agusan du Sud",
js/data/translations/fur/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/gd/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/gl/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/gu/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ફિલિપાઇન્સ",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ફિલિપાઇન્સ",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/haz/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/he/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "פיליפינים",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "פיליפינים",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/hi/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "फिलीपीन्स",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "फिलीपीन्स",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/hr/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipini",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipini",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/hu/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Nyugati felföldek",
1147
  "PG-WPD": "Western",
1148
  "PH": "Fülöp-szigetek",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Nyugati felföldek",
1147
  "PG-WPD": "Western",
1148
  "PH": "Fülöp-szigetek",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/hy/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Ֆիլիպիններ",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Ֆիլիպիններ",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/id/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipina",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipina",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/is/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Vestur",
1148
  "PH": "Filippseyjar",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Vestur",
1148
  "PH": "Filippseyjar",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/it/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Altopiani occidentali",
1147
  "PG-WPD": "Occidentale",
1148
  "PH": "Filippine",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Nord",
1151
  "PH-AGS": "Agusan del Sud",
1146
  "PG-WHM": "Altopiani occidentali",
1147
  "PG-WPD": "Occidentale",
1148
  "PH": "Filippine",
1149
+ "PH-00": "Regione Capitale Nazionale",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Nord",
1152
  "PH-AGS": "Agusan del Sud",
js/data/translations/ja/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "西ハイランド",
1147
  "PG-WPD": "Western",
1148
  "PH": "フィリピン",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "北アグサン",
1151
  "PH-AGS": "南アグサン",
1146
  "PG-WHM": "西ハイランド",
1147
  "PG-WPD": "Western",
1148
  "PH": "フィリピン",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "北アグサン",
1152
  "PH-AGS": "南アグサン",
js/data/translations/jv/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ka/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ფილიპინები",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ფილიპინები",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/kab/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippin",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippin",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/kk/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филиппин",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филиппин",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/km/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ហ្វីលីពីន",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ហ្វីលីពីន",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ko/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "필리핀",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "필리핀",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/lo/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ປະເທດຟີລິບປິນ",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ປະເທດຟີລິບປິນ",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/lt/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Vakarų Hailandas",
1147
  "PG-WPD": "Vakarinis Fidžio padalinys",
1148
  "PH": "Filipinai",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Vakarų Hailandas",
1147
  "PG-WPD": "Vakarinis Fidžio padalinys",
1148
  "PH": "Filipinai",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/lv/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipīnas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipīnas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/mk/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филипини",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филипини",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ml/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ഫിലിപ്പൈന്‍സ്",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ഫിലിപ്പൈന്‍സ്",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/mn/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Флиппен",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Флиппен",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/mr/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "फिलिपिन्स",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "फिलिपिन्स",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ms/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipina",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipina",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/my/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ဖိလစ်ပိုင်နိုင်ငံ",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ဖိလစ်ပိုင်နိုင်ငံ",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/nb/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippinene",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippinene",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ne/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "फिलिपिन्स",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "फिलिपिन्स",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/nl/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Westelijke Hooglanden",
1147
  "PG-WPD": "West",
1148
  "PH": "Filipijnen",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Zuid-Agusan",
1146
  "PG-WHM": "Westelijke Hooglanden",
1147
  "PG-WPD": "West",
1148
  "PH": "Filipijnen",
1149
+ "PH-00": "Nationale Hoofstadregio",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Zuid-Agusan",
js/data/translations/nl_NL/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Westelijke Hooglanden",
1147
  "PG-WPD": "West",
1148
  "PH": "Filipijnen",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Zuid-Agusan",
1146
  "PG-WHM": "Westelijke Hooglanden",
1147
  "PG-WPD": "West",
1148
  "PH": "Filipijnen",
1149
+ "PH-00": "Nationale Hoofstadregio",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Zuid-Agusan",
js/data/translations/nl_NL_formal/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Westelijke Hooglanden",
1147
  "PG-WPD": "West",
1148
  "PH": "Filipijnen",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Zuid-Agusan",
1146
  "PG-WHM": "Westelijke Hooglanden",
1147
  "PG-WPD": "West",
1148
  "PH": "Filipijnen",
1149
+ "PH-00": "Nationale Hoofstadregio",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Zuid-Agusan",
js/data/translations/nn/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippinane",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippinane",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/oci/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/pa/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ਫਿਲਿਪੀਨੀਜ਼",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ਫਿਲਿਪੀਨੀਜ਼",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/pl/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipiny",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipiny",
1149
+ "PH-00": "Region Stołeczny (Manila)",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ps/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/pt/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/pt_PT/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/rhg/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ro/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipine",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipine",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ru/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филиппины",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филиппины",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/sah/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/si/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "පිලිපීන",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "පිලිපීන",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/sk/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipíny",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipíny",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/sl/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipini",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipini",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/sq/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinet",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinet",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/sr/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филипини",
 
1149
  "PH-ABR": "Абра",
1150
  "PH-AGN": "Северни Агусан",
1151
  "PH-AGS": "Јужни Агусан",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филипини",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Абра",
1151
  "PH-AGN": "Северни Агусан",
1152
  "PH-AGS": "Јужни Агусан",
js/data/translations/sv/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Västra",
1148
  "PH": "Filippinerna",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Västra",
1148
  "PH": "Filippinerna",
1149
+ "PH-00": "Metro Manila",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/szl/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ta/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "பிலிப்பைன்ஸ்",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "பிலிப்பைன்ஸ்",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/tah/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Philippines",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/te/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ఫిలిప్పిన్స్",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "ఫిలిప్పిన్స్",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/th/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "ภาคตะวันตก",
1148
  "PH": "ฟิลิปปินส์",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "ภาคตะวันตก",
1148
  "PH": "ฟิลิปปินส์",
1149
+ "PH-00": "เขตนครหลวง (มะนิลา)",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/tl/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Pilipinas",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Pilipinas",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/tr/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinler",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filipinler",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/tt/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филиппиннәр",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Филиппиннәр",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/ug/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فىلىپپىن",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فىلىپپىن",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/uk/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Західне Нагір’я",
1147
  "PG-WPD": "Західна",
1148
  "PH": "Філіппіни",
 
1149
  "PH-ABR": "Абра",
1150
  "PH-AGN": "Північний Агусан",
1151
  "PH-AGS": "Південний Агусан",
1146
  "PG-WHM": "Західне Нагір’я",
1147
  "PG-WPD": "Західна",
1148
  "PH": "Філіппіни",
1149
+ "PH-00": "Національна столичний регіон",
1150
  "PH-ABR": "Абра",
1151
  "PH-AGN": "Північний Агусан",
1152
  "PH-AGS": "Південний Агусан",
js/data/translations/ur/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فلپائن",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "فلپائن",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/uz/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippin",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "Filippin",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/data/translations/vi/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Vùng Tây Cao Nguyên",
1147
  "PG-WPD": "Miền Tây",
1148
  "PH": "Phi-li-pi-nợ",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Bắc Agusan",
1151
  "PH-AGS": "Nam Agusan",
1146
  "PG-WHM": "Vùng Tây Cao Nguyên",
1147
  "PG-WPD": "Miền Tây",
1148
  "PH": "Phi-li-pi-nợ",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Bắc Agusan",
1152
  "PH-AGS": "Nam Agusan",
js/data/translations/zh/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "西高地省",
1147
  "PG-WPD": "西部区",
1148
  "PH": "菲律宾",
 
1149
  "PH-ABR": "阿布拉",
1150
  "PH-AGN": "北阿古桑",
1151
  "PH-AGS": "南阿古桑",
1146
  "PG-WHM": "西高地省",
1147
  "PG-WPD": "西部区",
1148
  "PH": "菲律宾",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "阿布拉",
1151
  "PH-AGN": "北阿古桑",
1152
  "PH-AGS": "南阿古桑",
js/data/translations/zh_HK/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "西高地省",
1147
  "PG-WPD": "西部区",
1148
  "PH": "菲律賓",
 
1149
  "PH-ABR": "阿布拉",
1150
  "PH-AGN": "北阿古桑",
1151
  "PH-AGS": "南阿古桑",
1146
  "PG-WHM": "西高地省",
1147
  "PG-WPD": "西部区",
1148
  "PH": "菲律賓",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "阿布拉",
1151
  "PH-AGN": "北阿古桑",
1152
  "PH-AGS": "南阿古桑",
js/data/translations/zh_TW/strings.js CHANGED
@@ -1146,6 +1146,7 @@ wpautotermsStates.translations = {
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "菲律賓",
 
1149
  "PH-ABR": "Abra",
1150
  "PH-AGN": "Agusan del Norte",
1151
  "PH-AGS": "Agusan del Sur",
1146
  "PG-WHM": "Western Highlands",
1147
  "PG-WPD": "Western",
1148
  "PH": "菲律賓",
1149
+ "PH-00": "National Capital Region",
1150
  "PH-ABR": "Abra",
1151
  "PH-AGN": "Agusan del Norte",
1152
  "PH-AGS": "Agusan del Sur",
js/links-box-page.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function ($) {
2
+ var LINKS = $("#links_order");
3
+ var OPTION = $("[name$=links_order]");
4
+
5
+ function onUpdate(event, ui) {
6
+ var sorted = LINKS.sortable("toArray", {attribute: "data-id"});
7
+ OPTION.val(sorted.join(","));
8
+ }
9
+
10
+ LINKS.sortable({}).on("sortupdate", onUpdate).disableSelection();
11
+ });
js/post-new.js CHANGED
@@ -36,7 +36,7 @@ jQuery(document).ready(function ($) {
36
  var state;
37
  var c = jQuery("#" + args[0] + ":visible");
38
  if (c.length) {
39
- if (typeof(args[1]) === "boolean") {
40
  state = c.prop("checked");
41
  } else {
42
  state = c.val();
@@ -76,6 +76,8 @@ jQuery(document).ready(function ($) {
76
  t.val("legal-page-radio-no");
77
  }
78
  });
 
 
79
  });
80
  wpautotermsCountry.initCountrySelector();
81
  updateDependencies();
36
  var state;
37
  var c = jQuery("#" + args[0] + ":visible");
38
  if (c.length) {
39
+ if (typeof (args[1]) === "boolean") {
40
  state = c.prop("checked");
41
  } else {
42
  state = c.val();
76
  t.val("legal-page-radio-no");
77
  }
78
  });
79
+ $("input[name=post_title]:not([data-wpautoterms])").remove();
80
+ return true;
81
  });
82
  wpautotermsCountry.initCountrySelector();
83
  updateDependencies();
js/wpautoterms.js CHANGED
@@ -1,4 +1,6 @@
1
  jQuery(document).ready(function ($) {
 
 
2
  function maxZIndex() {
3
  return Math.max.apply(null,
4
  $.map($('body *'), function (e, n) {
@@ -14,21 +16,21 @@ jQuery(document).ready(function ($) {
14
  }
15
 
16
  var oldBottomValue = parseInt(getShadowProperty("body", ":after", "bottom", 0));
17
- var topContainer = jQuery("#wpautoterms-top-fixed-container");
18
- var bottomContainer = jQuery("#wpautoterms-bottom-fixed-container");
19
  var z = maxZIndex();
20
  topContainer.css('z-index', z - (-1));
21
  bottomContainer.css('z-index', z - (-2));
22
- jQuery("#wpautoterms-top-static-container").css("margin-top",
23
- parseInt(getShadowProperty("body", ":before", "height", 0)) + "px");
24
- jQuery("#wpautoterms-bottom-static-container").css("margin-bottom",
25
- parseInt(getShadowProperty("body", ":after", "height", 0)) + "px");
26
 
27
  function recalcContainers() {
28
  $("#wpautoterms-top-fixed-style,#wpautoterms-bottom-fixed-style").remove();
29
  var h = $("head");
30
- var topContainer = jQuery("#wpautoterms-top-fixed-container");
31
- var bottomContainer = jQuery("#wpautoterms-bottom-fixed-container");
32
  if (topContainer.length) {
33
  h.append('<style id="wpautoterms-top-fixed-style">body:before{top:' +
34
  parseInt(topContainer.height()) + 'px !important;}</style>');
@@ -51,17 +53,81 @@ jQuery(document).ready(function ($) {
51
  }
52
  }
53
 
54
- $(".wpautoterms-notice-close").click(function () {
55
- var t = jQuery(this);
56
- setCookie(t.data("cookie"), t.data("value"), 365);
57
- var p1 = jQuery(this).parent();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  var p2 = p1.parent();
59
  p1.remove();
60
  if (p2.html().length < 1) {
61
  p2.remove();
62
  }
63
  recalcContainers();
64
- });
65
 
66
- recalcContainers();
 
 
 
 
67
  });
1
  jQuery(document).ready(function ($) {
2
+ var COOKIE_EXPIRE_DAYS = 100 * 365;
3
+
4
  function maxZIndex() {
5
  return Math.max.apply(null,
6
  $.map($('body *'), function (e, n) {
16
  }
17
 
18
  var oldBottomValue = parseInt(getShadowProperty("body", ":after", "bottom", 0));
19
+ var topContainer = $("#wpautoterms-top-fixed-container");
20
+ var bottomContainer = $("#wpautoterms-bottom-fixed-container");
21
  var z = maxZIndex();
22
  topContainer.css('z-index', z - (-1));
23
  bottomContainer.css('z-index', z - (-2));
24
+ var topStaticContainer = $("#wpautoterms-top-static-container");
25
+ $("body").prepend(topStaticContainer);
26
+ topStaticContainer.css("margin-top", parseInt(getShadowProperty("body", ":before", "height", 0)) + "px");
27
+ $("#wpautoterms-bottom-static-container").css("margin-bottom", parseInt(getShadowProperty("body", ":after", "height", 0)) + "px");
28
 
29
  function recalcContainers() {
30
  $("#wpautoterms-top-fixed-style,#wpautoterms-bottom-fixed-style").remove();
31
  var h = $("head");
32
+ var topContainer = $("#wpautoterms-top-fixed-container");
33
+ var bottomContainer = $("#wpautoterms-bottom-fixed-container");
34
  if (topContainer.length) {
35
  h.append('<style id="wpautoterms-top-fixed-style">body:before{top:' +
36
  parseInt(topContainer.height()) + 'px !important;}</style>');
53
  }
54
  }
55
 
56
+ function getCookie(name) {
57
+ name = name.toLowerCase();
58
+ var cookies = document.cookie.split(';');
59
+ for (var k in cookies) {
60
+ var el = cookies[k].split('=');
61
+ if (el[0].trim().toLowerCase() === name) {
62
+ return el[1];
63
+ }
64
+ }
65
+ return null;
66
+ }
67
+
68
+ function populateUpdateBox(data) {
69
+ var TEMPLATE = wp.template("wpautoterms-update-notice");
70
+ var container = $("#wpautoterms-update-notice-placeholder");
71
+ container.show();
72
+ for (var k in data) {
73
+ $(TEMPLATE(data[k])).appendTo(container);
74
+ }
75
+ $(document.body).trigger("post-load");
76
+ }
77
+
78
+ function handleUpdatesBox() {
79
+ if (typeof wpautoterms_js_update_notice === "undefined") {
80
+ return;
81
+ }
82
+ if (wpautoterms_js_update_notice.disable) {
83
+ return;
84
+ }
85
+ var dc = getCookie(wpautoterms_js_update_notice.cache_detector_cookie);
86
+ var isCached = dc === null || dc == wpautoterms_js_update_notice.cache_detected;
87
+ setCookie(wpautoterms_js_update_notice.cache_detector_cookie,
88
+ wpautoterms_js_update_notice.cache_detected,
89
+ COOKIE_EXPIRE_DAYS);
90
+ if (isCached) {
91
+ $.post(wpautoterms_js_update_notice.ajaxurl, {
92
+ action: wpautoterms_js_update_notice.action
93
+ }).done(function (response) {
94
+ if (typeof response !== "object") {
95
+ alert(response);
96
+ } else {
97
+ populateUpdateBox(response.data);
98
+ bindClose();
99
+ }
100
+ }).fail(function (error) {
101
+ console.log(error);
102
+ alert(error.statusText);
103
+ });
104
+ } else {
105
+ var data = wpautoterms_js_update_notice.data;
106
+ if (data == null || typeof data === "undefined") {
107
+ return;
108
+ }
109
+ populateUpdateBox(data);
110
+ }
111
+ }
112
+
113
+ recalcContainers();
114
+ handleUpdatesBox();
115
+
116
+ function handleClose() {
117
+ var t = $(this);
118
+ setCookie(t.data("cookie"), t.data("value"), COOKIE_EXPIRE_DAYS);
119
+ var p1 = $(this).parent();
120
  var p2 = p1.parent();
121
  p1.remove();
122
  if (p2.html().length < 1) {
123
  p2.remove();
124
  }
125
  recalcContainers();
126
+ }
127
 
128
+ function bindClose() {
129
+ $(".wpautoterms-notice-close").off("click", handleClose).on("click", handleClose);
130
+ }
131
+
132
+ bindClose();
133
  });
templates/admin-notice/dismissible.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <div class="notice wpautoterms-is-dismissible <?php echo esc_attr( $class ); ?>"
2
+ data-wpautoterms-dismissible="<?php
3
+ esc_attr_e( 'Don\'t show this again', WPAUTOTERMS_SLUG ); ?>"
4
+ data-wpautoterms-action-id="<?php echo esc_attr( $action->name() ); ?>"
5
+ data-wpautoterms-action-data="<?php echo esc_attr( json_encode( array(
6
+ 'c' => $class,
7
+ 'id' => $id
8
+ ) ) ) ?>">
9
+ <p><?php echo $message; ?></p>
10
+ </div>
templates/admin-notice/regular.php ADDED
@@ -0,0 +1 @@
 
1
+ <div class="<?php echo esc_attr( $class ); ?>"><p><?php echo $message; ?></p></div>
templates/cookies-notice.php CHANGED
@@ -3,7 +3,32 @@
3
  use \wpautoterms\frontend\notice\Cookies_Notice;
4
 
5
  ?>
6
- <div class="<?php echo esc_attr( Cookies_Notice::CLASS_COOKIES_NOTICE ); ?>"><?php echo $message; ?>
 
7
  <a href="javascript:void(0);" class="<?php echo esc_attr( Cookies_Notice::CLASS_CLOSE_BUTTON ); ?>"
8
- data-value="<?php echo esc_attr( $cookie_value ); ?>" data-cookie="<?php echo esc_attr( $cookie_name ); ?>">
9
- <?php echo $close; ?></a></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  use \wpautoterms\frontend\notice\Cookies_Notice;
4
 
5
  ?>
6
+ <div class="<?php echo $class_escaped; ?>" style="display:none">
7
+ <?php echo $message; ?>
8
  <a href="javascript:void(0);" class="<?php echo esc_attr( Cookies_Notice::CLASS_CLOSE_BUTTON ); ?>"
9
+ data-value="1" data-cookie="<?php echo esc_attr( $cookie_name ); ?>">
10
+ <?php echo $close; ?></a></div>
11
+ <script type="text/javascript">
12
+ (function () {
13
+ function getCookie(name) {
14
+ name = name.toLowerCase();
15
+ var cookies = document.cookie.split(';');
16
+ for (var k in cookies) {
17
+ var el = cookies[k].split('=');
18
+ if (el[0].trim().toLowerCase() === name) {
19
+ return el[1];
20
+ }
21
+ }
22
+ return null;
23
+ }
24
+
25
+ var disable = typeof wpautoterms_js_cookies_notice !== "undefined" && wpautoterms_js_cookies_notice.disable;
26
+ if (!disable && getCookie("<?php echo $cookie_name; ?>") != 1) {
27
+ var entries = document.querySelectorAll(".<?php echo $class_escaped; ?>");
28
+ for (var k = 0; k < entries.length; ++k) {
29
+ var el = entries[k];
30
+ el.style.display = null;
31
+ }
32
+ }
33
+ })();
34
+ </script>
templates/legal-pages/common.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
+ <input type="hidden" name="post_title" data-wpautoterms="" value="placeholder"/>
templates/links.php CHANGED
@@ -8,15 +8,18 @@ if ( ! defined( 'ABSPATH' ) ) {
8
  if ( empty( $posts ) ) {
9
  return;
10
  }
 
 
 
 
 
 
 
 
 
11
  ?>
12
  <div class="<?php echo esc_attr( Links::FOOTER_CLASS ); ?>"><p>
13
  <?php
14
- $links = array();
15
- $target = $new_page ? ' target="_blank"' : '';
16
- foreach ( $posts as $post ) {
17
- $links[] = '<a href="' . esc_url( get_post_permalink( $post->ID ) ) . '"' . $target . '>' .
18
- esc_html( $post->post_title ) . '</a>';
19
- }
20
  echo join( '<span class="' . esc_attr( Links::SEPARATOR_CLASS ) . '"> ' .
21
  get_option( WPAUTOTERMS_OPTION_PREFIX . 'links_separator' ) . ' </span>', $links );
22
  ?></p>
8
  if ( empty( $posts ) ) {
9
  return;
10
  }
11
+ $links = array();
12
+ $target = $new_page ? ' target="_blank"' : '';
13
+ foreach ( $posts as $post ) {
14
+ $links[] = '<a href="' . esc_url( get_post_permalink( $post->ID ) ) . '"' . $target . '>' .
15
+ esc_html( $post->post_title ) . '</a>';
16
+ }
17
+ if ( empty( $links ) ) {
18
+ return;
19
+ }
20
  ?>
21
  <div class="<?php echo esc_attr( Links::FOOTER_CLASS ); ?>"><p>
22
  <?php
 
 
 
 
 
 
23
  echo join( '<span class="' . esc_attr( Links::SEPARATOR_CLASS ) . '"> ' .
24
  get_option( WPAUTOTERMS_OPTION_PREFIX . 'links_separator' ) . ' </span>', $links );
25
  ?></p>
templates/options/box-page.php CHANGED
@@ -1,25 +1,29 @@
1
  <?php
2
 
3
- if (!defined( 'ABSPATH' )) {
4
  exit;
5
  }
6
  ?>
7
  <div class="wrap">
8
- <h2><?php echo $title; ?></h2>
9
  <?php settings_errors(); ?>
10
 
11
- <form method="post" action="options.php">
12
- <input type="hidden" name="box" value="<?php echo esc_attr( $box_id ); ?>"/><?php
13
  settings_fields( $page_id );
14
  do_settings_sections( $page_id );
 
 
 
15
  ?>
16
- <div class="wpautoterms-box-page-submit">
17
- <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save Changes'); ?>" />
18
- </div>
19
- <div class="wpautoterms-box-page-back">
20
- <a href="edit.php?post_type=<?php echo \wpautoterms\cpt\CPT::type(); ?>&page=wpautoterms_compliancekits">
21
- <?php _e('Back to Compliance Kits', WPAUTOTERMS_SLUG); ?>
22
- </a>
23
- </div>
24
- </form>
 
25
  </div>
1
  <?php
2
 
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
  exit;
5
  }
6
  ?>
7
  <div class="wrap">
8
+ <h2><?php echo $title; ?></h2>
9
  <?php settings_errors(); ?>
10
 
11
+ <form method="post" action="options.php">
12
+ <input type="hidden" name="box" value="<?php echo esc_attr( $box_id ); ?>"/><?php
13
  settings_fields( $page_id );
14
  do_settings_sections( $page_id );
15
+ if ( isset( $after_section ) ) {
16
+ echo $after_section;
17
+ }
18
  ?>
19
+ <div class="wpautoterms-box-page-submit">
20
+ <input type="submit" name="submit" id="submit" class="button button-primary"
21
+ value="<?php _e( 'Save Changes' ); ?>"/>
22
+ </div>
23
+ <div class="wpautoterms-box-page-back">
24
+ <a href="edit.php?post_type=<?php echo \wpautoterms\cpt\CPT::type(); ?>&page=wpautoterms_compliancekits">
25
+ <?php _e( 'Back to Compliance Kits', WPAUTOTERMS_SLUG ); ?>
26
+ </a>
27
+ </div>
28
+ </form>
29
  </div>
templates/options/box.php CHANGED
@@ -1,4 +1,9 @@
1
- <div class="postbox wpautoterms-options-box">
 
 
 
 
 
2
  <h3><?php use wpautoterms\api\License;
3
 
4
  echo $box->title(); ?></h3>
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><div class="postbox wpautoterms-options-box">
7
  <h3><?php use wpautoterms\api\License;
8
 
9
  echo $box->title(); ?></h3>
templates/options/checkbox-option.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  $value = $value ? 'checked="checked"' : '';
3
  echo '<input type="checkbox" class="' . $classes . '" name="' . $name . '" id="' . $name . '" ' . $value . ' ' . $attrs . '/>';
4
  include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
1
  <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  $value = $value ? 'checked="checked"' : '';
8
  echo '<input type="checkbox" class="' . $classes . '" name="' . $name . '" id="' . $name . '" ' . $value . ' ' . $attrs . '/>';
9
  include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
templates/options/color-option.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  echo '<input type="text" name="' . $name . '" id="' . $name . '" value="' . esc_attr($value) .
3
  '" class="wpautoterms-color-selector ' . $classes . '" ' . $attrs . '/>';
4
  include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
1
  <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  echo '<input type="text" name="' . $name . '" id="' . $name . '" value="' . esc_attr($value) .
8
  '" class="wpautoterms-color-selector ' . $classes . '" ' . $attrs . '/>';
9
  include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
templates/options/css-textarea-option.php CHANGED
@@ -1,4 +1,9 @@
1
- <div class="wpautoterms-flex">
 
 
 
 
 
2
  <div class="wpautoterms-w-3">
3
  <textarea name="<?php echo $name; ?>" class="<?php echo $classes; ?>" id="<?php echo $name; ?>"<?php
4
  echo empty( $attrs ) ? '' : ' ' . $attrs;
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><div class="wpautoterms-flex">
7
  <div class="wpautoterms-w-3">
8
  <textarea name="<?php echo $name; ?>" class="<?php echo $classes; ?>" id="<?php echo $name; ?>"<?php
9
  echo empty( $attrs ) ? '' : ' ' . $attrs;
templates/options/dependency-begin.php CHANGED
@@ -1,4 +1,9 @@
1
- <div class="wpautoterms-option-dependent<?php if($dep_type!='hide'){ echo ' wpautoterms-hidden'; } ?>"
 
 
 
 
 
2
  data-source="<?php echo esc_attr($dep_source); ?>"
3
  data-value="<?php echo esc_attr($dep_value); ?>"
4
  data-type="<?php echo esc_attr($dep_type); ?>">
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><div class="wpautoterms-option-dependent<?php if($dep_type!='hide'){ echo ' wpautoterms-hidden'; } ?>"
7
  data-source="<?php echo esc_attr($dep_source); ?>"
8
  data-value="<?php echo esc_attr($dep_value); ?>"
9
  data-type="<?php echo esc_attr($dep_type); ?>">
templates/options/dependency-end.php CHANGED
@@ -1 +1,6 @@
1
- </div>
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?></div>
templates/options/hidden-option.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ echo '<input type="hidden" class="' . $classes . '" name="' . $name . '" id="' . $name . '" value="' . esc_attr($value) . '" ' . $attrs . '/>';
8
+ include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
templates/options/license-status-option.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php
2
 
 
 
 
 
3
  use wpautoterms\admin\action\Recheck_License;
4
 
5
  ?>
1
  <?php
2
 
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  use wpautoterms\admin\action\Recheck_License;
8
 
9
  ?>
templates/options/links-reorder.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ use wpautoterms\cpt\CPT;
8
+
9
+ $hide_attr = ' style="display:none"';
10
+
11
+ ?>
12
+ <table class="form-table" role="presentation">
13
+ <tbody>
14
+ <tr>
15
+ <th>Links Order</th>
16
+ <td>
17
+ <p>Order how the links of any published Legal Pages appear by dragging them up & down in the list below.</p>
18
+ <br/>
19
+
20
+ <ol id="links_order" class="wpautoterms-sortable-list">
21
+ <?php
22
+ /**
23
+ * @var $post \WP_Post
24
+ */
25
+ foreach ( $posts as $post ) {
26
+ $id_esc = esc_attr( $post->ID );
27
+ ?>
28
+ <li class="active" data-id="<?php echo $id_esc; ?>" data-control="line">
29
+ <?php _e( $post->post_title, WPAUTOTERMS_SLUG ); ?>
30
+ </li>
31
+ <?php
32
+ }
33
+ ?>
34
+ </ol>
35
+ </td>
36
+ </tr>
37
+ </tbody>
38
+ </table>
templates/options/option-suffix.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  echo ' <span class="wpautoterms-hidden" data-name="' . $name . '" data-type="notice"></span>';
3
  if ( ! empty( $tooltip ) ) {
4
  echo '<p class="wpautoterms-option-tooltip"><small>' . $tooltip . '</small></p>';
1
  <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  echo ' <span class="wpautoterms-hidden" data-name="' . $name . '" data-type="notice"></span>';
8
  if ( ! empty( $tooltip ) ) {
9
  echo '<p class="wpautoterms-option-tooltip"><small>' . $tooltip . '</small></p>';
templates/options/revert-message.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><p class="wpautoterms-replace-source"><?php
7
+ $d = $box->defaults();
8
+ $message = $d[ substr( $option->name(), strlen( WPAUTOTERMS_OPTION_PREFIX ) ) ];
9
+ echo _x( 'You can also', 'Revert message', WPAUTOTERMS_SLUG );
10
+ ?> <a href="javascript:void(0);" data-data="<?php esc_attr_e( $message ); ?>"
11
+ data-editor="<?php esc_attr_e( $option->name() ); ?>"><?php _e( 'revert message to the default one', WPAUTOTERMS_SLUG ); ?></a>.
12
+ </p>
templates/options/select-combo-option.php CHANGED
@@ -1,4 +1,9 @@
1
- <div class="wpautoterms-options-select-combo <?php echo $classes; ?>">
 
 
 
 
 
2
  <select name="<?php echo $name; ?>" id="<?php echo $name; ?>">
3
  <?php
4
  $found = false;
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><div class="wpautoterms-options-select-combo <?php echo $classes; ?>">
7
  <select name="<?php echo $name; ?>" id="<?php echo $name; ?>">
8
  <?php
9
  $found = false;
templates/options/select-option.php CHANGED
@@ -1,4 +1,9 @@
1
- <select name="<?php echo $name; ?>" class="<?php echo $classes; ?>" id="<?php echo $name; ?>" <?php echo $attrs; ?>>
 
 
 
 
 
2
  <?php
3
  foreach ( $values as $k => $v ) {
4
  $k = trim( $k );
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><select name="<?php echo $name; ?>" class="<?php echo $classes; ?>" id="<?php echo $name; ?>" <?php echo $attrs; ?>>
7
  <?php
8
  foreach ( $values as $k => $v ) {
9
  $k = trim( $k );
templates/options/shortcode-entry-option.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  include __DIR__ . DIRECTORY_SEPARATOR . 'text-option.php';
3
  echo '<p class="wpautoterms-shortcode-option ' . $classes . '">' . __( 'Short code:', WPAUTOTERMS_SLUG ) .
4
  ' [wpautoterms ' . esc_html( substr( $name, strlen( WPAUTOTERMS_OPTION_PREFIX ) ) ) . ']</p>';
1
  <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  include __DIR__ . DIRECTORY_SEPARATOR . 'text-option.php';
8
  echo '<p class="wpautoterms-shortcode-option ' . $classes . '">' . __( 'Short code:', WPAUTOTERMS_SLUG ) .
9
  ' [wpautoterms ' . esc_html( substr( $name, strlen( WPAUTOTERMS_OPTION_PREFIX ) ) ) . ']</p>';
templates/options/shortcode-select-option.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
  include __DIR__ . DIRECTORY_SEPARATOR . 'select-option.php';
3
  echo '<p class="wpautoterms-shortcode-option ' . $classes . '">' . __( 'Short code:', WPAUTOTERMS_SLUG ) .
4
  ' [wpautoterms ' . esc_html( substr( $name, strlen( WPAUTOTERMS_OPTION_PREFIX ) ) ) . ']</p>';
1
  <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  include __DIR__ . DIRECTORY_SEPARATOR . 'select-option.php';
8
  echo '<p class="wpautoterms-shortcode-option ' . $classes . '">' . __( 'Short code:', WPAUTOTERMS_SLUG ) .
9
  ' [wpautoterms ' . esc_html( substr( $name, strlen( WPAUTOTERMS_OPTION_PREFIX ) ) ) . ']</p>';
templates/options/tag-option.php CHANGED
@@ -1,4 +1,9 @@
1
- <p><?php _e( 'Choose a tag from your current list of tags:', WPAUTOTERMS_SLUG ); ?></p>
 
 
 
 
 
2
  <select class="wpautoterms-options-select-tag <?php echo $classes; ?>" name="<?php echo $name; ?>[]"
3
  id="<?php echo $name; ?>[]">
4
  <?php
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><p><?php _e( 'Choose a tag from your current list of tags:', WPAUTOTERMS_SLUG ); ?></p>
7
  <select class="wpautoterms-options-select-tag <?php echo $classes; ?>" name="<?php echo $name; ?>[]"
8
  id="<?php echo $name; ?>[]">
9
  <?php
templates/options/text-option.php CHANGED
@@ -1,3 +1,8 @@
1
  <?php
 
 
 
 
 
2
  echo '<input type="text" class="' . $classes . '" name="' . $name . '" id="' . $name . '" value="' . esc_attr($value) . '" ' . $attrs . '/>';
3
  include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
1
  <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
  echo '<input type="text" class="' . $classes . '" name="' . $name . '" id="' . $name . '" value="' . esc_attr($value) . '" ' . $attrs . '/>';
8
  include __DIR__ . DIRECTORY_SEPARATOR . 'option-suffix.php';
templates/options/textarea-option.php CHANGED
@@ -1,4 +1,9 @@
1
- <textarea name="<?php echo $name; ?>" class="<?php echo $classes; ?>" id="<?php echo $name; ?>"<?php
 
 
 
 
 
2
  echo empty( $attrs ) ? '' : ' ' . $attrs;
3
  ?>>
4
  <?php echo esc_html($value); ?>
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?><textarea name="<?php echo $name; ?>" class="<?php echo $classes; ?>" id="<?php echo $name; ?>"<?php
7
  echo empty( $attrs ) ? '' : ' ' . $attrs;
8
  ?>>
9
  <?php echo esc_html($value); ?>
templates/pages/license_settings.php CHANGED
@@ -1,3 +1,17 @@
1
  <?php
2
 
3
- include __DIR__ . '/settings.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?>
7
+ <div class="wrap">
8
+ <h2><?php echo esc_html($page->title()); ?></h2>
9
+ <?php settings_errors(); ?>
10
+
11
+ <form method="post" action="options.php"><?php
12
+ settings_fields( $page->id() );
13
+ do_settings_sections( $page->id() );
14
+ submit_button();
15
+ ?>
16
+ </form>
17
+ </div>
templates/pages/settings.php CHANGED
@@ -3,15 +3,47 @@
3
  if ( ! defined( 'ABSPATH' ) ) {
4
  exit;
5
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  ?>
7
  <div class="wrap">
8
- <h2><?php echo esc_html($page->title()); ?></h2>
9
- <?php settings_errors(); ?>
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  <form method="post" action="options.php"><?php
12
- settings_fields( $page->id() );
13
- do_settings_sections( $page->id() );
 
14
  submit_button();
15
  ?>
16
  </form>
17
- </div>
3
  if ( ! defined( 'ABSPATH' ) ) {
4
  exit;
5
  }
6
+
7
+ use wpautoterms\admin\Menu;
8
+
9
+ $page_prefix = WPAUTOTERMS_SLUG . '_';
10
+
11
+ if ( isset( $_GET['page'] ) ) {
12
+ $active_page = substr( $_GET['page'], strlen( $page_prefix ) );
13
+ } else {
14
+ $active_page = Menu::PAGE_SETTINGS;
15
+ }
16
+
17
+ if ( false === array_search( $active_page, array(
18
+ Menu::PAGE_SETTINGS,
19
+ Menu::PAGE_SETTINGS_ADVANCED
20
+ ), true ) ) {
21
+ die( 'Bad page.' );
22
+ }
23
+
24
+ $link_prefix = '?post_type=' . \wpautoterms\cpt\CPT::type() . '&page=' . $page_prefix;
25
+
26
  ?>
27
  <div class="wrap">
28
+ <h2><?php echo esc_html( $page->title() ); ?></h2>
29
+ <?php settings_errors(); ?>
30
+
31
+ <h2 class="nav-tab-wrapper">
32
+ <a href="<?php echo $link_prefix . Menu::PAGE_SETTINGS; ?>"
33
+ class="nav-tab <?php echo $active_page == Menu::PAGE_SETTINGS ? 'nav-tab-active' : ''; ?>">
34
+ <?php _e( 'General', WPAUTOTERMS_SLUG ); ?>
35
+ </a>
36
+ <a href="<?php echo $link_prefix . Menu::PAGE_SETTINGS_ADVANCED; ?>"
37
+ class="nav-tab <?php echo $active_page == Menu::PAGE_SETTINGS_ADVANCED ? 'nav-tab-active' : ''; ?>">
38
+ <?php _e( 'Advanced', WPAUTOTERMS_SLUG ); ?>
39
+ </a>
40
+ </h2>
41
 
42
  <form method="post" action="options.php"><?php
43
+ settings_fields( $page_prefix . $active_page );
44
+ do_settings_sections( $page_prefix . $active_page );
45
+
46
  submit_button();
47
  ?>
48
  </form>
49
+ </div>
templates/pages/settings_advanced.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ include( __DIR__ . DIRECTORY_SEPARATOR . 'settings.php' );
templates/review-banner.php CHANGED
@@ -1,6 +1,7 @@
1
  <div class="wpautoterms-review-banner notice notice-info wpautoterms-is-dismissible" data-wpautoterms-dismissible="<?php
2
  esc_attr_e( 'Don\'t show this again', WPAUTOTERMS_SLUG ); ?>"
3
  data-wpautoterms-action-id="<?php echo esc_attr( $action_id ); ?>"
 
4
  data-wpautoterms-action-data="<?php echo esc_attr( '{"state":1}' ) ?>">
5
  <h4><?php esc_html_e( 'Do you like WP AutoTerms?', WPAUTOTERMS_SLUG ); ?></h4>
6
  <p>
1
  <div class="wpautoterms-review-banner notice notice-info wpautoterms-is-dismissible" data-wpautoterms-dismissible="<?php
2
  esc_attr_e( 'Don\'t show this again', WPAUTOTERMS_SLUG ); ?>"
3
  data-wpautoterms-action-id="<?php echo esc_attr( $action_id ); ?>"
4
+ data-wpautoterms-action-nonce="<?php echo esc_attr( $action_nonce ); ?>"
5
  data-wpautoterms-action-data="<?php echo esc_attr( '{"state":1}' ) ?>">
6
  <h4><?php esc_html_e( 'Do you like WP AutoTerms?', WPAUTOTERMS_SLUG ); ?></h4>
7
  <p>
templates/shortcodes.php CHANGED
@@ -7,5 +7,5 @@
7
  esc_attr( $v ) . '" data-editor="'.esc_attr($option->name()).'">' . esc_html( $k ) . '</a>';
8
  }
9
  echo join( ', ', $s );
10
- ?>
11
  </p>
7
  esc_attr( $v ) . '" data-editor="'.esc_attr($option->name()).'">' . esc_html( $k ) . '</a>';
8
  }
9
  echo join( ', ', $s );
10
+ ?>.
11
  </p>
templates/update-notice.php CHANGED
@@ -3,7 +3,12 @@
3
  use wpautoterms\frontend\notice\Update_Notice;
4
 
5
  ?>
6
- <div class="<?php echo esc_attr( Update_Notice::BLOCK_CLASS ); ?>"><?php echo $message; ?>
7
- <a href="javascript:void(0);" class="<?php echo esc_attr( Update_Notice::CLOSE_CLASS ) ?>"
8
- value="<?php echo esc_attr( $cookie_value ); ?>"
9
- cookie="<?php echo esc_attr( $cookie_name ); ?>"><?php echo $close; ?></a></div>
 
 
 
 
 
3
  use wpautoterms\frontend\notice\Update_Notice;
4
 
5
  ?>
6
+ <div id="wpautoterms-update-notice-placeholder" style="display:none"></div>
7
+ <script id="tmpl-wpautoterms-update-notice" type="text/html">
8
+ <div class="<?php echo $class_escaped; ?>">
9
+ {{{data.message}}}
10
+ <a href="javascript:void(0);" class="<?php echo esc_attr( Update_Notice::CLOSE_CLASS ) ?>"
11
+ data-type="closeButton" data-cookie="{{{data.cookies}}}" data-value="{{{data.values}}}">
12
+ <?php echo $close; ?>
13
+ </a></div>
14
+ </script>