WordPress SEO Plugin – Rank Math - Version 1.0.21

Version Description

[Mar 19, 2019] = * Added Google Search Console Domain Properties support. It replaces sc-domain: with Domain Property: in the sites' dropdown, disables the Sitemaps feature in the GSC module for domain properties (as Google does not have an API for it yet), and adds a note to inform the user about the same * Added search form in the GSC dropdown * Added a filter to change the number of pasted URLs in the Redirections source (http://i.mythemeshop.com/f4sWd1) * Setup Wizard refactored for the speed and efficiency * Integrated 404 Monitor Plugin & Rank Math plugin tightly * Added missing text in the translation(.pot) file * Updated help text for the WooCommerce Tab in the plugin * Updated Focus Keyword input placeholder text to Rank Math * Fixed WooCommerce product Schema errors * Fixed text domain issue for WordPress.org translations * Fixed bbPress Sitemaps not working bug * Fixed Sorry, you are not authorized to perform this action for the multi-site websites * Fixed an issue with the redirections where the folder name was automatically added in the Destination URL when someone changed the permalinks * Fixed a fatal error occurring on eCommerce websites where WooCommerce was not installed * Fixed Robots.txt editor not picking up the values. It was checking the robots_txt option in the wrong section * Fixed a bug where the title for the links was getting automatically prefilled as the title for all the other links when edited * Fixed a compatibility issue with the AMP plugin * Fixed primary keyword detection in the SEO analysis tests. It works as it should have been. * Fixed an issue in the Sitemaps where private taxonomies were accessible through direct URLs * Fixed the OG/image filter. It works perfectly now * Fixed Video Snippet error caused by entering incorrect values * Fixed an error with WooCommerce's preview URLs where complete URLs were showing even after enabling the Strip Product Category option * Fixed small styling issues in the plugin so it looks better * Removed unneeded code * Improved backup 'Restore/delete' button style for the Russian language * Improved the speed and space usage by removing the custom image sizes code * Improved the overall code quality for the upcoming additions coming to the plugin

Full changelog can be found here - Rank Math SEO changelog

Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WordPress SEO Plugin – Rank Math
Version 1.0.21
Comparing to
See all releases

Code changes from version 1.0.20 to 1.0.21

Files changed (951) hide show
  1. assets/admin/css/cmb2.css +0 -0
  2. assets/admin/css/common.css +3 -1
  3. assets/admin/css/dashboard.css +0 -0
  4. assets/admin/css/feedback.css +0 -0
  5. assets/admin/css/metabox.css +0 -0
  6. assets/admin/css/option-panel.css +0 -0
  7. assets/admin/css/post-list.css +1 -1
  8. assets/admin/css/setup-wizard.css +0 -0
  9. assets/admin/img/ajax-loader.gif +0 -0
  10. assets/admin/img/icon-gif.png +0 -0
  11. assets/admin/img/icon-play.png +0 -0
  12. assets/admin/img/logo.png +0 -0
  13. assets/admin/img/logo.svg +0 -0
  14. assets/admin/img/menu-icon.svg +0 -0
  15. assets/admin/img/pillar.svg +0 -0
  16. assets/admin/img/progressred.png +0 -0
  17. assets/admin/img/score-100.png +0 -0
  18. assets/admin/js/assessor.js +0 -0
  19. assets/admin/js/common.js +1 -1
  20. assets/admin/js/dashboard.js +0 -0
  21. assets/admin/js/feedback.js +0 -0
  22. assets/admin/js/import-export.js +0 -0
  23. assets/admin/js/jquery.tag-editor.js +0 -0
  24. assets/admin/js/option-panel.js +0 -0
  25. assets/admin/js/post-list.js +0 -0
  26. assets/admin/js/post-metabox.js +1 -1
  27. assets/admin/js/term-metabox.js +0 -0
  28. assets/admin/js/user-metabox.js +0 -0
  29. assets/admin/js/wizard.js +0 -0
  30. assets/admin/js/wplink.js +1 -1
  31. assets/front/css/modules/_base.css +0 -0
  32. assets/front/css/rank-math-contact-info.css +0 -0
  33. assets/front/css/rank-math-review-snippet.css +0 -0
  34. assets/front/css/rank-math.css +0 -0
  35. assets/front/img/rank-math-icon.svg +0 -0
  36. assets/front/js/rank-math.js +0 -0
  37. assets/vendor/clipboard.min.js +0 -0
  38. assets/vendor/jquery.caret.min.js +0 -0
  39. assets/vendor/powerwords.php +0 -0
  40. assets/vendor/select2/select2.min.css +0 -0
  41. assets/vendor/select2/select2.min.js +0 -0
  42. includes/admin/class-admin-helper.php +3 -2
  43. includes/admin/class-admin-menu.php +0 -0
  44. includes/admin/class-admin.php +2 -2
  45. includes/admin/class-assets.php +0 -0
  46. includes/admin/class-cmb2-fields.php +0 -0
  47. includes/admin/class-deactivate-survey.php +0 -0
  48. includes/admin/class-engine.php +0 -0
  49. includes/admin/class-import-export.php +0 -0
  50. includes/admin/class-metabox.php +0 -0
  51. includes/admin/class-notices.php +4 -0
  52. includes/admin/class-option-center.php +0 -0
  53. includes/admin/class-options.php +0 -0
  54. includes/admin/class-post-columns.php +76 -61
  55. includes/admin/class-registration.php +4 -5
  56. includes/admin/class-serp-checklist.php +2 -2
  57. includes/admin/class-serp-preview.php +47 -20
  58. includes/admin/class-setup-wizard.php +146 -1031
  59. includes/admin/importers/abstract-importer.php +0 -0
  60. includes/admin/importers/class-aio-rich-snippet.php +0 -0
  61. includes/admin/importers/class-aioseo.php +0 -0
  62. includes/admin/importers/class-detector.php +41 -26
  63. includes/admin/importers/class-redirections.php +0 -0
  64. includes/admin/importers/class-wp-schema-pro.php +40 -42
  65. includes/admin/importers/class-yoast.php +0 -0
  66. includes/admin/importers/index.php +0 -0
  67. includes/admin/index.php +0 -0
  68. includes/admin/views/dashboard-help.php +7 -7
  69. includes/admin/views/dashboard.php +1 -1
  70. includes/admin/views/help-manager.php +1 -1
  71. includes/admin/views/help/amp.php +19 -13
  72. includes/admin/views/help/getting-started.php +13 -6
  73. includes/admin/views/help/index.php +0 -0
  74. includes/admin/views/help/local-seo.php +26 -8
  75. includes/admin/views/import-export/backup-panel.php +2 -2
  76. includes/admin/views/import-export/export-panel.php +0 -0
  77. includes/admin/views/import-export/import-panel.php +0 -0
  78. includes/admin/views/import-export/index.php +0 -0
  79. includes/admin/views/import-export/main.php +0 -0
  80. includes/admin/views/import-export/plugins-panel.php +0 -0
  81. includes/admin/views/index.php +0 -0
  82. includes/admin/views/plugin-activation.php +0 -0
  83. includes/admin/views/plugin-updates.php +0 -0
  84. includes/admin/views/wizard/import.php +0 -30
  85. includes/admin/views/wizard/optimization.php +0 -26
  86. includes/admin/views/wizard/search-console.php +0 -26
  87. includes/admin/views/wizard/sitemaps.php +0 -26
  88. includes/admin/watcher/class-watcher.php +0 -0
  89. includes/admin/wizard/class-compatibility.php +168 -0
  90. includes/admin/wizard/class-import.php +150 -0
  91. includes/admin/wizard/class-misc.php +177 -0
  92. includes/admin/wizard/class-monitor-redirection.php +97 -0
  93. includes/admin/wizard/class-optimization.php +130 -0
  94. includes/admin/wizard/class-ready.php +52 -0
  95. includes/admin/wizard/class-role.php +86 -0
  96. includes/admin/wizard/class-search-console.php +150 -0
  97. includes/admin/wizard/class-sitemap.php +215 -0
  98. includes/admin/wizard/class-your-site.php +298 -0
  99. includes/admin/wizard/interface-wizard-step.php +47 -0
  100. includes/admin/{views/wizard → wizard/views}/compatibility.php +1 -1
  101. includes/admin/{views/wizard → wizard/views}/content.php +2 -2
  102. includes/admin/{views/wizard → wizard/views}/footer.php +0 -0
  103. includes/admin/{views/wizard → wizard/views}/header.php +1 -1
  104. includes/admin/{views/wizard → wizard/views}/index.php +0 -0
  105. includes/admin/{views/wizard → wizard/views}/navigation.php +2 -2
  106. includes/admin/{views/wizard → wizard/views}/no-navigation.php +0 -0
  107. includes/admin/{views/wizard → wizard/views}/ready.php +3 -3
  108. includes/admin/{views/wizard → wizard/views}/your-site.php +11 -11
  109. includes/class-cmb2.php +0 -0
  110. includes/class-common.php +1 -12
  111. includes/class-compatibility.php +0 -0
  112. includes/class-helper.php +0 -0
  113. includes/class-installer.php +6 -0
  114. includes/class-kb.php +0 -0
  115. includes/class-metadata.php +0 -0
  116. includes/class-module-manager.php +0 -0
  117. includes/class-module.php +0 -0
  118. includes/class-post.php +2 -1
  119. includes/class-replace-vars.php +0 -0
  120. includes/class-rewrite.php +0 -0
  121. includes/class-rollbar.php +0 -0
  122. includes/class-settings.php +0 -0
  123. includes/class-shortcodes.php +0 -0
  124. includes/class-term.php +0 -0
  125. includes/class-tracking.php +0 -0
  126. includes/class-updates.php +0 -0
  127. includes/class-user.php +0 -0
  128. includes/cli/class-commands.php +0 -0
  129. includes/frontend/class-add-attributes.php +0 -0
  130. includes/frontend/class-breadcrumbs.php +0 -0
  131. includes/frontend/class-frontend.php +2 -2
  132. includes/frontend/class-generate.php +0 -0
  133. includes/frontend/class-head.php +5 -1
  134. includes/frontend/class-remove-reply-to-com.php +0 -0
  135. includes/helpers/class-api.php +0 -0
  136. includes/helpers/class-attachment.php +0 -0
  137. includes/helpers/class-choices.php +1 -1
  138. includes/helpers/class-conditional.php +0 -0
  139. includes/helpers/class-options.php +0 -0
  140. includes/helpers/class-post-type.php +0 -0
  141. includes/helpers/class-taxonomy.php +0 -0
  142. includes/helpers/class-wordpress.php +30 -11
  143. includes/helpers/index.php +0 -0
  144. includes/index.php +0 -0
  145. includes/interface-runner.php +0 -0
  146. includes/metaboxes/advanced.php +0 -0
  147. includes/metaboxes/general.php +7 -2
  148. includes/metaboxes/index.php +0 -0
  149. includes/metaboxes/link-suggestions.php +0 -0
  150. includes/metaboxes/serp-checklist.php +0 -0
  151. includes/metaboxes/serp-preview.php +0 -0
  152. includes/metaboxes/social-preview.php +11 -4
  153. includes/metaboxes/social.php +0 -0
  154. includes/modules/404-monitor/assets/404-monitor.js +0 -0
  155. includes/modules/404-monitor/class-admin.php +0 -0
  156. includes/modules/404-monitor/class-db.php +0 -0
  157. includes/modules/404-monitor/class-monitor.php +0 -0
  158. includes/modules/404-monitor/class-table.php +0 -0
  159. includes/modules/404-monitor/index.php +0 -0
  160. includes/modules/404-monitor/views/help-tab-actions.php +0 -0
  161. includes/modules/404-monitor/views/help-tab-bulk.php +0 -0
  162. includes/modules/404-monitor/views/help-tab-overview.php +0 -0
  163. includes/modules/404-monitor/views/help-tab-screen-content.php +0 -0
  164. includes/modules/404-monitor/views/help.php +15 -14
  165. includes/modules/404-monitor/views/index.php +0 -0
  166. includes/modules/404-monitor/views/main.php +0 -0
  167. includes/modules/404-monitor/views/options.php +0 -0
  168. includes/modules/index.php +0 -0
  169. includes/modules/links/class-contentprocessor.php +0 -0
  170. includes/modules/links/class-link.php +0 -0
  171. includes/modules/links/class-links.php +0 -0
  172. includes/modules/links/class-storage.php +0 -0
  173. includes/modules/local-seo/class-local-seo.php +0 -0
  174. includes/modules/local-seo/index.php +0 -0
  175. includes/modules/local-seo/views/index.php +0 -0
  176. includes/modules/local-seo/views/titles-options.php +0 -0
  177. includes/modules/redirections/assets/loader.svg +0 -0
  178. includes/modules/redirections/assets/redirections.css +0 -0
  179. includes/modules/redirections/assets/redirections.js +2 -3
  180. includes/modules/redirections/class-admin.php +7 -0
  181. includes/modules/redirections/class-cache.php +0 -0
  182. includes/modules/redirections/class-db.php +0 -0
  183. includes/modules/redirections/class-export.php +0 -0
  184. includes/modules/redirections/class-form.php +0 -0
  185. includes/modules/redirections/class-metabox.php +0 -0
  186. includes/modules/redirections/class-redirection.php +18 -2
  187. includes/modules/redirections/class-redirections.php +0 -0
  188. includes/modules/redirections/class-redirector.php +1 -9
  189. includes/modules/redirections/class-table.php +0 -0
  190. includes/modules/redirections/class-watcher.php +2 -1
  191. includes/modules/redirections/views/debugging.php +0 -0
  192. includes/modules/redirections/views/help-tab-actions.php +0 -0
  193. includes/modules/redirections/views/help-tab-bulk.php +0 -0
  194. includes/modules/redirections/views/help-tab-overview.php +0 -0
  195. includes/modules/redirections/views/help-tab-screen-content.php +0 -0
  196. includes/modules/redirections/views/help.php +8 -6
  197. includes/modules/redirections/views/main.php +2 -1
  198. includes/modules/redirections/views/options.php +0 -0
  199. includes/modules/rich-snippet/class-admin.php +0 -0
  200. includes/modules/rich-snippet/class-jsonld.php +0 -0
  201. includes/modules/rich-snippet/class-richsnippet.php +0 -0
  202. includes/modules/rich-snippet/index.php +0 -0
  203. includes/modules/rich-snippet/interface-snippet.php +0 -0
  204. includes/modules/rich-snippet/snippets/class-article.php +0 -0
  205. includes/modules/rich-snippet/snippets/class-author.php +0 -0
  206. includes/modules/rich-snippet/snippets/class-blog.php +0 -0
  207. includes/modules/rich-snippet/snippets/class-book.php +0 -0
  208. includes/modules/rich-snippet/snippets/class-breadcrumbs.php +0 -0
  209. includes/modules/rich-snippet/snippets/class-collection-page.php +0 -0
  210. includes/modules/rich-snippet/snippets/class-course.php +0 -0
  211. includes/modules/rich-snippet/snippets/class-event.php +0 -0
  212. includes/modules/rich-snippet/snippets/class-jobposting.php +0 -0
  213. includes/modules/rich-snippet/snippets/class-local.php +0 -0
  214. includes/modules/rich-snippet/snippets/class-music.php +0 -0
  215. includes/modules/rich-snippet/snippets/class-person.php +0 -0
  216. includes/modules/rich-snippet/snippets/class-product-edd.php +0 -0
  217. includes/modules/rich-snippet/snippets/class-product-woocommerce.php +0 -0
  218. includes/modules/rich-snippet/snippets/class-product.php +1 -0
  219. includes/modules/rich-snippet/snippets/class-products-page.php +21 -0
  220. includes/modules/rich-snippet/snippets/class-recipe.php +0 -0
  221. includes/modules/rich-snippet/snippets/class-restaurant.php +0 -0
  222. includes/modules/rich-snippet/snippets/class-review.php +0 -0
  223. includes/modules/rich-snippet/snippets/class-search-results.php +0 -0
  224. includes/modules/rich-snippet/snippets/class-service.php +0 -0
  225. includes/modules/rich-snippet/snippets/class-singular.php +0 -0
  226. includes/modules/rich-snippet/snippets/class-software.php +0 -0
  227. includes/modules/rich-snippet/snippets/class-video.php +4 -1
  228. includes/modules/rich-snippet/snippets/class-wc-attributes.php +0 -0
  229. includes/modules/rich-snippet/snippets/class-website.php +0 -0
  230. includes/modules/rich-snippet/views/article.php +0 -0
  231. includes/modules/rich-snippet/views/book.php +0 -0
  232. includes/modules/rich-snippet/views/course.php +0 -0
  233. includes/modules/rich-snippet/views/event.php +0 -0
  234. includes/modules/rich-snippet/views/help.php +14 -12
  235. includes/modules/rich-snippet/views/index.php +0 -0
  236. includes/modules/rich-snippet/views/job-posting.php +0 -0
  237. includes/modules/rich-snippet/views/local.php +0 -0
  238. includes/modules/rich-snippet/views/metabox-options.php +0 -0
  239. includes/modules/rich-snippet/views/music.php +0 -0
  240. includes/modules/rich-snippet/views/person.php +0 -0
  241. includes/modules/rich-snippet/views/product.php +0 -0
  242. includes/modules/rich-snippet/views/recipe.php +0 -0
  243. includes/modules/rich-snippet/views/restaurant.php +0 -0
  244. includes/modules/rich-snippet/views/review.php +0 -0
  245. includes/modules/rich-snippet/views/service.php +0 -0
  246. includes/modules/rich-snippet/views/software.php +0 -0
  247. includes/modules/rich-snippet/views/video.php +0 -0
  248. includes/modules/role-manager/assets/role-manager.css +0 -0
  249. includes/modules/role-manager/class-capability-manager.php +0 -0
  250. includes/modules/role-manager/class-members.php +0 -0
  251. includes/modules/role-manager/class-role-manager.php +0 -0
  252. includes/modules/role-manager/class-user-role-editor.php +0 -0
  253. includes/modules/role-manager/index.php +0 -0
  254. includes/modules/role-manager/views/help.php +7 -5
  255. includes/modules/role-manager/views/index.php +0 -0
  256. includes/modules/role-manager/views/main.php +0 -0
  257. includes/modules/search-console/assets/search-console.css +0 -0
  258. includes/modules/search-console/assets/search-console.js +0 -0
  259. includes/modules/search-console/class-analytics-list.php +0 -0
  260. includes/modules/search-console/class-analytics.php +0 -0
  261. includes/modules/search-console/class-client.php +4 -2
  262. includes/modules/search-console/class-data-fetcher.php +0 -0
  263. includes/modules/search-console/class-db.php +0 -0
  264. includes/modules/search-console/class-errors-list.php +0 -0
  265. includes/modules/search-console/class-errors.php +0 -0
  266. includes/modules/search-console/class-overview.php +0 -0
  267. includes/modules/search-console/class-search-console-common.php +0 -0
  268. includes/modules/search-console/class-search-console.php +12 -0
  269. includes/modules/search-console/class-sitemaps-list.php +2 -1
  270. includes/modules/search-console/class-sitemaps.php +24 -1
  271. includes/modules/search-console/index.php +0 -0
  272. includes/modules/search-console/views/help.php +6 -4
  273. includes/modules/search-console/views/index.php +0 -0
  274. includes/modules/search-console/views/main.php +0 -0
  275. includes/modules/search-console/views/options.php +12 -3
  276. includes/modules/search-console/views/search-console-noauth.php +0 -0
  277. includes/modules/search-console/views/search-console-overview.php +0 -0
  278. includes/modules/search-console/views/search-console-tracker.php +0 -0
  279. includes/modules/seo-analysis/assets/circle-progress.min.js +0 -0
  280. includes/modules/seo-analysis/assets/seo-analysis.css +0 -0
  281. includes/modules/seo-analysis/assets/seo-analysis.js +0 -0
  282. includes/modules/seo-analysis/class-admin.php +0 -0
  283. includes/modules/seo-analysis/class-seo-analysis.php +0 -0
  284. includes/modules/seo-analysis/class-seo-analyzer.php +0 -0
  285. includes/modules/seo-analysis/index.php +0 -0
  286. includes/modules/seo-analysis/seo-analysis-tests.php +1 -1
  287. includes/modules/seo-analysis/views/help.php +12 -10
  288. includes/modules/seo-analysis/views/index.php +0 -0
  289. includes/modules/seo-analysis/views/main.php +4 -3
  290. includes/modules/sitemap/abstract-xml.php +0 -0
  291. includes/modules/sitemap/class-admin.php +0 -0
  292. includes/modules/sitemap/class-cache-watcher.php +0 -0
  293. includes/modules/sitemap/class-cache.php +0 -0
  294. includes/modules/sitemap/class-classifier.php +0 -0
  295. includes/modules/sitemap/class-generator.php +0 -0
  296. includes/modules/sitemap/class-image-parser.php +0 -0
  297. includes/modules/sitemap/class-router.php +0 -0
  298. includes/modules/sitemap/class-sitemap-xml.php +0 -0
  299. includes/modules/sitemap/class-sitemap.php +0 -0
  300. includes/modules/sitemap/class-stylesheet.php +0 -0
  301. includes/modules/sitemap/class-timezone.php +0 -0
  302. includes/modules/sitemap/index.php +0 -0
  303. includes/modules/sitemap/providers/class-author.php +0 -0
  304. includes/modules/sitemap/providers/class-post-type.php +1 -1
  305. includes/modules/sitemap/providers/class-taxonomy.php +1 -1
  306. includes/modules/sitemap/providers/index.php +0 -0
  307. includes/modules/sitemap/providers/interface-provider.php +0 -0
  308. includes/modules/sitemap/settings/authors.php +0 -0
  309. includes/modules/sitemap/settings/general.php +0 -0
  310. includes/modules/sitemap/settings/index.php +0 -0
  311. includes/modules/sitemap/settings/post-types.php +0 -0
  312. includes/modules/sitemap/settings/taxonomies.php +0 -0
  313. includes/modules/sitemap/sitemap-xsl.php +137 -72
  314. includes/modules/sitemap/views/help.php +11 -9
  315. includes/modules/sitemap/views/index.php +0 -0
  316. includes/modules/woocommerce/class-admin.php +0 -0
  317. includes/modules/woocommerce/class-woocommerce.php +0 -0
  318. includes/modules/woocommerce/views/help.php +71 -3
  319. includes/modules/woocommerce/views/options-general.php +8 -0
  320. includes/opengraph/class-facebook.php +8 -12
  321. includes/opengraph/class-image.php +2 -0
  322. includes/opengraph/class-opengraph.php +0 -0
  323. includes/opengraph/class-twitter.php +0 -0
  324. includes/opengraph/index.php +0 -0
  325. includes/rest/class-admin.php +0 -0
  326. includes/rest/class-helper.php +0 -0
  327. includes/settings/general/breadcrumbs.php +0 -0
  328. includes/settings/general/htaccess.php +0 -0
  329. includes/settings/general/images.php +0 -0
  330. includes/settings/general/index.php +0 -0
  331. includes/settings/general/links.php +0 -0
  332. includes/settings/general/others.php +0 -0
  333. includes/settings/general/robots.php +0 -0
  334. includes/settings/general/rss-vars-table.php +0 -0
  335. includes/settings/general/webmaster.php +0 -0
  336. includes/settings/index.php +0 -0
  337. includes/settings/titles/author.php +0 -0
  338. includes/settings/titles/global.php +0 -0
  339. includes/settings/titles/homepage.php +0 -0
  340. includes/settings/titles/index.php +0 -0
  341. includes/settings/titles/local.php +0 -0
  342. includes/settings/titles/misc.php +0 -0
  343. includes/settings/titles/post-types.php +0 -0
  344. includes/settings/titles/social.php +0 -0
  345. includes/settings/titles/taxonomies.php +1 -1
  346. includes/template-tags.php +0 -0
  347. includes/traits/class-ajax.php +0 -0
  348. includes/traits/class-hooker.php +0 -0
  349. includes/traits/class-replacement.php +0 -0
  350. includes/traits/class-shortcode.php +0 -0
  351. includes/traits/class-wizard.php +5 -0
  352. includes/traits/index.php +0 -0
  353. includes/updates/update-0.10.0.php +0 -0
  354. includes/updates/update-0.9.8.php +0 -0
  355. includes/updates/update-1.0.14.php +0 -0
  356. includes/updates/update-1.0.15.php +0 -0
  357. includes/updates/update-1.0.18.php +0 -0
  358. languages/rank-math.pot +292 -14
  359. rank-math.php +5 -3
  360. readme.txt +29 -4
  361. uninstall.php +0 -0
  362. vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php +0 -0
  363. vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php +0 -0
  364. vendor/a5hleyrich/wp-background-processing/license.txt +0 -0
  365. vendor/a5hleyrich/wp-background-processing/wp-background-processing.php +0 -0
  366. vendor/autoload.php +0 -0
  367. vendor/cmb2/cmb2/CHANGELOG.md +0 -0
  368. vendor/cmb2/cmb2/CONTRIBUTING.md +0 -0
  369. vendor/cmb2/cmb2/apigen/apigen.neon +0 -0
  370. vendor/cmb2/cmb2/apigen/hook-docs.php +0 -0
  371. vendor/cmb2/cmb2/apigen/theme-bootstrap/LICENSE +0 -0
  372. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/404.latte +0 -0
  373. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/@elementlist.latte +0 -0
  374. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/@layout.latte +0 -0
  375. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/annotation-group.latte +0 -0
  376. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/class.latte +0 -0
  377. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/combined.js.latte +0 -0
  378. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/config.neon +0 -0
  379. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/constant.latte +0 -0
  380. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/elementlist.js.latte +0 -0
  381. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/function.latte +0 -0
  382. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.autocomplete.js +0 -0
  383. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.cookie.js +0 -0
  384. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.min.js +0 -0
  385. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.sortElements.js +0 -0
  386. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.sprintf.js +0 -0
  387. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/main.js +0 -0
  388. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/namespace.latte +0 -0
  389. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/opensearch.xml.latte +0 -0
  390. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/overview.latte +0 -0
  391. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/package.latte +0 -0
  392. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/bootstrap.min.css +0 -0
  393. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/collapsed.png +0 -0
  394. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/inherit.png +0 -0
  395. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/resize.png +0 -0
  396. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/sort.png +0 -0
  397. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/style.css +0 -0
  398. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-cleaner.png +0 -0
  399. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-hasnext.png +0 -0
  400. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-last.png +0 -0
  401. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-vertical.png +0 -0
  402. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/robots.txt.latte +0 -0
  403. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/sitemap.xml.latte +0 -0
  404. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/source.latte +0 -0
  405. vendor/cmb2/cmb2/apigen/theme-bootstrap/src/tree.latte +0 -0
  406. vendor/cmb2/cmb2/bootstrap.php +0 -0
  407. vendor/cmb2/cmb2/css/cmb2-display-rtl.css +0 -0
  408. vendor/cmb2/cmb2/css/cmb2-display-rtl.min.css +0 -0
  409. vendor/cmb2/cmb2/css/cmb2-display.css +0 -0
  410. vendor/cmb2/cmb2/css/cmb2-display.css.map +0 -0
  411. vendor/cmb2/cmb2/css/cmb2-display.min.css +0 -0
  412. vendor/cmb2/cmb2/css/cmb2-front-rtl.css +0 -0
  413. vendor/cmb2/cmb2/css/cmb2-front-rtl.min.css +0 -0
  414. vendor/cmb2/cmb2/css/cmb2-front.css +0 -0
  415. vendor/cmb2/cmb2/css/cmb2-front.css.map +0 -0
  416. vendor/cmb2/cmb2/css/cmb2-front.min.css +0 -0
  417. vendor/cmb2/cmb2/css/cmb2-rtl.css +0 -0
  418. vendor/cmb2/cmb2/css/cmb2-rtl.min.css +0 -0
  419. vendor/cmb2/cmb2/css/cmb2.css +0 -0
  420. vendor/cmb2/cmb2/css/cmb2.css.map +0 -0
  421. vendor/cmb2/cmb2/css/cmb2.min.css +0 -0
  422. vendor/cmb2/cmb2/css/index.php +0 -0
  423. vendor/cmb2/cmb2/example-functions.php +0 -0
  424. vendor/cmb2/cmb2/images/ico-delete.png +0 -0
  425. vendor/cmb2/cmb2/images/index.php +0 -0
  426. vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  427. vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  428. vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  429. vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  430. vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  431. vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  432. vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  433. vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  434. vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png +0 -0
  435. vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png +0 -0
  436. vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png +0 -0
  437. vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png +0 -0
  438. vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png +0 -0
  439. vendor/cmb2/cmb2/includes/CMB2.php +0 -0
  440. vendor/cmb2/cmb2/includes/CMB2_Ajax.php +0 -0
  441. vendor/cmb2/cmb2/includes/CMB2_Base.php +0 -0
  442. vendor/cmb2/cmb2/includes/CMB2_Boxes.php +0 -0
  443. vendor/cmb2/cmb2/includes/CMB2_Field.php +0 -0
  444. vendor/cmb2/cmb2/includes/CMB2_Field_Display.php +0 -0
  445. vendor/cmb2/cmb2/includes/CMB2_Hookup_Base.php +0 -0
  446. vendor/cmb2/cmb2/includes/CMB2_JS.php +0 -0
  447. vendor/cmb2/cmb2/includes/CMB2_Options.php +0 -0
  448. vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php +0 -0
  449. vendor/cmb2/cmb2/includes/CMB2_Sanitize.php +0 -0
  450. vendor/cmb2/cmb2/includes/CMB2_Show_Filters.php +0 -0
  451. vendor/cmb2/cmb2/includes/CMB2_Types.php +0 -0
  452. vendor/cmb2/cmb2/includes/CMB2_Utils.php +0 -0
  453. vendor/cmb2/cmb2/includes/CMB2_hookup.php +0 -0
  454. vendor/cmb2/cmb2/includes/helper-functions.php +0 -0
  455. vendor/cmb2/cmb2/includes/index.php +0 -0
  456. vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php +0 -0
  457. vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller.php +0 -0
  458. vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php +0 -0
  459. vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php +0 -0
  460. vendor/cmb2/cmb2/includes/shim/WP_REST_Controller.php +0 -0
  461. vendor/cmb2/cmb2/includes/types/CMB2_Type_Base.php +0 -0
  462. vendor/cmb2/cmb2/includes/types/CMB2_Type_Checkbox.php +0 -0
  463. vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php +0 -0
  464. vendor/cmb2/cmb2/includes/types/CMB2_Type_File.php +0 -0
  465. vendor/cmb2/cmb2/includes/types/CMB2_Type_File_Base.php +0 -0
  466. vendor/cmb2/cmb2/includes/types/CMB2_Type_File_List.php +0 -0
  467. vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php +0 -0
  468. vendor/cmb2/cmb2/includes/types/CMB2_Type_Multicheck.php +0 -0
  469. vendor/cmb2/cmb2/includes/types/CMB2_Type_Oembed.php +0 -0
  470. vendor/cmb2/cmb2/includes/types/CMB2_Type_Picker_Base.php +0 -0
  471. vendor/cmb2/cmb2/includes/types/CMB2_Type_Radio.php +0 -0
  472. vendor/cmb2/cmb2/includes/types/CMB2_Type_Select.php +0 -0
  473. vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php +0 -0
  474. vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php +0 -0
  475. vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php +0 -0
  476. vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php +0 -0
  477. vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php +0 -0
  478. vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php +0 -0
  479. vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php +0 -0
  480. vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php +0 -0
  481. vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php +0 -0
  482. vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php +0 -0
  483. vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php +0 -0
  484. vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php +0 -0
  485. vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea.php +0 -0
  486. vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php +0 -0
  487. vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php +0 -0
  488. vendor/cmb2/cmb2/includes/types/CMB2_Type_Wysiwyg.php +0 -0
  489. vendor/cmb2/cmb2/index.php +0 -0
  490. vendor/cmb2/cmb2/init.php +0 -0
  491. vendor/cmb2/cmb2/js/cmb2-wysiwyg.js +0 -0
  492. vendor/cmb2/cmb2/js/cmb2.js +0 -0
  493. vendor/cmb2/cmb2/js/cmb2.min.js +0 -0
  494. vendor/cmb2/cmb2/js/index.php +0 -0
  495. vendor/cmb2/cmb2/js/jquery-ui-timepicker-addon.min.js +0 -0
  496. vendor/cmb2/cmb2/js/wp-color-picker-alpha.js +0 -0
  497. vendor/cmb2/cmb2/js/wp-color-picker-alpha.min.js +0 -0
  498. vendor/cmb2/cmb2/languages/cmb2-ach.mo +0 -0
  499. vendor/cmb2/cmb2/languages/cmb2-ach.po +0 -0
  500. vendor/cmb2/cmb2/languages/cmb2-af.mo +0 -0
  501. vendor/cmb2/cmb2/languages/cmb2-af.po +0 -0
  502. vendor/cmb2/cmb2/languages/cmb2-an.mo +0 -0
  503. vendor/cmb2/cmb2/languages/cmb2-an.po +0 -0
  504. vendor/cmb2/cmb2/languages/cmb2-ar.mo +0 -0
  505. vendor/cmb2/cmb2/languages/cmb2-ar.po +0 -0
  506. vendor/cmb2/cmb2/languages/cmb2-ary.mo +0 -0
  507. vendor/cmb2/cmb2/languages/cmb2-ary.po +0 -0
  508. vendor/cmb2/cmb2/languages/cmb2-as.mo +0 -0
  509. vendor/cmb2/cmb2/languages/cmb2-as.po +0 -0
  510. vendor/cmb2/cmb2/languages/cmb2-az.mo +0 -0
  511. vendor/cmb2/cmb2/languages/cmb2-az.po +0 -0
  512. vendor/cmb2/cmb2/languages/cmb2-be.mo +0 -0
  513. vendor/cmb2/cmb2/languages/cmb2-be.po +0 -0
  514. vendor/cmb2/cmb2/languages/cmb2-bg.mo +0 -0
  515. vendor/cmb2/cmb2/languages/cmb2-bg.po +0 -0
  516. vendor/cmb2/cmb2/languages/cmb2-bg_BG.mo +0 -0
  517. vendor/cmb2/cmb2/languages/cmb2-bg_BG.po +0 -0
  518. vendor/cmb2/cmb2/languages/cmb2-bn_BD.mo +0 -0
  519. vendor/cmb2/cmb2/languages/cmb2-bn_BD.po +0 -0
  520. vendor/cmb2/cmb2/languages/cmb2-br.mo +0 -0
  521. vendor/cmb2/cmb2/languages/cmb2-br.po +0 -0
  522. vendor/cmb2/cmb2/languages/cmb2-bs.mo +0 -0
  523. vendor/cmb2/cmb2/languages/cmb2-bs.po +0 -0
  524. vendor/cmb2/cmb2/languages/cmb2-bs_BA.mo +0 -0
  525. vendor/cmb2/cmb2/languages/cmb2-bs_BA.po +0 -0
  526. vendor/cmb2/cmb2/languages/cmb2-ca.mo +0 -0
  527. vendor/cmb2/cmb2/languages/cmb2-ca.po +0 -0
  528. vendor/cmb2/cmb2/languages/cmb2-co.mo +0 -0
  529. vendor/cmb2/cmb2/languages/cmb2-co.po +0 -0
  530. vendor/cmb2/cmb2/languages/cmb2-cs_CZ.mo +0 -0
  531. vendor/cmb2/cmb2/languages/cmb2-cs_CZ.po +0 -0
  532. vendor/cmb2/cmb2/languages/cmb2-cy.mo +0 -0
  533. vendor/cmb2/cmb2/languages/cmb2-cy.po +0 -0
  534. vendor/cmb2/cmb2/languages/cmb2-da_DK.mo +0 -0
  535. vendor/cmb2/cmb2/languages/cmb2-da_DK.po +0 -0
  536. vendor/cmb2/cmb2/languages/cmb2-de_AT.mo +0 -0
  537. vendor/cmb2/cmb2/languages/cmb2-de_AT.po +0 -0
  538. vendor/cmb2/cmb2/languages/cmb2-de_CH.mo +0 -0
  539. vendor/cmb2/cmb2/languages/cmb2-de_CH.po +0 -0
  540. vendor/cmb2/cmb2/languages/cmb2-de_DE.mo +0 -0
  541. vendor/cmb2/cmb2/languages/cmb2-de_DE.po +0 -0
  542. vendor/cmb2/cmb2/languages/cmb2-dv.mo +0 -0
  543. vendor/cmb2/cmb2/languages/cmb2-dv.po +0 -0
  544. vendor/cmb2/cmb2/languages/cmb2-el.mo +0 -0
  545. vendor/cmb2/cmb2/languages/cmb2-el.po +0 -0
  546. vendor/cmb2/cmb2/languages/cmb2-en@pirate.mo +0 -0
  547. vendor/cmb2/cmb2/languages/cmb2-en@pirate.po +0 -0
  548. vendor/cmb2/cmb2/languages/cmb2-en_AU.mo +0 -0
  549. vendor/cmb2/cmb2/languages/cmb2-en_AU.po +0 -0
  550. vendor/cmb2/cmb2/languages/cmb2-en_CA.mo +0 -0
  551. vendor/cmb2/cmb2/languages/cmb2-en_CA.po +0 -0
  552. vendor/cmb2/cmb2/languages/cmb2-en_GB.mo +0 -0
  553. vendor/cmb2/cmb2/languages/cmb2-en_GB.po +0 -0
  554. vendor/cmb2/cmb2/languages/cmb2-eo.mo +0 -0
  555. vendor/cmb2/cmb2/languages/cmb2-eo.po +0 -0
  556. vendor/cmb2/cmb2/languages/cmb2-es_AR.mo +0 -0
  557. vendor/cmb2/cmb2/languages/cmb2-es_AR.po +0 -0
  558. vendor/cmb2/cmb2/languages/cmb2-es_CL.mo +0 -0
  559. vendor/cmb2/cmb2/languages/cmb2-es_CL.po +0 -0
  560. vendor/cmb2/cmb2/languages/cmb2-es_CO.mo +0 -0
  561. vendor/cmb2/cmb2/languages/cmb2-es_CO.po +0 -0
  562. vendor/cmb2/cmb2/languages/cmb2-es_ES.mo +0 -0
  563. vendor/cmb2/cmb2/languages/cmb2-es_ES.po +0 -0
  564. vendor/cmb2/cmb2/languages/cmb2-es_MX.mo +0 -0
  565. vendor/cmb2/cmb2/languages/cmb2-es_MX.po +0 -0
  566. vendor/cmb2/cmb2/languages/cmb2-es_PE.mo +0 -0
  567. vendor/cmb2/cmb2/languages/cmb2-es_PE.po +0 -0
  568. vendor/cmb2/cmb2/languages/cmb2-es_VE.mo +0 -0
  569. vendor/cmb2/cmb2/languages/cmb2-es_VE.po +0 -0
  570. vendor/cmb2/cmb2/languages/cmb2-et.mo +0 -0
  571. vendor/cmb2/cmb2/languages/cmb2-et.po +0 -0
  572. vendor/cmb2/cmb2/languages/cmb2-eu.mo +0 -0
  573. vendor/cmb2/cmb2/languages/cmb2-eu.po +0 -0
  574. vendor/cmb2/cmb2/languages/cmb2-fa.mo +0 -0
  575. vendor/cmb2/cmb2/languages/cmb2-fa.po +0 -0
  576. vendor/cmb2/cmb2/languages/cmb2-fa_IR.mo +0 -0
  577. vendor/cmb2/cmb2/languages/cmb2-fa_IR.po +0 -0
  578. vendor/cmb2/cmb2/languages/cmb2-fi.mo +0 -0
  579. vendor/cmb2/cmb2/languages/cmb2-fi.po +0 -0
  580. vendor/cmb2/cmb2/languages/cmb2-fo.mo +0 -0
  581. vendor/cmb2/cmb2/languages/cmb2-fo.po +0 -0
  582. vendor/cmb2/cmb2/languages/cmb2-fr_BE.mo +0 -0
  583. vendor/cmb2/cmb2/languages/cmb2-fr_BE.po +0 -0
  584. vendor/cmb2/cmb2/languages/cmb2-fr_CA.mo +0 -0
  585. vendor/cmb2/cmb2/languages/cmb2-fr_CA.po +0 -0
  586. vendor/cmb2/cmb2/languages/cmb2-fr_FR.mo +0 -0
  587. vendor/cmb2/cmb2/languages/cmb2-fr_FR.po +0 -0
  588. vendor/cmb2/cmb2/languages/cmb2-fy.mo +0 -0
  589. vendor/cmb2/cmb2/languages/cmb2-fy.po +0 -0
  590. vendor/cmb2/cmb2/languages/cmb2-ga.mo +0 -0
  591. vendor/cmb2/cmb2/languages/cmb2-ga.po +0 -0
  592. vendor/cmb2/cmb2/languages/cmb2-gd.mo +0 -0
  593. vendor/cmb2/cmb2/languages/cmb2-gd.po +0 -0
  594. vendor/cmb2/cmb2/languages/cmb2-gl_ES.mo +0 -0
  595. vendor/cmb2/cmb2/languages/cmb2-gl_ES.po +0 -0
  596. vendor/cmb2/cmb2/languages/cmb2-gu_IN.mo +0 -0
  597. vendor/cmb2/cmb2/languages/cmb2-gu_IN.po +0 -0
  598. vendor/cmb2/cmb2/languages/cmb2-he_IL.mo +0 -0
  599. vendor/cmb2/cmb2/languages/cmb2-he_IL.po +0 -0
  600. vendor/cmb2/cmb2/languages/cmb2-hi_IN.mo +0 -0
  601. vendor/cmb2/cmb2/languages/cmb2-hi_IN.po +0 -0
  602. vendor/cmb2/cmb2/languages/cmb2-hr.mo +0 -0
  603. vendor/cmb2/cmb2/languages/cmb2-hr.po +0 -0
  604. vendor/cmb2/cmb2/languages/cmb2-hu_HU.mo +0 -0
  605. vendor/cmb2/cmb2/languages/cmb2-hu_HU.po +0 -0
  606. vendor/cmb2/cmb2/languages/cmb2-hy.mo +0 -0
  607. vendor/cmb2/cmb2/languages/cmb2-hy.po +0 -0
  608. vendor/cmb2/cmb2/languages/cmb2-id_ID.mo +0 -0
  609. vendor/cmb2/cmb2/languages/cmb2-id_ID.po +0 -0
  610. vendor/cmb2/cmb2/languages/cmb2-is_IS.mo +0 -0
  611. vendor/cmb2/cmb2/languages/cmb2-is_IS.po +0 -0
  612. vendor/cmb2/cmb2/languages/cmb2-it_IT.mo +0 -0
  613. vendor/cmb2/cmb2/languages/cmb2-it_IT.po +0 -0
  614. vendor/cmb2/cmb2/languages/cmb2-ja.mo +0 -0
  615. vendor/cmb2/cmb2/languages/cmb2-ja.po +0 -0
  616. vendor/cmb2/cmb2/languages/cmb2-jv.mo +0 -0
  617. vendor/cmb2/cmb2/languages/cmb2-jv.po +0 -0
  618. vendor/cmb2/cmb2/languages/cmb2-ka.mo +0 -0
  619. vendor/cmb2/cmb2/languages/cmb2-ka.po +0 -0
  620. vendor/cmb2/cmb2/languages/cmb2-ka_GE.mo +0 -0
  621. vendor/cmb2/cmb2/languages/cmb2-ka_GE.po +0 -0
  622. vendor/cmb2/cmb2/languages/cmb2-kk.mo +0 -0
  623. vendor/cmb2/cmb2/languages/cmb2-kk.po +0 -0
  624. vendor/cmb2/cmb2/languages/cmb2-km.mo +0 -0
  625. vendor/cmb2/cmb2/languages/cmb2-km.po +0 -0
  626. vendor/cmb2/cmb2/languages/cmb2-kn.mo +0 -0
  627. vendor/cmb2/cmb2/languages/cmb2-kn.po +0 -0
  628. vendor/cmb2/cmb2/languages/cmb2-ko_KR.mo +0 -0
  629. vendor/cmb2/cmb2/languages/cmb2-ko_KR.po +0 -0
  630. vendor/cmb2/cmb2/languages/cmb2-ku.mo +0 -0
  631. vendor/cmb2/cmb2/languages/cmb2-ku.po +0 -0
  632. vendor/cmb2/cmb2/languages/cmb2-ky.mo +0 -0
  633. vendor/cmb2/cmb2/languages/cmb2-ky.po +0 -0
  634. vendor/cmb2/cmb2/languages/cmb2-lo.mo +0 -0
  635. vendor/cmb2/cmb2/languages/cmb2-lo.po +0 -0
  636. vendor/cmb2/cmb2/languages/cmb2-lt_LT.mo +0 -0
  637. vendor/cmb2/cmb2/languages/cmb2-lt_LT.po +0 -0
  638. vendor/cmb2/cmb2/languages/cmb2-lv.mo +0 -0
  639. vendor/cmb2/cmb2/languages/cmb2-lv.po +0 -0
  640. vendor/cmb2/cmb2/languages/cmb2-mg.mo +0 -0
  641. vendor/cmb2/cmb2/languages/cmb2-mg.po +0 -0
  642. vendor/cmb2/cmb2/languages/cmb2-mk_MK.mo +0 -0
  643. vendor/cmb2/cmb2/languages/cmb2-mk_MK.po +0 -0
  644. vendor/cmb2/cmb2/languages/cmb2-mn.mo +0 -0
  645. vendor/cmb2/cmb2/languages/cmb2-mn.po +0 -0
  646. vendor/cmb2/cmb2/languages/cmb2-mr.mo +0 -0
  647. vendor/cmb2/cmb2/languages/cmb2-mr.po +0 -0
  648. vendor/cmb2/cmb2/languages/cmb2-ms_MY.mo +0 -0
  649. vendor/cmb2/cmb2/languages/cmb2-ms_MY.po +0 -0
  650. vendor/cmb2/cmb2/languages/cmb2-my_MM.mo +0 -0
  651. vendor/cmb2/cmb2/languages/cmb2-my_MM.po +0 -0
  652. vendor/cmb2/cmb2/languages/cmb2-nb_NO.mo +0 -0
  653. vendor/cmb2/cmb2/languages/cmb2-nb_NO.po +0 -0
  654. vendor/cmb2/cmb2/languages/cmb2-ne_NP.mo +0 -0
  655. vendor/cmb2/cmb2/languages/cmb2-ne_NP.po +0 -0
  656. vendor/cmb2/cmb2/languages/cmb2-nl_BE.mo +0 -0
  657. vendor/cmb2/cmb2/languages/cmb2-nl_BE.po +0 -0
  658. vendor/cmb2/cmb2/languages/cmb2-nl_NL.mo +0 -0
  659. vendor/cmb2/cmb2/languages/cmb2-nl_NL.po +0 -0
  660. vendor/cmb2/cmb2/languages/cmb2-nn_NO.mo +0 -0
  661. vendor/cmb2/cmb2/languages/cmb2-nn_NO.po +0 -0
  662. vendor/cmb2/cmb2/languages/cmb2-oc.mo +0 -0
  663. vendor/cmb2/cmb2/languages/cmb2-oc.po +0 -0
  664. vendor/cmb2/cmb2/languages/cmb2-os.mo +0 -0
  665. vendor/cmb2/cmb2/languages/cmb2-os.po +0 -0
  666. vendor/cmb2/cmb2/languages/cmb2-pap.mo +0 -0
  667. vendor/cmb2/cmb2/languages/cmb2-pap.po +0 -0
  668. vendor/cmb2/cmb2/languages/cmb2-pl_PL.mo +0 -0
  669. vendor/cmb2/cmb2/languages/cmb2-pl_PL.po +0 -0
  670. vendor/cmb2/cmb2/languages/cmb2-ps.mo +0 -0
  671. vendor/cmb2/cmb2/languages/cmb2-ps.po +0 -0
  672. vendor/cmb2/cmb2/languages/cmb2-pt_BR.mo +0 -0
  673. vendor/cmb2/cmb2/languages/cmb2-pt_BR.po +0 -0
  674. vendor/cmb2/cmb2/languages/cmb2-pt_PT.mo +0 -0
  675. vendor/cmb2/cmb2/languages/cmb2-pt_PT.po +0 -0
  676. vendor/cmb2/cmb2/languages/cmb2-ro_RO.mo +0 -0
  677. vendor/cmb2/cmb2/languages/cmb2-ro_RO.po +0 -0
  678. vendor/cmb2/cmb2/languages/cmb2-ru_RU.mo +0 -0
  679. vendor/cmb2/cmb2/languages/cmb2-ru_RU.po +0 -0
  680. vendor/cmb2/cmb2/languages/cmb2-sa.mo +0 -0
  681. vendor/cmb2/cmb2/languages/cmb2-sa.po +0 -0
  682. vendor/cmb2/cmb2/languages/cmb2-sah.mo +0 -0
  683. vendor/cmb2/cmb2/languages/cmb2-sah.po +0 -0
  684. vendor/cmb2/cmb2/languages/cmb2-si_LK.mo +0 -0
  685. vendor/cmb2/cmb2/languages/cmb2-si_LK.po +0 -0
  686. vendor/cmb2/cmb2/languages/cmb2-sk_SK.mo +0 -0
  687. vendor/cmb2/cmb2/languages/cmb2-sk_SK.po +0 -0
  688. vendor/cmb2/cmb2/languages/cmb2-sl_SI.mo +0 -0
  689. vendor/cmb2/cmb2/languages/cmb2-sl_SI.po +0 -0
  690. vendor/cmb2/cmb2/languages/cmb2-so.mo +0 -0
  691. vendor/cmb2/cmb2/languages/cmb2-so.po +0 -0
  692. vendor/cmb2/cmb2/languages/cmb2-sq.mo +0 -0
  693. vendor/cmb2/cmb2/languages/cmb2-sq.po +0 -0
  694. vendor/cmb2/cmb2/languages/cmb2-sr_RS.mo +0 -0
  695. vendor/cmb2/cmb2/languages/cmb2-sr_RS.po +0 -0
  696. vendor/cmb2/cmb2/languages/cmb2-su.mo +0 -0
  697. vendor/cmb2/cmb2/languages/cmb2-su.po +0 -0
  698. vendor/cmb2/cmb2/languages/cmb2-sv_SE.mo +0 -0
  699. vendor/cmb2/cmb2/languages/cmb2-sv_SE.po +0 -0
  700. vendor/cmb2/cmb2/languages/cmb2-sw.mo +0 -0
  701. vendor/cmb2/cmb2/languages/cmb2-sw.po +0 -0
  702. vendor/cmb2/cmb2/languages/cmb2-ta_IN.mo +0 -0
  703. vendor/cmb2/cmb2/languages/cmb2-ta_IN.po +0 -0
  704. vendor/cmb2/cmb2/languages/cmb2-ta_LK.mo +0 -0
  705. vendor/cmb2/cmb2/languages/cmb2-ta_LK.po +0 -0
  706. vendor/cmb2/cmb2/languages/cmb2-te.mo +0 -0
  707. vendor/cmb2/cmb2/languages/cmb2-te.po +0 -0
  708. vendor/cmb2/cmb2/languages/cmb2-tg.mo +0 -0
  709. vendor/cmb2/cmb2/languages/cmb2-tg.po +0 -0
  710. vendor/cmb2/cmb2/languages/cmb2-th.mo +0 -0
  711. vendor/cmb2/cmb2/languages/cmb2-th.po +0 -0
  712. vendor/cmb2/cmb2/languages/cmb2-tk_TM.mo +0 -0
  713. vendor/cmb2/cmb2/languages/cmb2-tk_TM.po +0 -0
  714. vendor/cmb2/cmb2/languages/cmb2-tl.mo +0 -0
  715. vendor/cmb2/cmb2/languages/cmb2-tl.po +0 -0
  716. vendor/cmb2/cmb2/languages/cmb2-tr_TR.mo +0 -0
  717. vendor/cmb2/cmb2/languages/cmb2-tr_TR.po +0 -0
  718. vendor/cmb2/cmb2/languages/cmb2-tzm.mo +0 -0
  719. vendor/cmb2/cmb2/languages/cmb2-tzm.po +0 -0
  720. vendor/cmb2/cmb2/languages/cmb2-ug.mo +0 -0
  721. vendor/cmb2/cmb2/languages/cmb2-ug.po +0 -0
  722. vendor/cmb2/cmb2/languages/cmb2-uk.mo +0 -0
  723. vendor/cmb2/cmb2/languages/cmb2-uk.po +0 -0
  724. vendor/cmb2/cmb2/languages/cmb2-ur.mo +0 -0
  725. vendor/cmb2/cmb2/languages/cmb2-ur.po +0 -0
  726. vendor/cmb2/cmb2/languages/cmb2-ur_PK.mo +0 -0
  727. vendor/cmb2/cmb2/languages/cmb2-ur_PK.po +0 -0
  728. vendor/cmb2/cmb2/languages/cmb2-uz.mo +0 -0
  729. vendor/cmb2/cmb2/languages/cmb2-uz.po +0 -0
  730. vendor/cmb2/cmb2/languages/cmb2-vi.mo +0 -0
  731. vendor/cmb2/cmb2/languages/cmb2-vi.po +0 -0
  732. vendor/cmb2/cmb2/languages/cmb2-zh_CN.mo +0 -0
  733. vendor/cmb2/cmb2/languages/cmb2-zh_CN.po +0 -0
  734. vendor/cmb2/cmb2/languages/cmb2-zh_HK.mo +0 -0
  735. vendor/cmb2/cmb2/languages/cmb2-zh_HK.po +0 -0
  736. vendor/cmb2/cmb2/languages/cmb2-zh_TW.mo +0 -0
  737. vendor/cmb2/cmb2/languages/cmb2-zh_TW.po +0 -0
  738. vendor/cmb2/cmb2/languages/cmb2.pot +0 -0
  739. vendor/cmb2/cmb2/readme.txt +0 -0
  740. vendor/composer/ClassLoader.php +0 -0
  741. vendor/composer/LICENSE +0 -0
  742. vendor/composer/autoload_classmap.php +11 -0
  743. vendor/composer/autoload_files.php +0 -0
  744. vendor/composer/autoload_namespaces.php +0 -0
  745. vendor/composer/autoload_psr4.php +0 -0
  746. vendor/composer/autoload_real.php +0 -0
  747. vendor/composer/autoload_static.php +11 -0
  748. vendor/composer/installed.json +0 -0
  749. vendor/monolog/monolog/.php_cs +0 -0
  750. vendor/monolog/monolog/CHANGELOG.md +0 -0
  751. vendor/monolog/monolog/LICENSE +0 -0
  752. vendor/monolog/monolog/doc/01-usage.md +0 -0
  753. vendor/monolog/monolog/doc/02-handlers-formatters-processors.md +0 -0
  754. vendor/monolog/monolog/doc/03-utilities.md +0 -0
  755. vendor/monolog/monolog/doc/04-extending.md +0 -0
  756. vendor/monolog/monolog/doc/sockets.md +0 -0
  757. vendor/monolog/monolog/src/Monolog/ErrorHandler.php +0 -0
  758. vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php +0 -0
  759. vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php +0 -0
  760. vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php +0 -0
  761. vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php +0 -0
  762. vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php +0 -0
  763. vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php +0 -0
  764. vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php +0 -0
  765. vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php +0 -0
  766. vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php +0 -0
  767. vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php +0 -0
  768. vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php +0 -0
  769. vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php +0 -0
  770. vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php +0 -0
  771. vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php +0 -0
  772. vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php +0 -0
  773. vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php +0 -0
  774. vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php +0 -0
  775. vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php +0 -0
  776. vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php +0 -0
  777. vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php +0 -0
  778. vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php +0 -0
  779. vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php +0 -0
  780. vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php +0 -0
  781. vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php +0 -0
  782. vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php +0 -0
  783. vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php +0 -0
  784. vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php +0 -0
  785. vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php +0 -0
  786. vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php +0 -0
  787. vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php +0 -0
  788. vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php +0 -0
  789. vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php +0 -0
  790. vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php +0 -0
  791. vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php +0 -0
  792. vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php +0 -0
  793. vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php +0 -0
  794. vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php +0 -0
  795. vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php +0 -0
  796. vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php +0 -0
  797. vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php +0 -0
  798. vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php +0 -0
  799. vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php +0 -0
  800. vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php +0 -0
  801. vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php +0 -0
  802. vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php +0 -0
  803. vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php +0 -0
  804. vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php +0 -0
  805. vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php +0 -0
  806. vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php +0 -0
  807. vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php +0 -0
  808. vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php +0 -0
  809. vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php +0 -0
  810. vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php +0 -0
  811. vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php +0 -0
  812. vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php +0 -0
  813. vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php +0 -0
  814. vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php +0 -0
  815. vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php +0 -0
  816. vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php +0 -0
  817. vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php +0 -0
  818. vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php +0 -0
  819. vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php +0 -0
  820. vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php +0 -0
  821. vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php +0 -0
  822. vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php +0 -0
  823. vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php +0 -0
  824. vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php +0 -0
  825. vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php +0 -0
  826. vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php +0 -0
  827. vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php +0 -0
  828. vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php +0 -0
  829. vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php +0 -0
  830. vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php +0 -0
  831. vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php +0 -0
  832. vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php +0 -0
  833. vendor/monolog/monolog/src/Monolog/Logger.php +0 -0
  834. vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php +0 -0
  835. vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php +0 -0
  836. vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php +0 -0
  837. vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php +0 -0
  838. vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php +0 -0
  839. vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php +0 -0
  840. vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php +0 -0
  841. vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php +0 -0
  842. vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php +0 -0
  843. vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php +0 -0
  844. vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php +0 -0
  845. vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php +0 -0
  846. vendor/monolog/monolog/src/Monolog/Registry.php +0 -0
  847. vendor/monolog/monolog/src/Monolog/ResettableInterface.php +0 -0
  848. vendor/monolog/monolog/src/Monolog/SignalHandler.php +0 -0
  849. vendor/monolog/monolog/src/Monolog/Utils.php +0 -0
  850. vendor/mythemeshop/wordpress-helpers/LICENSE.txt +0 -0
  851. vendor/mythemeshop/wordpress-helpers/src/admin/class-list-table.php +0 -0
  852. vendor/mythemeshop/wordpress-helpers/src/admin/class-page.php +0 -0
  853. vendor/mythemeshop/wordpress-helpers/src/admin/index.php +0 -0
  854. vendor/mythemeshop/wordpress-helpers/src/class-json-manager.php +0 -0
  855. vendor/mythemeshop/wordpress-helpers/src/class-notification-center.php +0 -0
  856. vendor/mythemeshop/wordpress-helpers/src/class-notification.php +0 -0
  857. vendor/mythemeshop/wordpress-helpers/src/database/class-database.php +0 -0
  858. vendor/mythemeshop/wordpress-helpers/src/database/class-escape.php +0 -0
  859. vendor/mythemeshop/wordpress-helpers/src/database/class-groupby.php +0 -0
  860. vendor/mythemeshop/wordpress-helpers/src/database/class-orderby.php +0 -0
  861. vendor/mythemeshop/wordpress-helpers/src/database/class-query-builder.php +0 -0
  862. vendor/mythemeshop/wordpress-helpers/src/database/class-select.php +0 -0
  863. vendor/mythemeshop/wordpress-helpers/src/database/class-translate.php +0 -0
  864. vendor/mythemeshop/wordpress-helpers/src/database/class-where.php +0 -0
  865. vendor/mythemeshop/wordpress-helpers/src/database/index.php +0 -0
  866. vendor/mythemeshop/wordpress-helpers/src/helpers/class-arr.php +0 -0
  867. vendor/mythemeshop/wordpress-helpers/src/helpers/class-attachment.php +0 -0
  868. vendor/mythemeshop/wordpress-helpers/src/helpers/class-conditional.php +0 -0
  869. vendor/mythemeshop/wordpress-helpers/src/helpers/class-db.php +0 -0
  870. vendor/mythemeshop/wordpress-helpers/src/helpers/class-html.php +0 -0
  871. vendor/mythemeshop/wordpress-helpers/src/helpers/class-str.php +0 -0
  872. vendor/mythemeshop/wordpress-helpers/src/helpers/class-url.php +0 -0
  873. vendor/mythemeshop/wordpress-helpers/src/helpers/class-util.php +0 -0
  874. vendor/mythemeshop/wordpress-helpers/src/helpers/class-wordpress.php +0 -0
  875. vendor/mythemeshop/wordpress-helpers/src/helpers/index.php +0 -0
  876. vendor/mythemeshop/wordpress-helpers/src/index.php +0 -0
  877. vendor/mythemeshop/wordpress-helpers/vendor/autoload.php +0 -0
  878. vendor/mythemeshop/wordpress-helpers/vendor/composer/ClassLoader.php +0 -0
  879. vendor/mythemeshop/wordpress-helpers/vendor/composer/LICENSE +0 -0
  880. vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_classmap.php +0 -0
  881. vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_namespaces.php +0 -0
  882. vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_psr4.php +0 -0
  883. vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_real.php +0 -0
  884. vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_static.php +0 -0
  885. vendor/mythemeshop/wordpress-helpers/wordpress-helpers.php +0 -0
  886. vendor/psr/log/LICENSE +0 -0
  887. vendor/psr/log/Psr/Log/AbstractLogger.php +0 -0
  888. vendor/psr/log/Psr/Log/InvalidArgumentException.php +0 -0
  889. vendor/psr/log/Psr/Log/LogLevel.php +0 -0
  890. vendor/psr/log/Psr/Log/LoggerAwareInterface.php +0 -0
  891. vendor/psr/log/Psr/Log/LoggerAwareTrait.php +0 -0
  892. vendor/psr/log/Psr/Log/LoggerInterface.php +0 -0
  893. vendor/psr/log/Psr/Log/LoggerTrait.php +0 -0
  894. vendor/psr/log/Psr/Log/NullLogger.php +0 -0
  895. vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php +0 -0
  896. vendor/psr/log/Psr/Log/Test/TestLogger.php +0 -0
  897. vendor/rollbar/rollbar/CHANGELOG.md +0 -0
  898. vendor/rollbar/rollbar/LICENSE +0 -0
  899. vendor/rollbar/rollbar/POST_FORMAT.md +0 -0
  900. vendor/rollbar/rollbar/THANKS.md +0 -0
  901. vendor/rollbar/rollbar/TODO.md +0 -0
  902. vendor/rollbar/rollbar/data/rollbar.snippet.js +0 -0
  903. vendor/rollbar/rollbar/src/Config.php +0 -0
  904. vendor/rollbar/rollbar/src/DataBuilder.php +0 -0
  905. vendor/rollbar/rollbar/src/DataBuilderInterface.php +0 -0
  906. vendor/rollbar/rollbar/src/Defaults.php +0 -0
  907. vendor/rollbar/rollbar/src/ErrorWrapper.php +0 -0
  908. vendor/rollbar/rollbar/src/FilterInterface.php +0 -0
  909. vendor/rollbar/rollbar/src/Handlers/AbstractHandler.php +0 -0
  910. vendor/rollbar/rollbar/src/Handlers/ErrorHandler.php +0 -0
  911. vendor/rollbar/rollbar/src/Handlers/ExceptionHandler.php +0 -0
  912. vendor/rollbar/rollbar/src/Handlers/FatalHandler.php +0 -0
  913. vendor/rollbar/rollbar/src/LevelFactory.php +0 -0
  914. vendor/rollbar/rollbar/src/Monolog/Handler/RollbarHandler.php +0 -0
  915. vendor/rollbar/rollbar/src/Payload/Body.php +0 -0
  916. vendor/rollbar/rollbar/src/Payload/ContentInterface.php +0 -0
  917. vendor/rollbar/rollbar/src/Payload/Context.php +0 -0
  918. vendor/rollbar/rollbar/src/Payload/Data.php +0 -0
  919. vendor/rollbar/rollbar/src/Payload/EncodedPayload.php +0 -0
  920. vendor/rollbar/rollbar/src/Payload/ExceptionInfo.php +0 -0
  921. vendor/rollbar/rollbar/src/Payload/Frame.php +0 -0
  922. vendor/rollbar/rollbar/src/Payload/Level.php +0 -0
  923. vendor/rollbar/rollbar/src/Payload/Message.php +0 -0
  924. vendor/rollbar/rollbar/src/Payload/Notifier.php +0 -0
  925. vendor/rollbar/rollbar/src/Payload/Payload.php +0 -0
  926. vendor/rollbar/rollbar/src/Payload/Person.php +0 -0
  927. vendor/rollbar/rollbar/src/Payload/Request.php +0 -0
  928. vendor/rollbar/rollbar/src/Payload/Server.php +0 -0
  929. vendor/rollbar/rollbar/src/Payload/Trace.php +0 -0
  930. vendor/rollbar/rollbar/src/Payload/TraceChain.php +0 -0
  931. vendor/rollbar/rollbar/src/Response.php +0 -0
  932. vendor/rollbar/rollbar/src/ResponseHandlerInterface.php +0 -0
  933. vendor/rollbar/rollbar/src/Rollbar.php +0 -0
  934. vendor/rollbar/rollbar/src/RollbarJsHelper.php +0 -0
  935. vendor/rollbar/rollbar/src/RollbarLogger.php +0 -0
  936. vendor/rollbar/rollbar/src/Scrubber.php +0 -0
  937. vendor/rollbar/rollbar/src/ScrubberInterface.php +0 -0
  938. vendor/rollbar/rollbar/src/Senders/AgentSender.php +0 -0
  939. vendor/rollbar/rollbar/src/Senders/CurlSender.php +0 -0
  940. vendor/rollbar/rollbar/src/Senders/FluentSender.php +0 -0
  941. vendor/rollbar/rollbar/src/Senders/SenderInterface.php +0 -0
  942. vendor/rollbar/rollbar/src/TransformerInterface.php +0 -0
  943. vendor/rollbar/rollbar/src/Truncation/AbstractStrategy.php +0 -0
  944. vendor/rollbar/rollbar/src/Truncation/FramesStrategy.php +0 -0
  945. vendor/rollbar/rollbar/src/Truncation/IStrategy.php +0 -0
  946. vendor/rollbar/rollbar/src/Truncation/MinBodyStrategy.php +0 -0
  947. vendor/rollbar/rollbar/src/Truncation/RawStrategy.php +0 -0
  948. vendor/rollbar/rollbar/src/Truncation/StringsStrategy.php +0 -0
  949. vendor/rollbar/rollbar/src/Truncation/Truncation.php +0 -0
  950. vendor/rollbar/rollbar/src/Utilities.php +0 -0
  951. wpml-config.xml +0 -0
assets/admin/css/cmb2.css CHANGED
File without changes
assets/admin/css/common.css CHANGED
@@ -2,4 +2,6 @@
2
  * Plugin: Rank Math
3
  * URL: https://rankmath.com/wordpress/plugin/seo-suite/
4
  * Name: common.css
5
- */.rank-math-page{background:#e1e1e1}.rank-math-page h2.nav-tab-wrapper{margin-bottom:40px !important;background-color:transparent !important;border-top:none !important;border-bottom:1px solid #ccc !important}.rank-math-page .nav-tab{background:#ccc;padding:5px 15px;color:#000;font-weight:600;margin-left:.5em !important;border:1px solid #ccc;border-bottom:none}.rank-math-page .nav-tab-active,.rank-math-page .nav-tab-active:hover,.rank-math-page .nav-tab-active:focus,.rank-math-page .nav-tab-active:focus:active{border-bottom-color:#e1e1e1;background:#e1e1e1}.limit-wrap{max-width:1080px}.rank-math-wrap{font-size:15px;position:relative;margin:25px 40px 0 20px}.rank-math-wrap p{font-size:14px;line-height:1.5}.rank-math-wrap h1,.rank-math-wrap .page-title{font-size:2.8em;font-weight:400;line-height:1.2em;margin:.2em 200px 0 0;padding:0;color:#32373c}.rank-math-wrap h2{font-size:2.7em;font-weight:300;line-height:1.3;margin:40px 0 .6em;text-align:center}.rank-math-wrap .page-title{font-size:2em;font-weight:400;line-height:1;margin:35px 0 20px}.rank-math-wrap h3{font-size:1.4em;line-height:1.5;margin:1.25em 0 .6em}.rank-math-wrap h4{color:#23282d}.rank-math-wrap ol li p{font-size:14px;font-weight:400}.rank-math-wrap .rank-math-text{font-size:19px;font-weight:400;line-height:1.6em;min-height:40px;margin:1em 200px 1em 0;margin-top:1.4em;color:#555d66}.rank-math-wrap .nav-tab{font-size:18px;padding-right:15px;padding-left:15px}@media only screen and (max-width: 500px){.rank-math-wrap{margin-right:20px;margin-left:10px}.rank-math-wrap h1,.rank-math-wrap .rank-math-text{margin-right:0}.rank-math-wrap .rank-math-text{margin-bottom:.25em}}.two-col,.three-col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between}.two-col .col,.three-col .col{-webkit-box-flex:1;-ms-flex:1;flex:1}.two-col .col{min-width:49%;max-width:49%}.three-col .col{min-width:32%;max-width:32%;-webkit-align-self:flex-start;align-self:flex-start;-ms-flex-item-align:start}@media only screen and (max-width: 500px){.two-col .col,.three-col .col{min-width:100% !important}}.rank-math-box{position:relative;margin-bottom:30px;background:#fff}.rank-math-box.switch-at-top .rank-math-switch{position:absolute;top:-12px;right:0}.rank-math-box.switch-at-top header{padding:0 20px}.rank-math-box.switch-at-top header h3{padding-top:14px}.rank-math-box header{line-height:55px;padding:14px 20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom:1px solid #e5e5e5;border-bottom:1px solid rgba(0,0,0,0.1)}.rank-math-box header h3{position:relative;z-index:1;margin:0;vertical-align:middle}.rank-math-box header p{margin-top:0}.rank-math-box-content{font-size:13px;font-weight:400;line-height:17px;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;min-height:262px;padding:30px 20px 20px}.rank-math-box-content .rank-math-list-icon .dashicons-before{float:left;margin-right:5px}.rank-math-box-content form .frm-submit{margin:1em 0}.rank-math-box-content form .frm-submit p{display:inline-block;margin-left:10px}.rank-math-ui .button-primary{border-color:#0195d9;background:#069de3;-webkit-box-shadow:0 1px 2px 0 rgba(35,40,45,0.2);box-shadow:0 1px 2px 0 rgba(35,40,45,0.2);text-shadow:none}.rank-math-ui .button-primary:focus,.rank-math-ui .button-primary:hover{border-color:#076fa2;background:#0474ab;-webkit-box-shadow:0 1px 4px 0 rgba(35,40,45,0.2);box-shadow:0 1px 4px 0 rgba(35,40,45,0.2)}.rank-math-ui .button-link{border:0 !important;background:transparent !important;-webkit-box-shadow:none !important;box-shadow:none !important}.rank-math-ui .button-xlarge{font-size:16px;line-height:44px;height:46px;padding:0 36px}.rank-math-ui .button .dashicons{margin:0 3px 0 0}.rank-math-tabs-navigation:not(.custom){float:left;width:200px;margin-right:-1px}.rank-math-tabs-navigation:not(.custom) a{font-size:16px;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding:11px 15px;text-decoration:none;color:#6c6c6c;border:solid #e5e5e5;border-width:0 1px 1px;outline:none;background:#f6f6f6;-webkit-box-shadow:none;box-shadow:none}.rank-math-tabs-navigation:not(.custom) a .dashicons,.rank-math-tabs-navigation:not(.custom) a .fa{font-size:18px;min-width:20px;margin-right:10px;text-align:center;color:#6c6c6c}.rank-math-tabs-navigation:not(.custom) a.active,.rank-math-tabs-navigation:not(.custom) a:focus,.rank-math-tabs-navigation:not(.custom) a:hover{color:#fff;border-right-color:#0474ab;background:#0474ab}.rank-math-tabs-navigation:not(.custom) a.active .dashicons,.rank-math-tabs-navigation:not(.custom) a.active .fa,.rank-math-tabs-navigation:not(.custom) a:focus .dashicons,.rank-math-tabs-navigation:not(.custom) a:focus .fa,.rank-math-tabs-navigation:not(.custom) a:hover .dashicons,.rank-math-tabs-navigation:not(.custom) a:hover .fa{color:#fff}.rank-math-tabs-navigation:not(.custom) a:first-child{border-top:1px solid #e5e5e5}.rank-math-tabs-content:not(.custom){overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:400px;margin-bottom:20px;padding:30px;border:1px solid #e5e5e5;background:#fff}.rank-math-tab h3:first-of-type{margin-top:0}.rank-math-tab .cmb-type-title:first-of-type{padding-top:0;text-align:center;border-top:0}.rank-math-tab .cmb2-checkbox-list li{display:inline-block;width:49%}.rank-math-tooltip{position:relative;cursor:pointer;color:#069de3}.rank-math-tooltip>span{font-size:11px;font-weight:400;line-height:1.5;width:200px;padding:8px 10px;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;-webkit-transform:translate3d(-50%, 0, 0);transform:translate3d(-50%, 0, 0);text-align:center;pointer-events:none;opacity:0;color:#fff;border-radius:3px;background:#555d66;position:absolute;bottom:100%;left:50%}.rank-math-tooltip>span:after{content:'';-webkit-transform:translate3d(-50%, 0, 0);transform:translate3d(-50%, 0, 0);position:absolute;top:100%;left:50%;border-style:solid;height:0;width:0;border-color:#555d66 transparent transparent;border-width:8px 7px 0}.rank-math-tooltip:hover span{bottom:130%;opacity:1}.rank-math-export-form{padding:15px 25px;border-radius:4px;background:#fff;-webkit-box-shadow:6px 6px 10px rgba(32,33,36,0.1);box-shadow:6px 6px 10px rgba(32,33,36,0.1)}.rank-math-export-form+.rank-math-export-form{margin-top:30px}.rank-math-export-form th,.rank-math-export-form td{padding:0}.rank-math-export-form h3{margin-top:0}.rank-math-export-form footer{padding-top:10px}.invalid,.widefat.invalid,.wp-admin .invalid,.wp-admin .widefat.invalid{border-color:#dd2c00 !important;background:pink}.invalid ~ .validation-message,.widefat.invalid ~ .validation-message,.wp-admin .invalid ~ .validation-message,.wp-admin .widefat.invalid ~ .validation-message{display:inline-block}.validation-message{font-size:12px;font-style:italic;display:none;overflow:hidden;margin-top:5px;margin-left:2px;padding:4px 8px;-webkit-transition:.28s;transition:.28s;vertical-align:middle;color:#fff;border-radius:3px;background:#dd2c00}.input-loading{background:url("../img/ajax-loader.gif") no-repeat 98% center}span.input-loading{display:inline-block;margin:10px 0 0 7px;height:16px;width:16px}body .cmb2-wrap .cmb2-id-console-profile .regular-text,body .cmb2-wrap .cmb2-id-console-profile select,body .cmb2-wrap .cmb2-id-console-authorization-code .regular-text,body .cmb2-wrap .cmb2-id-console-authorization-code select{display:inline-block;max-width:60%;margin-right:10px}body .cmb2-wrap .cmb2-id-console-profile .button,body .cmb2-wrap .cmb2-id-console-authorization-code .button{line-height:41px;height:auto;margin-right:8px;padding:0 25px}body .cmb2-wrap .cmb2-id-console-authorization-code .button-secondary{margin-top:5px}.wizard-share{display:inline-block;margin-top:3px;margin-left:10px;vertical-align:3px}.wizard-share a{font-size:12px;font-weight:700;display:inline-block;margin-left:5px;padding:8px 20px 8px 15px;text-decoration:none;color:#fff;border-radius:20px;background:#3b5998}.wizard-share a.share-twitter{background:#55acee}.wizard-share .dashicons{font-size:16px;margin:0 5px 0 0 !important;vertical-align:middle}body.rtl .rank-math-wrap h1,body.rtl .rank-math-wrap .page-title{margin-right:0;margin-left:200px}body.rtl .rank-math-wrap .rank-math-text{margin-right:0;margin-left:200px}body.rtl .rank-math-tabs-navigation:not(.custom){float:right;margin-right:0;margin-left:-1px}body.rtl .rank-math-tabs-navigation:not(.custom) a .fa,body.rtl .rank-math-tabs-navigation:not(.custom) a .dashicons{margin-right:0;margin-left:10px}body.rtl .rank-math-wrap-settings .form-footer{margin-right:200px;margin-left:0}body.rtl.wp-core-ui .rank-math-variables-button,body.rtl .serp-preview:not(.expanded-preview):not(.mobile-preview) .group.active .cmb-row.cmb2-id-rank-math-title .rank-math-variables-button{right:auto;left:1px;border-width:0 1px 0 0}body.rtl .cmb2-wrap .cmb-type-textarea .button,body.rtl .cmb2-wrap .cmb-type-textarea-small .button{border-width:1px 1px 0 0}body.rtl .rank-math-variables-dropdown li:after{right:auto;left:10px}body.rtl .rank-math-ui .button .dashicons{margin:0 0 0 3px}.rank-math-variables-preview,.rank-math-preview-title{font-family:arial, sans-serif;max-width:600px;margin-top:15px;color:#1a0dab;border-radius:4px}.rank-math-variables-preview:empty,.rank-math-preview-title:empty{display:none}.rank-math-variables-preview:before,.rank-math-preview-title:before{font-size:10px;font-weight:600;display:block;margin:0 0 8px;content:attr(data-title);letter-spacing:.15em;text-transform:uppercase;color:#aaa}.rank-math-variables-wrap{position:relative}.rank-math-variables-wrap input,.rank-math-variables-wrap textarea{padding-right:50px !important}.cmb2-wrap .cmb-type-textarea .button,.cmb2-wrap .cmb-type-textarea-small .button{top:auto;bottom:1px;border-width:1px 0 0 1px;border-radius:3px 0 3px 0}.cmb2-wrap .cmb-type-textarea .button+.rank-math-variables-dropdown,.cmb2-wrap .cmb-type-textarea-small .button+.rank-math-variables-dropdown{top:98px;right:0}.cmb2-wrap .cmb-type-textarea textarea,.cmb2-wrap .cmb-type-textarea-small textarea{display:block;resize:none}body.wp-core-ui .rank-math-variables-button{line-height:41px;height:auto;padding:0 10px;border-width:0 0 0 1px;border-color:#e5e5e5 !important;border-radius:0 3px 3px 0;-webkit-box-shadow:none;box-shadow:none;position:absolute;top:2px;right:1px;bottom:2px}body.wp-core-ui .rank-math-variables-button .dashicons{font-size:20px;line-height:41px;height:auto}.rank-math-variables-dropdown{z-index:999;display:none;overflow:auto;max-width:450px;border:1px solid #e5e5e5;background:#fff;position:absolute;top:42px;right:0;height:220px;width:80%}.rank-math-variables-dropdown input[type='text']{margin:10px;background:#fffff8;-webkit-box-shadow:none !important;box-shadow:none !important;height:34px;width:calc(100% - 20px)}.rank-math-variables-dropdown li{font-size:12px;position:relative;margin:0;padding:10px;cursor:pointer;border-bottom:1px solid #e5e5e5}.rank-math-variables-dropdown li span{font-style:italic;display:block;padding-top:.2em;color:#888}.rank-math-variables-dropdown li:hover{background:#f6f6f6}.rank-math-variables-dropdown li:after{display:inline-block;margin-top:3px;padding:.25em .4em;content:attr(data-var);white-space:nowrap;border-radius:.25rem;background-color:#f1f1f1;position:absolute;top:4px;right:10px}.dropdown-up .rank-math-variables-dropdown{top:auto;bottom:100%}.rank-math-preview-title>div{display:inline-block;min-width:400px}.rank-math-preview-title h5{font-size:18px;font-weight:normal;line-height:22px;margin:0}.rank-math-preview-title span{line-height:16px;height:17px;color:#006621}.list-table{border:1px solid #e5e5e5;border-radius:4px}.list-table+.notice{margin-top:10px}.list-table .empty-notice{font-weight:600;padding-left:15px}.list-table table{margin:0}.list-table th,.list-table td{padding:12px 15px;border-bottom:1px solid #e5e5e5}.list-table tr:last-child th,.list-table tr:last-child td{border:0}.list-table th strong{font-size:16px;display:block}.list-table .cmb2-checkbox-list li{display:inline-block;width:48%;margin:10px 0 0}.list-table .cmb2-checkbox-list label{font-weight:400}.list-table.with-action th{width:auto;vertical-align:middle}.list-table.with-action td:last-child{width:140px;text-align:right}.list-table.with-action td:last-child .button+.button{margin-left:5px}.list-table.with-action.at-top td:last-child{vertical-align:top}.list-table.with-action .choices td{padding-top:0;text-align:left}.list-table.with-action .importer-header th,.list-table.with-action .importer-header td{border-bottom:none}@media screen and (max-width: 1020px){body .rank-math-wrap h1,body .rank-math-wrap .page-title,body .rank-math-wrap .rank-math-text{margin-right:0}body .rank-math-wrap .nav-tab{margin-bottom:10px;border-bottom:1px solid #ccc}}@media screen and (max-width: 782px){.form-table input.regular-text{height:36px}body .cmb2-wrap select{padding:0}body .rank-math-wrap .cmb-row.cmb-type-file .regular-text:not([type='hidden'])+.cmb2-upload-button{line-height:35px}body .rank-math-wrap .rank-math-search-options .search-field input{width:200px;height:36px}body .rank-math-wrap .cmb2-id-console-profile select{max-width:100%}body .rank-math-wrap .cmb2-id-console-profile button{margin-top:5px}body .rank-math-wrap .rank-math-rss-variables thead th,body .rank-math-wrap .rank-math-rss-variables tbody td{margin-bottom:0}body .rank-math-wrap input[type=checkbox]:checked:before,body .rank-math-wrap .cmb2-wrap input[type=checkbox]:checked:before{font-size:30px}body #rank-math-redirection-popup .media-modal{left:0;height:100%}body .rank-math-wrap .module-listing .two-col .col{width:100%;min-width:100%;max-width:100%}body .rank-math-wrap .rank-math-systm-status td,body .rank-math-wrap .rank-math-systm-status th{border:0;border-bottom:1px solid #ededed}}@media only screen and (max-width: 768px){body .rank-math-wrap .rank-math-tabs-navigation:not(.custom),body .rank-math-wrap.rank-math-wrap-settings .form-footer{width:100%;margin:0}}@media only screen and (max-width: 640px){body .rank-math-wrap .rank-math-tabs-content:not(.custom){padding:15px}body .rank-math-wrap .rank-math-search-options{width:100%;margin-bottom:15px}body .cmb2-wrap .cmb-row{padding:15px 0}body .rank-math-wrap .cmb-row .cmb-th{max-width:100%;margin-bottom:5px}body .rank-math-wrap .rank-math-ui.settings-footer input{padding:0 25px}body .rank-math-wrap .rank-math-box-help.two-col .col{width:100%;min-width:100%;max-width:100%}body .rank-math-social-preview-item{padding:10px}}@media only screen and (max-width: 595px){body .rank-math-wrap h1,body .rank-math-wrap .page-title{font-size:30px}body .rank-math-wrap .rank-math-text{font-size:15px;margin-top:10px}body .rank-math-wrap h2.nav-tab-wrapper{margin-bottom:15px}body .rank-math-wrap .cmb-group-text-only .cmb-field-list .cmb-field-list>.cmb-remove-field-row{padding-top:0}body .rank-math-wrap .cmb2-wrap .cmb-row.cmb-type-file .regular-text{width:100%;margin-top:5px;border-radius:3px}body .rank-math-metabox-wrap .rank-math-tab{padding:15px}body .rank-math-redirections-wrap .wp-heading-inline a{display:inline-block}body .rank-math-metabox-wrap .rank-math-tabs-navigation:not(.social-tabs-navigation) a .dashicons{font-size:18px;margin-right:0;padding-bottom:2px;padding-left:2px}body .rank-math-metabox-wrap .rank-math-tabs-navigation:not(.social-tabs-navigation) a .rank-math-tab-text{display:none}body .cmb2-wrap .cmb-row.cmb-row-33,body .cmb2-wrap .cmb-row.cmb-row-50{width:100%}body .cmb2-wrap .cmb-row.cmb-row-33 .cmb-th,body .cmb2-wrap .cmb-row.cmb-row-33 .cmb-td,body .cmb2-wrap .cmb-row.cmb-row-50 .cmb-th,body .cmb2-wrap .cmb-row.cmb-row-50 .cmb-td{padding:0}}
 
 
2
  * Plugin: Rank Math
3
  * URL: https://rankmath.com/wordpress/plugin/seo-suite/
4
  * Name: common.css
5
+ */.rank-math-page{background:#e1e1e1}.rank-math-page h2.nav-tab-wrapper{margin-bottom:40px !important;background-color:transparent !important;border-top:none !important;border-bottom:1px solid #ccc !important}.rank-math-page .nav-tab{background:#ccc;padding:5px 15px;color:#000;font-weight:600;margin-left:.5em !important;border:1px solid #ccc;border-bottom:none}.rank-math-page .nav-tab-active,.rank-math-page .nav-tab-active:hover,.rank-math-page .nav-tab-active:focus,.rank-math-page .nav-tab-active:focus:active{border-bottom-color:#e1e1e1;background:#e1e1e1}.limit-wrap{max-width:1080px}.rank-math-wrap{font-size:15px;position:relative;margin:25px 40px 0 20px}.rank-math-wrap p{font-size:14px;line-height:1.5}.rank-math-wrap h1,.rank-math-wrap .page-title{font-size:2.8em;font-weight:400;line-height:1.2em;margin:.2em 200px 0 0;padding:0;color:#32373c}.rank-math-wrap h2{font-size:2.7em;font-weight:300;line-height:1.3;margin:40px 0 .6em;text-align:center}.rank-math-wrap .page-title{font-size:2em;font-weight:400;line-height:1;margin:35px 0 20px}.rank-math-wrap h3{font-size:1.4em;line-height:1.5;margin:1.25em 0 .6em}.rank-math-wrap h4{color:#23282d}.rank-math-wrap ol li p{font-size:14px;font-weight:400}.rank-math-wrap .rank-math-text{font-size:19px;font-weight:400;line-height:1.6em;min-height:40px;margin:1em 200px 1em 0;margin-top:1.4em;color:#555d66}.rank-math-wrap .nav-tab{font-size:18px;padding-right:15px;padding-left:15px}@media only screen and (max-width: 500px){.rank-math-wrap{margin-right:20px;margin-left:10px}.rank-math-wrap h1,.rank-math-wrap .rank-math-text{margin-right:0}.rank-math-wrap .rank-math-text{margin-bottom:.25em}}.two-col,.three-col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between}.two-col .col,.three-col .col{-webkit-box-flex:1;-ms-flex:1;flex:1}.two-col .col{min-width:49%;max-width:49%}.three-col .col{min-width:32%;max-width:32%;-webkit-align-self:flex-start;align-self:flex-start;-ms-flex-item-align:start}@media only screen and (max-width: 500px){.two-col .col,.three-col .col{min-width:100% !important}}.rank-math-box{position:relative;margin-bottom:30px;background:#fff}.rank-math-box.switch-at-top .rank-math-switch{position:absolute;top:-12px;right:0}.rank-math-box.switch-at-top header{padding:0 20px}.rank-math-box.switch-at-top header h3{padding-top:14px}.rank-math-box header{line-height:55px;padding:14px 20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom:1px solid #e5e5e5;border-bottom:1px solid rgba(0,0,0,0.1)}.rank-math-box header h3{position:relative;z-index:1;margin:0;vertical-align:middle}.rank-math-box header p{margin-top:0}.rank-math-box-content{font-size:13px;font-weight:400;line-height:17px;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;min-height:262px;padding:30px 20px 20px}.rank-math-box-content .rank-math-list-icon .dashicons-before{float:left;margin-right:5px}.rank-math-box-content form .frm-submit{margin:1em 0}.rank-math-box-content form .frm-submit p{display:inline-block;margin-left:10px}.rank-math-ui .button-primary{border-color:#0195d9;background:#069de3;-webkit-box-shadow:0 1px 2px 0 rgba(35,40,45,0.2);box-shadow:0 1px 2px 0 rgba(35,40,45,0.2);text-shadow:none}.rank-math-ui .button-primary:focus,.rank-math-ui .button-primary:hover{border-color:#076fa2;background:#0474ab;-webkit-box-shadow:0 1px 4px 0 rgba(35,40,45,0.2);box-shadow:0 1px 4px 0 rgba(35,40,45,0.2)}.rank-math-ui .button-link{border:0 !important;background:transparent !important;-webkit-box-shadow:none !important;box-shadow:none !important}.rank-math-ui .button-xlarge{font-size:16px;line-height:44px;height:46px;padding:0 36px}.rank-math-ui .button .dashicons{margin:0 3px 0 0}.rank-math-tabs-navigation:not(.custom){float:left;width:200px;margin-right:-1px}.rank-math-tabs-navigation:not(.custom) a{font-size:16px;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding:11px 15px;text-decoration:none;color:#6c6c6c;border:solid #e5e5e5;border-width:0 1px 1px;outline:none;background:#f6f6f6;-webkit-box-shadow:none;box-shadow:none}.rank-math-tabs-navigation:not(.custom) a .dashicons,.rank-math-tabs-navigation:not(.custom) a .fa{font-size:18px;min-width:20px;margin-right:10px;text-align:center;color:#6c6c6c}.rank-math-tabs-navigation:not(.custom) a.active,.rank-math-tabs-navigation:not(.custom) a:focus,.rank-math-tabs-navigation:not(.custom) a:hover{color:#fff;border-right-color:#0474ab;background:#0474ab}.rank-math-tabs-navigation:not(.custom) a.active .dashicons,.rank-math-tabs-navigation:not(.custom) a.active .fa,.rank-math-tabs-navigation:not(.custom) a:focus .dashicons,.rank-math-tabs-navigation:not(.custom) a:focus .fa,.rank-math-tabs-navigation:not(.custom) a:hover .dashicons,.rank-math-tabs-navigation:not(.custom) a:hover .fa{color:#fff}.rank-math-tabs-navigation:not(.custom) a:first-child{border-top:1px solid #e5e5e5}.rank-math-tabs-content:not(.custom){overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:400px;margin-bottom:20px;padding:30px;border:1px solid #e5e5e5;background:#fff}.rank-math-tab h3:first-of-type{margin-top:0}.rank-math-tab .cmb-type-title:first-of-type{padding-top:0;text-align:center;border-top:0}.rank-math-tab .cmb2-checkbox-list li{display:inline-block;width:49%}.rank-math-tooltip{position:relative;cursor:pointer;color:#069de3}.rank-math-tooltip>span{font-size:11px;font-weight:400;line-height:1.5;width:200px;padding:8px 10px;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;-webkit-transform:translate3d(-50%, 0, 0);transform:translate3d(-50%, 0, 0);text-align:center;pointer-events:none;opacity:0;color:#fff;border-radius:3px;background:#555d66;position:absolute;bottom:100%;left:50%}.rank-math-tooltip>span:after{content:'';-webkit-transform:translate3d(-50%, 0, 0);transform:translate3d(-50%, 0, 0);position:absolute;top:100%;left:50%;border-style:solid;height:0;width:0;border-color:#555d66 transparent transparent;border-width:8px 7px 0}.rank-math-tooltip:hover span{bottom:130%;opacity:1}.rank-math-export-form{padding:15px 25px;border-radius:4px;background:#fff;-webkit-box-shadow:6px 6px 10px rgba(32,33,36,0.1);box-shadow:6px 6px 10px rgba(32,33,36,0.1)}.rank-math-export-form+.rank-math-export-form{margin-top:30px}.rank-math-export-form th,.rank-math-export-form td{padding:0}.rank-math-export-form h3{margin-top:0}.rank-math-export-form footer{padding-top:10px}.invalid,.widefat.invalid,.wp-admin .invalid,.wp-admin .widefat.invalid{border-color:#dd2c00 !important;background:pink}.invalid ~ .validation-message,.widefat.invalid ~ .validation-message,.wp-admin .invalid ~ .validation-message,.wp-admin .widefat.invalid ~ .validation-message{display:inline-block}.validation-message{font-size:12px;font-style:italic;display:none;overflow:hidden;margin-top:5px;margin-left:2px;padding:4px 8px;-webkit-transition:.28s;transition:.28s;vertical-align:middle;color:#fff;border-radius:3px;background:#dd2c00}.input-loading{background:url("../img/ajax-loader.gif") no-repeat 98% center}span.input-loading{display:inline-block;margin:10px 0 0 7px;height:16px;width:16px}body .cmb2-wrap .cmb2-id-console-profile .regular-text,body .cmb2-wrap .cmb2-id-console-profile select,body .cmb2-wrap .cmb2-id-console-authorization-code .regular-text,body .cmb2-wrap .cmb2-id-console-authorization-code select{display:inline-block;max-width:60%;margin-right:10px}body .cmb2-wrap .cmb2-id-console-profile .button,body .cmb2-wrap .cmb2-id-console-authorization-code .button{line-height:41px;height:auto;margin-right:8px;padding:0 25px}body .cmb2-wrap .cmb2-id-console-authorization-code .button-secondary{margin-top:5px}.wizard-share{display:inline-block;margin-top:3px;margin-left:10px;vertical-align:3px}.wizard-share a{font-size:12px;font-weight:700;display:inline-block;margin-left:5px;padding:8px 20px 8px 15px;text-decoration:none;color:#fff;border-radius:20px;background:#3b5998}.wizard-share a.share-twitter{background:#55acee}.wizard-share .dashicons{font-size:16px;margin:0 5px 0 0 !important;vertical-align:middle}#gsc-dp-info{font-weight:bold}body.rtl .rank-math-wrap h1,body.rtl .rank-math-wrap .page-title{margin-right:0;margin-left:200px}body.rtl .rank-math-wrap .rank-math-text{margin-right:0;margin-left:200px}body.rtl .rank-math-tabs-navigation:not(.custom){float:right;margin-right:0;margin-left:-1px}body.rtl .rank-math-tabs-navigation:not(.custom) a .fa,body.rtl .rank-math-tabs-navigation:not(.custom) a .dashicons{margin-right:0;margin-left:10px}body.rtl .rank-math-wrap-settings .form-footer{margin-right:200px;margin-left:0}body.rtl.wp-core-ui .rank-math-variables-button,body.rtl .serp-preview:not(.expanded-preview):not(.mobile-preview) .group.active .cmb-row.cmb2-id-rank-math-title .rank-math-variables-button{right:auto;left:1px;border-width:0 1px 0 0}body.rtl .cmb2-wrap .cmb-type-textarea .button,body.rtl .cmb2-wrap .cmb-type-textarea-small .button{border-width:1px 1px 0 0}body.rtl .rank-math-variables-dropdown li:after{right:auto;left:10px}body.rtl .rank-math-ui .button .dashicons{margin:0 0 0 3px}.rank-math-variables-preview,.rank-math-preview-title{font-family:arial, sans-serif;max-width:600px;margin-top:15px;color:#1a0dab;border-radius:4px}.rank-math-variables-preview:empty,.rank-math-preview-title:empty{display:none}.rank-math-variables-preview:before,.rank-math-preview-title:before{font-size:10px;font-weight:600;display:block;margin:0 0 8px;content:attr(data-title);letter-spacing:.15em;text-transform:uppercase;color:#aaa}.rank-math-variables-wrap{position:relative}.rank-math-variables-wrap input,.rank-math-variables-wrap textarea{padding-right:50px !important}.cmb2-wrap .cmb-type-textarea .button,.cmb2-wrap .cmb-type-textarea-small .button{top:auto;bottom:1px;border-width:1px 0 0 1px;border-radius:3px 0 3px 0}.cmb2-wrap .cmb-type-textarea .button+.rank-math-variables-dropdown,.cmb2-wrap .cmb-type-textarea-small .button+.rank-math-variables-dropdown{top:98px;right:0}.cmb2-wrap .cmb-type-textarea textarea,.cmb2-wrap .cmb-type-textarea-small textarea{display:block;resize:none}body.wp-core-ui .rank-math-variables-button{line-height:41px;height:auto;padding:0 10px;border-width:0 0 0 1px;border-color:#e5e5e5 !important;border-radius:0 3px 3px 0;-webkit-box-shadow:none;box-shadow:none;position:absolute;top:2px;right:1px;bottom:2px}body.wp-core-ui .rank-math-variables-button .dashicons{font-size:20px;line-height:41px;height:auto}.rank-math-variables-dropdown{z-index:999;display:none;overflow:auto;max-width:450px;border:1px solid #e5e5e5;background:#fff;position:absolute;top:42px;right:0;height:220px;width:80%}.rank-math-variables-dropdown input[type='text']{margin:10px;background:#fffff8;-webkit-box-shadow:none !important;box-shadow:none !important;height:34px;width:calc(100% - 20px)}.rank-math-variables-dropdown li{font-size:12px;position:relative;margin:0;padding:10px;cursor:pointer;border-bottom:1px solid #e5e5e5}.rank-math-variables-dropdown li span{font-style:italic;display:block;padding-top:.2em;color:#888}.rank-math-variables-dropdown li:hover{background:#f6f6f6}.rank-math-variables-dropdown li:after{display:inline-block;margin-top:3px;padding:.25em .4em;content:attr(data-var);white-space:nowrap;border-radius:.25rem;background-color:#f1f1f1;position:absolute;top:4px;right:10px}.dropdown-up .rank-math-variables-dropdown{top:auto;bottom:100%}.rank-math-preview-title>div{display:inline-block;min-width:400px}.rank-math-preview-title h5{font-size:18px;font-weight:normal;line-height:22px;margin:0}.rank-math-preview-title span{line-height:16px;height:17px;color:#006621}.list-table{border:1px solid #e5e5e5;border-radius:4px}.list-table+.notice{margin-top:10px}.list-table .empty-notice{font-weight:600;padding-left:15px}.list-table table{margin:0}.list-table th,.list-table td{padding:12px 15px;border-bottom:1px solid #e5e5e5}.list-table tr:last-child th,.list-table tr:last-child td{border:0}.list-table th strong{font-size:16px;display:block}.list-table .cmb2-checkbox-list li{display:inline-block;width:48%;margin:10px 0 0}.list-table .cmb2-checkbox-list label{font-weight:400}.list-table.with-action th{width:auto;vertical-align:middle}.list-table.with-action td:last-child{text-align:right}.list-table.with-action td:last-child .button+.button{margin-left:5px}.list-table.with-action.at-top td:last-child{vertical-align:top}.list-table.with-action .choices td{padding-top:0;text-align:left}.list-table.with-action .importer-header th,.list-table.with-action .importer-header td{border-bottom:none}@media screen and (max-width: 1020px){body .rank-math-wrap h1,body .rank-math-wrap .page-title,body .rank-math-wrap .rank-math-text{margin-right:0}body .rank-math-wrap .nav-tab{margin-bottom:10px;border-bottom:1px solid #ccc}}@media screen and (max-width: 782px){.form-table input.regular-text{height:36px}body .cmb2-wrap select{padding:0}body .rank-math-wrap .cmb-row.cmb-type-file .regular-text:not([type='hidden'])+.cmb2-upload-button{line-height:35px}body .rank-math-wrap .rank-math-search-options .search-field input{width:200px;height:36px}body .rank-math-wrap .cmb2-id-console-profile select{max-width:100%}body .rank-math-wrap .cmb2-id-console-profile button{margin-top:5px}body .rank-math-wrap .rank-math-rss-variables thead th,body .rank-math-wrap .rank-math-rss-variables tbody td{margin-bottom:0}body .rank-math-wrap input[type=checkbox]:checked:before,body .rank-math-wrap .cmb2-wrap input[type=checkbox]:checked:before{font-size:30px}body #rank-math-redirection-popup .media-modal{left:0;height:100%}body .rank-math-wrap .module-listing .two-col .col{width:100%;min-width:100%;max-width:100%}body .rank-math-wrap .rank-math-systm-status td,body .rank-math-wrap .rank-math-systm-status th{border:0;border-bottom:1px solid #ededed}}@media only screen and (max-width: 768px){body .rank-math-wrap .rank-math-tabs-navigation:not(.custom),body .rank-math-wrap.rank-math-wrap-settings .form-footer{width:100%;margin:0}}@media only screen and (max-width: 640px){body .rank-math-wrap .rank-math-tabs-content:not(.custom){padding:15px}body .rank-math-wrap .rank-math-search-options{width:100%;margin-bottom:15px}body .cmb2-wrap .cmb-row{padding:15px 0}body .rank-math-wrap .cmb-row .cmb-th{max-width:100%;margin-bottom:5px}body .rank-math-wrap .rank-math-ui.settings-footer input{padding:0 25px}body .rank-math-wrap .rank-math-box-help.two-col .col{width:100%;min-width:100%;max-width:100%}body .rank-math-social-preview-item{padding:10px}}@media only screen and (max-width: 595px){body .rank-math-wrap h1,body .rank-math-wrap .page-title{font-size:30px}body .rank-math-wrap .rank-math-text{font-size:15px;margin-top:10px}body .rank-math-wrap h2.nav-tab-wrapper{margin-bottom:15px}body .rank-math-wrap .cmb-group-text-only .cmb-field-list .cmb-field-list>.cmb-remove-field-row{padding-top:0}body .rank-math-wrap .cmb2-wrap .cmb-row.cmb-type-file .regular-text{width:100%;margin-top:5px;border-radius:3px}body .rank-math-metabox-wrap .rank-math-tab{padding:15px}body .rank-math-redirections-wrap .wp-heading-inline a{display:inline-block}body .rank-math-metabox-wrap .rank-math-tabs-navigation:not(.social-tabs-navigation) a .dashicons{font-size:18px;margin-right:0;padding-bottom:2px;padding-left:2px}body .rank-math-metabox-wrap .rank-math-tabs-navigation:not(.social-tabs-navigation) a .rank-math-tab-text{display:none}body .cmb2-wrap .cmb-row.cmb-row-33,body .cmb2-wrap .cmb-row.cmb-row-50{width:100%}body .cmb2-wrap .cmb-row.cmb-row-33 .cmb-th,body .cmb2-wrap .cmb-row.cmb-row-33 .cmb-td,body .cmb2-wrap .cmb-row.cmb-row-50 .cmb-th,body .cmb2-wrap .cmb-row.cmb-row-50 .cmb-td{padding:0}}
6
+
7
+ /*# sourceMappingURL=common.css.map */
assets/admin/css/dashboard.css CHANGED
File without changes
assets/admin/css/feedback.css CHANGED
File without changes
assets/admin/css/metabox.css CHANGED
File without changes
assets/admin/css/option-panel.css CHANGED
File without changes
assets/admin/css/post-list.css CHANGED
@@ -2,4 +2,4 @@
2
  * Plugin: Rank Math
3
  * URL: https://rankmath.com/wordpress/plugin/seo-suite/
4
  * Name: post-list.css
5
- */.wp-list-table th>span:nth-child(2){display:none}.wp-list-table th.bulk-editing span:nth-child(1){display:none}.wp-list-table th.bulk-editing span:nth-child(2){display:inline-block}.wp-list-table th.sorted a{display:inline-block}.wp-list-table td.rank_math_seo_details label{display:none}.wp-list-table td .rank-math-column-display{display:block;margin-bottom:5px}.wp-list-table td .rank-math-column-display.rank-math-link-count span{opacity:0.7}.wp-list-table td .rank-math-column-display.rank-math-link-count .dashicons{margin:0 0 0 -2px;font-size:17px}.wp-list-table td .rank-math-column-display.rank-math-link-count .divider{height:10px;width:1px;background:rgba(0,0,0,0.35);position:relative;display:inline-block;margin-left:5px;margin-right:5px}.wp-list-table td .rank-math-column-display.seo-score{margin-bottom:8px}.wp-list-table td .rank-math-column-display.seo-score strong{display:inline-block;padding:5px 10px;border-radius:4px}.wp-list-table td .rank-math-column-display.seo-score.no-score strong{color:#616161;background:#dedede}.wp-list-table td .rank-math-column-display.seo-score.bad strong{color:#e12925;background:#fce5e2}.wp-list-table td .rank-math-column-display.seo-score.good strong{color:#bf890d;background:#fdf0c4}.wp-list-table td .rank-math-column-display.seo-score.great strong{color:#e3f4e3;background:#4ab147}.wp-list-table td .rank-math-column-display .is-pillar{vertical-align:top;margin-left:3px;margin-top:2px}.wp-list-table td .rank-math-column-value{display:none;padding:3px;border:1px solid #e5e5e5;background-color:#fff;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.wp-list-table td .rank-math-column-edit{display:none}.wp-list-table td.bulk-editing .rank-math-column-value,.wp-list-table td.bulk-editing label{display:block}.wp-list-table td.bulk-editing .rank-math-column-display{display:none}.wp-list-table td.dirty .rank-math-column-edit{display:block}
2
  * Plugin: Rank Math
3
  * URL: https://rankmath.com/wordpress/plugin/seo-suite/
4
  * Name: post-list.css
5
+ */.wp-list-table th>span:nth-child(2){display:none}.wp-list-table th.bulk-editing span:nth-child(1){display:none}.wp-list-table th.bulk-editing span:nth-child(2){display:inline-block}.wp-list-table th.sorted a{display:inline-block}.wp-list-table th#rank_math_seo_details span:first-child a{display:inline-block;padding-right:0}.wp-list-table th#rank_math_seo_details span:first-child a.dashicons{padding-left:0}.wp-list-table td.rank_math_seo_details label{display:none}.wp-list-table td .rank-math-column-display{display:block;margin-bottom:5px}.wp-list-table td .rank-math-column-display.rank-math-link-count span{opacity:0.7}.wp-list-table td .rank-math-column-display.rank-math-link-count .dashicons{margin:0 0 0 -2px;font-size:17px}.wp-list-table td .rank-math-column-display.rank-math-link-count .divider{height:10px;width:1px;background:rgba(0,0,0,0.35);position:relative;display:inline-block;margin-left:5px;margin-right:5px}.wp-list-table td .rank-math-column-display.seo-score{margin-bottom:8px}.wp-list-table td .rank-math-column-display.seo-score strong{display:inline-block;padding:5px 10px;border-radius:4px}.wp-list-table td .rank-math-column-display.seo-score.no-score strong{color:#616161;background:#dedede}.wp-list-table td .rank-math-column-display.seo-score.bad strong{color:#e12925;background:#fce5e2}.wp-list-table td .rank-math-column-display.seo-score.good strong{color:#bf890d;background:#fdf0c4}.wp-list-table td .rank-math-column-display.seo-score.great strong{color:#e3f4e3;background:#4ab147}.wp-list-table td .rank-math-column-display .is-pillar{vertical-align:top;margin-left:3px;margin-top:2px}.wp-list-table td .rank-math-column-value{display:none;padding:3px;border:1px solid #e5e5e5;background-color:#fff;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.wp-list-table td .rank-math-column-edit{display:none}.wp-list-table td.bulk-editing .rank-math-column-value,.wp-list-table td.bulk-editing label{display:block}.wp-list-table td.bulk-editing .rank-math-column-display{display:none}.wp-list-table td.dirty .rank-math-column-edit{display:block}
assets/admin/css/setup-wizard.css CHANGED
File without changes
assets/admin/img/ajax-loader.gif CHANGED
File without changes
assets/admin/img/icon-gif.png CHANGED
File without changes
assets/admin/img/icon-play.png CHANGED
File without changes
assets/admin/img/logo.png CHANGED
File without changes
assets/admin/img/logo.svg CHANGED
File without changes
assets/admin/img/menu-icon.svg CHANGED
File without changes
assets/admin/img/pillar.svg CHANGED
File without changes
assets/admin/img/progressred.png CHANGED
File without changes
assets/admin/img/score-100.png CHANGED
File without changes
assets/admin/js/assessor.js CHANGED
File without changes
assets/admin/js/common.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=246)}({246:function(e,t,a){"use strict";var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=jQuery,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,a){return void 0!==e[a]?e[a]:t})}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(RegExp("["+e+"]+$"),"")},n(function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.searchConsole(),this.dependencyManager()},misc:function(){void 0!==jQuery.fn.select2&&n("[data-s2]").select2(),n(".cmb-group-text-only,.cmb-group-fix-me").each(function(){var e=n(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()}),n(".required, [required]").on("input invalid",function(e){e.preventDefault();var t=n(this);e.target.validity.valid?t.removeClass("invalid animated shake"):t.addClass("invalid animated shake")}),n(".rank-math-collapsible-trigger").on("click",function(e){e.preventDefault();var t=n(this),a=n("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")})},searchConsole:function(){var e=this,t=null,a=n("#console_authorization_code"),i=n("#console_profile"),o=a.parent(),s=i.parent(),c=s.find(".button-primary"),l=n("body").hasClass("rank-math-wizard-body--searchconsole")?n("> p:first-of-type",".cmb-form"):n("h1",".rank-math-wrap-settings");a.after(o.find(".button")),i.after(s.find(".button")),t=c.prev(),a.data("authorized")&&a.hide(),o.on("click",".button-secondary",function(e){e.preventDefault(),window.open(this.href,"","width=800, height=600")}),o.on("click",".button-primary",function(i){i.preventDefault();var s=n(this);s.prop("disabled",!0),a.data("authorized")?e.ajax("search_console_deauthentication").always(function(){s.prop("disabled",!1)}).done(function(){a.val(""),n("#submit-cmb").trigger("click"),"object"===("undefined"==typeof rankMathSetupWizard?"undefined":r(rankMathSetupWizard))&&(a.show(),a.data("authorized",!1),o.find(".button-secondary").show(),s.html("Authorize"),t.prop("disabled",!0),c.prop("disabled",!0))}):(a.addClass("input-loading"),e.ajax("search_console_authentication",{code:a.val()}).always(function(){s.prop("disabled",!1),a.removeClass("input-loading")}).done(function(n){n&&!n.success&&e.addNotice(n.error,"error",l),n&&"fail"===n.status&&e.addNotice(n.body.error_description,"error",l),n&&"success"===n.status&&(a.hide(),a.data("authorized",!0),o.find(".button-secondary").hide(),s.html("De-authorize Account"),c.trigger("click"),t.removeAttr("disabled"))}))}),c.on("click",function(a){a.preventDefault(),c.prop("disabled",!0),t.addClass("input-loading"),e.ajax("search_console_get_profiles").always(function(){c.prop("disabled",!1),n(".console-cache-update-manually").prop("disabled",!1),t.removeClass("input-loading")}).done(function(a){if(a&&!a.success&&e.addNotice(a.error,"error",l),a&&a.success){var r=a.selected||t.val();t.html(""),n.each(a.profiles,function(e,a){t.append('<option value="'+e+'">'+a+"</option>")}),t.val(r||Object.keys(a.profiles)[0]),c.removeClass("hidden")}})})},dependencyManager:function(){var e=this,t=n(".cmb-form, .rank-math-metabox-wrap");n(".cmb-repeat-group-wrap",t).each(function(){var e=n(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)}),n(".rank-math-cmb-dependency",t).each(function(){e.loopDependencies(n(this))}),n("input, select",t).on("change",function(){var t=n(this).attr("name");n('span[data-field="'+t+'"]').each(function(){e.loopDependencies(n(this).closest(".rank-math-cmb-dependency"))})})},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&t>=e||">"===a&&e>t||"<"===a&&t>e||"!="===a&&e!==t},loopDependencies:function(e){var t,a=this,r=e.data("relation");e.find("span").each(function(){var e=n(this),i=e.data("value"),o=e.data("comparison"),s=n("[name='"+e.data("field")+"']"),c=s.val();s.is(":radio")&&(c=s.filter(":checked").val()),s.is(":checkbox")&&(c=s.is(":checked"));var l=a.checkDependency(c,i,o);if("or"===r&&l)return t=!0,!1;"and"===r&&(t=void 0===t?l:t&&l)});var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),t?i.slideDown(300):i.hide()},tabs:function(){var e=n(".rank-math-tabs-navigation");e.length&&e.each(function(){var t=n(this),a=t.closest(".rank-math-tabs"),r=n(">a",t),i=n(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active";r.on("click",function(){var e=n(this),t=e.attr("href");return r.removeClass(o),i.hide(),e.addClass(o),n(t).show(),!1});var s=location.hash||localStorage.getItem(a.attr("id"));null===s?r.eq(0).trigger("click"):(s=n('a[href="'+s+'"]',t)).length?s.trigger("click"):r.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())})},variableInserter:function(e){var t=this,a=n("body"),r=n("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,r.length){r.attr("autocomplete","off"),r.wrap('<div class="rank-math-variables-wrap"/>'),n(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(n(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="Example"/>'),r.on("rank_math_variable_change input",function(e){var a=n(e.currentTarget),r=t.replaceVariables(a.val());r.length>60&&a.attr("name").indexOf("title")>=0&&(r=r.substring(0,60)+"..."),a.parent().next(".rank-math-variables-preview").html(r)}),r.trigger("rank_math_variable_change"));var i=n("<ul/>"),o=n('<div class="rank-math-variables-dropdown"><input type="text" placeholder="Search &hellip;"></div>');n.each(rankMath.variables,function(e){i.append('<li data-var="%'+e+'%"'+(this.example?' data-example="'+this.example+'"':"")+"><strong>"+this.name+"</strong><span>"+this.desc+"</span></li>")}),o.append(i),n(".rank-math-variables-wrap:eq(0)").append(o);var s=n(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");n(a).on("click",function(e){n(e.target).is(s)||o.hide()});var c=o.find("input"),l=o.find("li");n(a).on("click",".rank-math-variables-button",function(e){e.preventDefault(),n(this).after(o),l.show(),o.show(),c.val("").focus()}),o.on("click","li",function(e){e.preventDefault();var t=n(this),a=t.closest(".rank-math-variables-wrap").find(">:first-child");a.val(n.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),o.hide()}),o.on("keyup","input",function(e){e.preventDefault();var t=n(this).val().toLowerCase();2>t.length?l.show():l.hide().each(function(){var e=n(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})})}},replaceVariables:function(e){return n.each(rankMath.variables,function(t){if(!this.example)return!0;t=t.replace(/\([a-z]+\)/g,"\\(.*?\\)"),e=e.replace(RegExp("%+"+t+"%+","g"),this.example)}),e},ajax:function(e,t,a){return n.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:n.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},addNotice:function(e,t,a,r){r=r||!1;var i=n('<div class="notice notice-'+(t=t||"error")+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(i),i.slideDown(),n(document).trigger("wp-updates-notice-added"),r&&setTimeout(function(){i.fadeOut()},r)}},window.rankMathAdmin.init()})}});
1
+ !function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=246)}({246:function(e,t,a){"use strict";var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=jQuery,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,a){return void 0!==e[a]?e[a]:t})}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(RegExp("["+e+"]+$"),"")},n(function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.searchConsole(),this.dependencyManager()},misc:function(){void 0!==jQuery.fn.select2&&n("[data-s2]").select2(),n(".cmb-group-text-only,.cmb-group-fix-me").each(function(){var e=n(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()}),n(".required, [required]").on("input invalid",function(e){e.preventDefault();var t=n(this);e.target.validity.valid?t.removeClass("invalid animated shake"):t.addClass("invalid animated shake")}),n(".rank-math-collapsible-trigger").on("click",function(e){e.preventDefault();var t=n(this),a=n("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")})},searchConsole:function(){var e=this,t=null,a=n("#console_authorization_code"),i=n("#gsc-dp-info"),o=n("#console_profile"),s=a.parent(),c=o.parent(),l=c.find(".button-primary"),d=n("body").hasClass("rank-math-wizard-body--searchconsole")?n("> p:first-of-type",".cmb-form"):n("h1",".rank-math-wrap-settings");a.after(s.find(".button")),o.after(c.find(".button")),o.on("change",function(){null!==o.val()&&0===o.val().indexOf("sc-domain:")?i.removeClass("hidden"):i.addClass("hidden")}).change(),t=l.prev(),a.data("authorized")&&a.hide(),s.on("click",".button-secondary",function(e){e.preventDefault(),window.open(this.href,"","width=800, height=600")}),s.on("click",".button-primary",function(i){i.preventDefault();var o=n(this);o.prop("disabled",!0),a.data("authorized")?e.ajax("search_console_deauthentication").always(function(){o.prop("disabled",!1)}).done(function(){a.val(""),n("#submit-cmb").trigger("click"),"object"===("undefined"==typeof rankMathSetupWizard?"undefined":r(rankMathSetupWizard))&&(a.show(),a.data("authorized",!1),s.find(".button-secondary").show(),o.html("Authorize"),t.prop("disabled",!0),l.prop("disabled",!0))}):(a.addClass("input-loading"),e.ajax("search_console_authentication",{code:a.val()}).always(function(){o.prop("disabled",!1),a.removeClass("input-loading")}).done(function(n){n&&!n.success&&e.addNotice(n.error,"error",d),n&&"fail"===n.status&&e.addNotice(n.body.error_description,"error",d),n&&"success"===n.status&&(a.hide(),a.data("authorized",!0),s.find(".button-secondary").hide(),o.html("De-authorize Account"),l.trigger("click"),t.removeAttr("disabled"))}))}),l.on("click",function(a){a.preventDefault(),l.prop("disabled",!0),t.addClass("input-loading"),e.ajax("search_console_get_profiles").always(function(){l.prop("disabled",!1),n(".console-cache-update-manually").prop("disabled",!1),t.removeClass("input-loading")}).done(function(a){if(a&&!a.success&&e.addNotice(a.error,"error",d),a&&a.success){var r=a.selected||t.val();t.html(""),n.each(a.profiles,function(e,a){t.append('<option value="'+e+'">'+a+"</option>")}),t.val(r||Object.keys(a.profiles)[0]),l.removeClass("hidden")}})})},dependencyManager:function(){var e=this,t=n(".cmb-form, .rank-math-metabox-wrap");n(".cmb-repeat-group-wrap",t).each(function(){var e=n(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)}),n(".rank-math-cmb-dependency",t).each(function(){e.loopDependencies(n(this))}),n("input, select",t).on("change",function(){var t=n(this).attr("name");n('span[data-field="'+t+'"]').each(function(){e.loopDependencies(n(this).closest(".rank-math-cmb-dependency"))})})},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&t>=e||">"===a&&e>t||"<"===a&&t>e||"!="===a&&e!==t},loopDependencies:function(e){var t,a=this,r=e.data("relation");e.find("span").each(function(){var e=n(this),i=e.data("value"),o=e.data("comparison"),s=n("[name='"+e.data("field")+"']"),c=s.val();s.is(":radio")&&(c=s.filter(":checked").val()),s.is(":checkbox")&&(c=s.is(":checked"));var l=a.checkDependency(c,i,o);if("or"===r&&l)return t=!0,!1;"and"===r&&(t=void 0===t?l:t&&l)});var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),t?i.slideDown(300):i.hide()},tabs:function(){var e=n(".rank-math-tabs-navigation");e.length&&e.each(function(){var t=n(this),a=t.closest(".rank-math-tabs"),r=n(">a",t),i=n(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active";r.on("click",function(){var e=n(this),t=e.attr("href");return r.removeClass(o),i.hide(),e.addClass(o),n(t).show(),!1});var s=location.hash||localStorage.getItem(a.attr("id"));null===s?r.eq(0).trigger("click"):(s=n('a[href="'+s+'"]',t)).length?s.trigger("click"):r.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())})},variableInserter:function(e){var t=this,a=n("body"),r=n("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,r.length){r.attr("autocomplete","off"),r.wrap('<div class="rank-math-variables-wrap"/>'),n(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(n(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="Example"/>'),r.on("rank_math_variable_change input",function(e){var a=n(e.currentTarget),r=t.replaceVariables(a.val());r.length>60&&a.attr("name").indexOf("title")>=0&&(r=r.substring(0,60)+"..."),a.parent().next(".rank-math-variables-preview").html(r)}),r.trigger("rank_math_variable_change"));var i=n("<ul/>"),o=n('<div class="rank-math-variables-dropdown"><input type="text" placeholder="Search &hellip;"></div>');n.each(rankMath.variables,function(e){i.append('<li data-var="%'+e+'%"'+(this.example?' data-example="'+this.example+'"':"")+"><strong>"+this.name+"</strong><span>"+this.desc+"</span></li>")}),o.append(i),n(".rank-math-variables-wrap:eq(0)").append(o);var s=n(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");n(a).on("click",function(e){n(e.target).is(s)||o.hide()});var c=o.find("input"),l=o.find("li");n(a).on("click",".rank-math-variables-button",function(e){e.preventDefault(),n(this).after(o),l.show(),o.show(),c.val("").focus()}),o.on("click","li",function(e){e.preventDefault();var t=n(this),a=t.closest(".rank-math-variables-wrap").find(">:first-child");a.val(n.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),o.hide()}),o.on("keyup","input",function(e){e.preventDefault();var t=n(this).val().toLowerCase();2>t.length?l.show():l.hide().each(function(){var e=n(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})})}},replaceVariables:function(e){return n.each(rankMath.variables,function(t){if(!this.example)return!0;t=t.replace(/\([a-z]+\)/g,"\\(.*?\\)"),e=e.replace(RegExp("%+"+t+"%+","g"),this.example)}),e},ajax:function(e,t,a){return n.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:n.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},addNotice:function(e,t,a,r){r=r||!1;var i=n('<div class="notice notice-'+(t=t||"error")+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(i),i.slideDown(),n(document).trigger("wp-updates-notice-added"),r&&setTimeout(function(){i.fadeOut()},r)}},window.rankMathAdmin.init()})}});
assets/admin/js/dashboard.js CHANGED
File without changes
assets/admin/js/feedback.js CHANGED
File without changes
assets/admin/js/import-export.js CHANGED
File without changes
assets/admin/js/jquery.tag-editor.js CHANGED
File without changes
assets/admin/js/option-panel.js CHANGED
File without changes
assets/admin/js/post-list.js CHANGED
File without changes
assets/admin/js/post-metabox.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=251)}([function(e,t){e.exports=Array.isArray},function(e,t,n){var r=n(75)("wks"),i=n(40),a=n(2).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(11),i=n(41);e.exports=n(4)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(22)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=jQuery},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(70)("wks"),i=n(71),a=n(6).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(34),i=n(68);e.exports=n(20)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(12),i=n(77),a=n(79),o=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(2),i=n(3),a=n(14),o=n(40)("src"),s=Function.toString,u=(""+s).split("toString");n(39).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||i(n,o,e[t]?""+e[t]:u.join(t+""))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||s.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){var r=n(89);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports={}},function(e,t,n){var r=n(35);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(36)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(181),i=n(43);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(0),i=n(30),a=n(130),o=n(60);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,n){var r=n(96),i=n(54);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},,function(e,t,n){var r=n(109),i=n(112)(r);e.exports=i},function(e,t,n){var r=n(51)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(0),i=n(129),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(52),i=n(26),a=n(105),o=n(140),s=n(141),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?o(n):0;var l=e.length;return 0>n&&(n=u(l+n,0)),a(e)?l>=n&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},function(e,t,n){var r=n(156),i=n(33);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(19),i=n(159),a=n(160),o=Object.defineProperty;t.f=n(20)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(70)("keys"),i=n(71);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(75)("keys"),i=n(40);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(3),i=n(13),a=n(22),o=n(43),s=n(1);e.exports=function(e,t,n){var u=s(e),c=n(o,u,""[e]),l=c[0],f=c[1];a(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t,n){var r=n(113),i=n(127),a=n(104),o=n(0),s=n(133);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(25),i=n(15);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&a>n;)e=e[i(t[n++])];return n&&n==a?e:void 0}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"\n")}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&9007199254740991>=e}},function(e,t,n){var r=n(115),i=n(116),a=n(117),o=n(118),s=n(119);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(120),i=n(57);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(24),i=n(211),a=n(144),o=Math.max,s=Math.min;e.exports=function(e,t,n){var u,c,l,f,p,d,h=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function k(e){var n=e-d;return void 0===d||n>=t||0>n||m&&e-h>=l}function b(){var e=i();if(k(e))return w(e);p=setTimeout(b,function(e){var n=t-(e-d);return m?s(n,l-(e-h)):n}(e))}function w(e){return p=void 0,g&&u?y(e):(u=c=void 0,f)}function x(){var e=i(),n=k(e);if(u=arguments,c=this,d=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(b,t),v?y(e):f}(d);if(m)return p=setTimeout(b,t),y(d)}return void 0===p&&(p=setTimeout(b,t)),f}return t=a(t)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?o(a(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=c=p=void 0},x.flush=function(){return void 0===p?f:w(i())},x}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(65),i=n(66),a=n(161),o=n(10),s=n(18),u=n(162),c=n(73),l=n(170),f=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,g){u(n,t,h);var y,k,b,w=function(e){if(!p&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",_="values"==v,P=!1,O=e.prototype,C=O[f]||O["@@iterator"]||v&&O[v],T=C||w(v),S=v?_?w("entries"):T:void 0,M="Array"==t&&O.entries||C;if(M&&(b=l(M.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[f]||o(b,f,d)),_&&C&&"values"!==C.name&&(P=!0,T=function(){return C.call(this)}),r&&!g||!p&&!P&&O[f]||o(O,f,T),s[t]=T,s[x]=d,v)if(y={values:_?T:w("values"),keys:m?T:w("keys"),entries:S},g)for(k in y)k in O||a(O,k,y[k]);else i(i.P+i.F*(p||P),t,y);return y}},function(e,t){e.exports=!0},function(e,t,n){var r=n(6),i=n(7),a=n(157),o=n(10),s=n(21),u=function(e,t,n){var c,l,f,p=e&u.F,d=e&u.G,h=e&u.S,v=e&u.P,m=e&u.B,g=e&u.W,y=d?i:i[t]||(i[t]={}),k=y.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;for(c in d&&(n=t),n)(l=!p&&b&&void 0!==b[c])&&s(y,c)||(f=l?b[c]:n[c],y[c]=d&&"function"!=typeof b[c]?n[c]:m&&l?a(f,r):g&&b[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?a(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[c]=f,e&u.R&&k&&!k[c]&&o(k,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(35),i=n(6).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(165),i=n(72);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(7),i=n(6),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(65)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(34).f,i=n(21),a=n(8)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(39),i=n(2),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(76)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){e.exports=!n(4)&&!n(22)(function(){return 7!=Object.defineProperty(n(78)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(9),i=n(2).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(184);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(83),i=n(45);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(14),i=n(23),a=n(188)(!1),o=n(44)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(11).f,i=n(14),a=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(9),i=n(80),a=n(1)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(148),i=n(149),a=n(176);e.exports=function(e,t){return r(e)||i(e,t)||a()}},function(e,t,n){e.exports=n(196)},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(132),i=n(102);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&t>e}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(107),i=n(108),a=n(47),o=n(0);e.exports=function(e,t){return(o(e)?r:i)(e,a(t,3))}},function(e,t,n){var r=n(61),i=n(47),a=n(146),o=n(0);e.exports=function(e,t){return(o(e)?r:a)(e,i(t,3))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,"").replace(i,"")};var r=/\[[^<>&\/\[\] - =]+?( [^\]]+?)?\]/g,i=/\[\/[^<>&\/\[\] - =]+?\]/g},function(e,t,n){var r=n(53),i=n(24);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(0);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,t,n){var r=n(52);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(25),i=n(103),a=n(0),o=n(91),s=n(54),u=n(15);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&o(p,l)&&(a(e)||i(e))}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(53),i=n(0),a=n(57);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},,function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},function(e,t,n){var r=n(28);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},function(e,t,n){var r=n(110),i=n(29);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(111)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===n(a[u],u,a))break}return t}}},function(e,t,n){var r=n(26);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},function(e,t,n){var r=n(114),i=n(126),a=n(59);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(55),i=n(56);e.exports=function(e,t,n,a){var o=n.length,s=o,u=!a;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=n[o])[0],f=e[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(a)var h=a(f,p,l,e,t,d);if(!(void 0===h?i(p,f,3,a,d):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(17),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return n>=0&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(17);e.exports=function(e){var t=this.__data__,n=r(t,e);return 0>n?void 0:t[n][1]}},function(e,t,n){var r=n(17);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(17);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return 0>i?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(55),i=n(121),a=n(123),o=n(124),s=n(99),u=n(0),c=n(100),l=n(101),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var y=u(e),k=u(t),b=y?p:s(e),w=k?p:s(t),x=(b=b==f?d:b)==d,_=(w=w==f?d:w)==d,P=b==w;if(P&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(P&&!x)return g||(g=new r),y||l(e)?i(e,t,n,v,m,g):a(e,t,b,n,v,m,g);if(!(1&n)){var O=x&&h.call(e,"__wrapped__"),C=_&&h.call(t,"__wrapped__");if(O||C){var T=O?e.value():e,S=C?t.value():t;return g||(g=new r),m(T,S,n,v,g)}}return!!P&&(g||(g=new r),o(e,t,n,v,m,g))}},function(e,t,n){var r=n(97),i=n(122),a=n(98);e.exports=function(e,t,n,o,s,u){var c=1&n,l=e.length,f=t.length;if(!(l==f||c&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var m=e[d],g=t[d];if(o)var y=c?o(g,m,d,t,e,u):o(m,g,d,e,t,u);if(void 0!==y){if(y)continue;h=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(m===e||s(m,e,n,o,u)))return v.push(t)})){h=!1;break}}else if(m!==g&&!s(m,g,n,o,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(125),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var v=u;++f<l;){var m=e[p=c[f]],g=t[p];if(a)var y=u?a(g,m,p,t,e,s):a(m,g,p,e,t,s);if(!(void 0===y?m===g||o(m,g,n,a,s):y)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var k=e.constructor,b=t.constructor;k!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof k&&k instanceof k&&"function"==typeof b&&b instanceof b)&&(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(51)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(58),i=n(29);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},function(e,t,n){var r=n(56),i=n(128),a=n(90),o=n(30),s=n(58),u=n(59),c=n(15);e.exports=function(e,t){return o(e)&&s(t)?u(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},function(e,t,n){var r=n(48);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(131)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(134),i=n(135),a=n(30),o=n(15);e.exports=function(e){return a(e)?r(o(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(48);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(e=(0,i.default)(e)).replace(/ /gi,"-").toLowerCase()};var r,i=(r=n(137))&&r.__esModule?r:{default:r}},function(e,t,n){var r=n(138),i=n(60),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=/[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]/g;e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},function(e,t,n){var r=n(139)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(142),i=n(29);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(61);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=u((0,i.autop)((0,o.default)(e)),t);return n.length>0?n:[e]};var r=s(n(94)),i=n(147),a=s(n(50)),o=s(n(95));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e,t){var n=[];t=t||!1;for(var i=/<p(?:[^>]+)?>(.*?)<\/p>/gi,o=void 0;null!==(o=i.exec(e));)n.push(o);return(0,r.default)(n,function(e){return t?(0,a.default)(e[1]):e[1]})}},function(e,t,n){var r=n(28),i=n(26);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,function(e,r,i){a[++n]=t(e,r,i)}),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"autop",function(){return c}),n.d(t,"removep",function(){return l});var r=n(87),i=n.n(r),a=(n(177),n(194),n(195),n(88)),o=n.n(a),s=(n(199),n(200),/(<((?=!--|!\[CDATA\[)((?=!-)!(?:-(?!->)[^\-]*)*(?:-->)?|!\[CDATA\[[^\]]*(?:](?!]>)[^\]]*)*?(?:]]>)?)|[^>]*>?))/);function u(e,t){for(var n=function(e){for(var t,n=[],r=e;t=r.match(s);)n.push(r.slice(0,t.index)),n.push(t[0]),r=r.slice(t.index+t[0].length);return r.length&&n.push(r),n}(e),r=!1,i=o()(t),a=1;n.length>a;a+=2)for(var u=0;i.length>u;u++){var c=i[u];if(-1!==n[a].indexOf(c)){n[a]=n[a].replace(RegExp(c,"g"),t[c]),r=!0;break}}return r&&(e=n.join("")),e}function c(e){var t=1>=arguments.length||void 0===arguments[1]||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var r=e.split("</pre>"),a=r.pop();e="";for(var o=0;r.length>o;o++){var s=r[o],c=s.indexOf("<pre");if(-1!==c){var l="<pre wp-pre-tag-"+o+"></pre>";n.push([l,s.substr(c)+"</pre>"]),e+=s.substr(0,c)+l}else e+=s}e+=a}var f="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=u(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(RegExp("(<"+f+"[s/>])","g"),"\n\n$1")).replace(RegExp("(</"+f+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));var p=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",p.forEach(function(t){e+="<p>"+t.replace(/^\n*|\n*$/g,"")+"</p>\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(RegExp("<p>s*(</?"+f+"[^>]*>)s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(RegExp("<p>s*(</?"+f+"[^>]*>)","g"),"$1")).replace(RegExp("(</?"+f+"[^>]*>)s*</p>","g"),"$1"),t&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,function(e){return e[0].replace(/\n/g,"<WPPreserveNewline />")})).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,function(e,t){return t?e:"<br />\n"})).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(RegExp("(</?"+f+"[^>]*>)s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach(function(t){var n=i()(t,2);e=e.replace(n[0],n[1])}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function l(e){var t="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=t+"|div|p",r=t+"|pre",i=[],a=!1,o=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,function(e){return i.push(e),"<wp-preserve>"})),-1!==e.indexOf("<pre")&&(a=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")})),-1!==e.indexOf("[caption")&&(o=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")})),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>.*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,function(e,t){return t&&-1!==t.indexOf("\n")?"\n\n":"\n"})).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(RegExp("\\s*<((?:"+r+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(RegExp("\\s*</("+r+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,function(e){return e.replace(/[\r\n]+/g,"")})),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),a&&(e=e.replace(/<wp-line-break>/g,"\n")),o&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),i.length&&(e=e.replace(/<wp-preserve>/g,function(){return i.shift()})),e):""}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t,n){var r=n(150);e.exports=function(e,t){var n=[],i=!0,a=!1,o=void 0;try{for(var s,u=r(e);!(i=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}return n}},function(e,t,n){e.exports=n(151)},function(e,t,n){n(152),n(171),e.exports=n(173)},function(e,t,n){n(153);for(var r=n(6),i=n(10),a=n(18),o=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;s.length>u;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[o]&&i(f,o,c),a[c]=a.Array}},function(e,t,n){"use strict";var r=n(154),i=n(155),a=n(18),o=n(32);e.exports=n(64)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]]):(this._t=void 0,i(1))},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(63);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(158);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){e.exports=!n(20)&&!n(36)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(35);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";var r=n(163),i=n(68),a=n(73),o={};n(10)(o,n(8)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(19),i=n(164),a=n(72),o=n(38)("IE_PROTO"),s=function(){},u=function(){var e,t=n(67)("iframe"),r=a.length;for(t.style.display="none",n(169).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(34),i=n(19),a=n(69);e.exports=n(20)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(21),i=n(32),a=n(166)(!1),o=n(38)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var r=n(32),i=n(167),a=n(168);e.exports=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(37),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(37),i=Math.max,a=Math.min;e.exports=function(e,t){return 0>(e=r(e))?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(21),i=n(74),a=n(38)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){"use strict";var r=n(172)(!0);n(64)(String,"String",function(e){this._t=e+"",this._i=0},function(){var e,t=this._t,n=this._i;return t.length>n?(e=r(t,n),this._i+=e.length,{value:e,done:!1}):{value:void 0,done:!0}})},function(e,t,n){var r=n(37),i=n(33);e.exports=function(e){return function(t,n){var a,o,s=i(t)+"",u=r(n),c=s.length;return 0>u||u>=c?e?"":void 0:55296>(a=s.charCodeAt(u))||a>56319||u+1===c||56320>(o=s.charCodeAt(u+1))||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var r=n(19),i=n(174);e.exports=n(7).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(175),i=n(8)("iterator"),a=n(18);e.exports=n(7).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},function(e,t,n){var r=n(63),i=n(8)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){for(var r=n(178),i=n(82),a=n(13),o=n(2),s=n(3),u=n(42),c=n(1),l=c("iterator"),f=c("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),v=0;h.length>v;v++){var m,g=h[v],y=d[g],k=o[g],b=k&&k.prototype;if(b&&(b[l]||s(b,l,p),b[f]||s(b,f,g),u[g]=p,y))for(m in r)b[m]||a(b,m,r[m],!0)}},function(e,t,n){"use strict";var r=n(179),i=n(180),a=n(42),o=n(23);e.exports=n(182)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]]):(this._t=void 0,i(1))},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(1)("unscopables"),i=Array.prototype;null==i[r]&&n(3)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(80);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(76),i=n(183),a=n(13),o=n(3),s=n(42),u=n(185),c=n(85),l=n(192),f=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,g){u(n,t,h);var y,k,b,w=function(e){if(!p&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",_="values"==v,P=!1,O=e.prototype,C=O[f]||O["@@iterator"]||v&&O[v],T=C||w(v),S=v?_?w("entries"):T:void 0,M="Array"==t&&O.entries||C;if(M&&(b=l(M.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[f]||o(b,f,d)),_&&C&&"values"!==C.name&&(P=!0,T=function(){return C.call(this)}),r&&!g||!p&&!P&&O[f]||o(O,f,T),s[t]=T,s[x]=d,v)if(y={values:_?T:w("values"),keys:m?T:w("keys"),entries:S},g)for(k in y)k in O||a(O,k,y[k]);else i(i.P+i.F*(p||P),t,y);return y}},function(e,t,n){var r=n(2),i=n(39),a=n(3),o=n(13),s=n(81),u=function(e,t,n){var c,l,f,p,d=e&u.F,h=e&u.G,v=e&u.P,m=e&u.B,g=h?r:e&u.S?r[t]||(r[t]={}):(r[t]||{}).prototype,y=h?i:i[t]||(i[t]={}),k=y.prototype||(y.prototype={});for(c in h&&(n=t),n)f=((l=!d&&g&&void 0!==g[c])?g:n)[c],p=m&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,g&&o(g,c,f,e&u.U),y[c]!=f&&a(y,c,p),v&&k[c]!=f&&(k[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(186),i=n(41),a=n(85),o={};n(3)(o,n(1)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(12),i=n(187),a=n(45),o=n(44)("IE_PROTO"),s=function(){},u=function(){var e,t=n(78)("iframe"),r=a.length;for(t.style.display="none",n(191).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(11),i=n(12),a=n(82);e.exports=n(4)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(23),i=n(189),a=n(190);e.exports=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(84),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(84),i=Math.max,a=Math.min;e.exports=function(e,t){return 0>(e=r(e))?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(14),i=n(193),a=n(44)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(43);e.exports=function(e){return Object(r(e))}},function(e,t,n){n(46)("split",2,function(e,t,r){"use strict";var i=n(86),a=r,o=[].push;if("".split(/.?/).length){var s=void 0===/()??/.exec("")[1];r=function(e,t){var n=this+"";if(void 0===e&&0===t)return[];if(!i(e))return a.call(n,e,t);var r,u,c,l,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,v=void 0===t?4294967295:t>>>0,m=RegExp(e.source,d+"g");for(s||(r=RegExp("^"+m.source+"$(?!\\s)",d));(u=m.exec(n))&&((c=u.index+u[0].length)<=h||(p.push(n.slice(h,u.index)),!s&&u.length>1&&u[0].replace(r,function(){for(f=1;arguments.length-2>f;f++)void 0===arguments[f]&&(u[f]=void 0)}),u.length>1&&n.length>u.index&&o.apply(p,u.slice(1)),l=u[0].length,h=c,v>p.length));)m.lastIndex===u.index&&m.lastIndex++;return h===n.length?!l&&m.test("")||p.push(""):p.push(n.slice(h)),p.length>v?p.slice(0,v):p}}return[function(n,i){var a=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,a,i):r.call(a+"",n,i)},r]})},function(e,t,n){n(46)("replace",2,function(e,t,n){return[function(r,i){"use strict";var a=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,a,i):n.call(a+"",r,i)},n]})},function(e,t,n){n(197),e.exports=n(7).Object.keys},function(e,t,n){var r=n(74),i=n(69);n(198)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(66),i=n(7),a=n(36);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",o)}},function(e,t,n){n(46)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):RegExp(n)[t](r+"")},n]})},function(e,t,n){var r=n(2),i=n(201),a=n(11).f,o=n(205).f,s=n(86),u=n(206),c=r.RegExp,l=c,f=c.prototype,p=/a/g,d=/a/g,h=new c(p)!==p;if(n(4)&&(!h||n(22)(function(){return d[n(1)("match")]=!1,c(p)!=p||c(d)==d||"/a/i"!=c(p,"i")}))){c=function(e,t){var n=this instanceof c,r=s(e),a=void 0===t;return!n&&r&&e.constructor===c&&a?e:i(h?new l(r&&!a?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&a?u.call(e):t),n?this:f,c)};for(var v=function(e){e in c||a(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},m=o(l),g=0;m.length>g;)v(m[g++]);f.constructor=c,c.prototype=f,n(13)(r,"RegExp",c)}n(207)("RegExp")},function(e,t,n){var r=n(9),i=n(202).set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},function(e,t,n){var r=n(9),i=n(12),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(81)(Function.call,n(203).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(204),i=n(41),a=n(23),o=n(79),s=n(14),u=n(77),c=Object.getOwnPropertyDescriptor;t.f=n(4)?c:function(e,t){if(e=a(e),t=o(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(83),i=n(45).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(12);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(2),i=n(11),a=n(4),o=n(1)("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},,function(e,t,n){"use strict";var r,i=(r=n(5))&&r.__esModule?r:{default:r};i.default.extend({rankMathHighlight:function(e,t,n,r){if(3===e.nodeType){var a=e.data.match(t);if(a){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(a.index);s.splitText(a[0].length);var u=s.cloneNode(!0);return o.appendChild(u),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var c=0;e.childNodes.length>c;c++)c+=i.default.rankMathHighlight(e.childNodes[c],t,n,r);return 0}}),i.default.fn.rankMathUnhighlight=function(e){var t={className:"highlight",element:"span"};return i.default.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},i.default.fn.rankMathHighlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(i.default.extend(n,t),void 0===e||""===e)return this;if(e.constructor===String&&(e=[e]),e=i.default.grep(e,function(e){return""!==e}),0===(e=i.default.map(e,function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")})).length)return this;var r=n.caseSensitive?"":"i",a="("+e.join("|")+")";n.wordsOnly&&(a="\\b"+a+"\\b");var o=RegExp(a,r);return this.each(function(){i.default.rankMathHighlight(this,o,n.element,n.className)})}},function(e,t,n){"use strict";var r,i=(r=n(5))&&r.__esModule?r:{default:r},a=document.createElement("div");i.default.fn.lengthIndicator=function(e){var t=this;e=i.default.extend({},{minLength:0,maxLength:1e3,source:null},e),t.wrap('<span class="length-indicator-wrapper"/>'),t.parent().append('<span class="length-indicator"><span/></span><span class="length-count">0 / '+e.maxLength+"</span>");var n=t.parent().find(".length-indicator"),r=n.find(">span"),o=t.parent().find(".length-count"),s=function(){var i=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),a.innerHTML=e,e=a.textContent,a.textContent=""),e}(null===e.source?t.val():e.source.text()).length;n.removeClass("invalid short"),r.css("left",Math.min(100,Math.floor(i/e.maxLength*100))+"%"),o.text(i+" / "+e.maxLength),i>e.minLength&&e.maxLength>=i||n.addClass("invalid")};t.on("input",s),null!==e.source&&e.source.on("rank-math-vars-replaced",s),s()}},function(e,t,n){var r=n(212);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(213),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t,n){var r;r=n(143),e.exports="object"==typeof r&&r&&r.Object===Object&&r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(5)),a=o(n(215));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elem=(0,i.default)("#rank-math-serp-checklist",t.elemMetabox),this.scoreElem=(0,i.default)('<div class="misc-pub-section rank-math-seo-score"><span class="score-text"><span class="dashicons dashicons-chart-area"></span> SEO: <strong>Not available</strong></span></div>'),this.scoreText=this.scoreElem.find("strong"),this.scoreField=(0,i.default)("#rank_math_seo_score"),this.fkScoreElem=(0,i.default)('<div class="rank-math-seo-score below-focus-keyword"><span class="score-text">Not available</span></div>'),this.fkScoreText=this.fkScoreElem.find("span"),(0,i.default)("#misc-publishing-actions").append(this.scoreElem),(0,i.default)(".cmb-td",".cmb2-id-rank-math-focus-keyword").append(this.fkScoreElem),this.events()}return r(e,[{key:"display",value:function(e){var t=this;i.default.each(e,function(e,n){var r=t.elem.find(".seo-check-"+e);r.removeClass("test-ok test-gallery test-fail test-empty test-looking veryEasy difficult veryDifficult"),r.addClass("test-"+n.status),r.show(),"calculateFleschReading"===e&&r.addClass(n.factors[2]),r.find("span:eq(0)").html(n.message)})}},{key:"setPrimaryKeywordStatus",value:function(e,t){t.removeClass("good-fk ok-fk bad-fk");var n=(0,a.default)(e,function(e,t,n){return!1===t&&(t={score:0}),e+t.score},0);status="bad-fk",n>80?status="good-fk":n>50&&(status="ok-fk"),t.removeClass("bad-fk ok-fk good-fk"),this.scoreElem.removeClass("bad-fk ok-fk good-fk"),this.fkScoreElem.removeClass("bad-fk ok-fk good-fk"),t.addClass(status),this.scoreElem.addClass(status),this.fkScoreElem.addClass(status),this.scoreText.html(n+" / 100"),this.fkScoreText.html(n+" / 100"),this.scoreField.val(parseInt(n))}},{key:"setSecondaryKeywordStatus",value:function(e,t){t.removeClass("good-fk ok-fk bad-fk");var n=(0,a.default)(e,function(e,t){return e+("ok"===t.status?1:0)},0);t.addClass(3===n?"good-fk":2===n?"ok-fk":"bad-fk")}},{key:"hidePrimary",value:function(){this.elem.find("li.is-primary").hide()}},{key:"events",value:function(){var e=this;this.elem.on("click",".group-handle",function(t){t.preventDefault();var n=(0,i.default)(t.target).closest(".rank-math-serp-group"),r={};n.toggleClass("state-open state-closed"),e.updateGroupStatus(n),e.elem.find(">.rank-math-serp-group").each(function(){var e=(0,i.default)(this);r[e.data("id")]=e.hasClass("state-closed")?"closed":"open"}),i.default.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_save_checklist_layout",security:rankMath.security,layout:r}})})}},{key:"updateGroupStatus",value:function(e){(e=e||(0,i.default)(".rank-math-serp-group")).each(function(){var e=(0,i.default)(this);1>e.find("li.test-fail").length&&1>e.find("li.test-empty").length?e.find(".group-status").addClass("passed"):e.find(".group-status").removeClass("passed")})}}]),e}();t.default=s},function(e,t,n){var r=n(216),i=n(28),a=n(47),o=n(217),s=n(0);e.exports=function(e,t,n){var u=s(e)?r:o,c=3>arguments.length;return u(e,a(t,4),n,c,i)}},function(e,t){e.exports=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}},function(e,t){e.exports=function(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(5))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metabox=t,this.currentNetwork="facebook",this.useFacebook=!0,this.shouldUpdatePreview=!1,this.facebookTitleField=t.elemMetabox.find("#rank_math_facebook_title"),this.facebookDescriptionField=t.elemMetabox.find("#rank_math_facebook_description"),this.twitterTitleField=t.elemMetabox.find("#rank_math_twitter_title"),this.twitterDescriptionField=t.elemMetabox.find("#rank_math_twitter_description"),this.facebookImageField=t.elemMetabox.find("#rank_math_facebook_image"),this.twitterImageField=t.elemMetabox.find("#rank_math_twitter_image"),this.facebookImageStatus=t.elemMetabox.find("#rank_math_facebook_image-status"),this.twitterImageStatus=t.elemMetabox.find("#rank_math_twitter_image-status"),this.socialWrapper=t.elemMetabox.find(".rank-math-social-preview"),this.socialPreview=this.socialWrapper.find(".rank-math-social-preview-item"),this.socialTitle=this.socialWrapper.find(".rank-math-social-preview-title"),this.socialDescription=this.socialWrapper.find(".rank-math-social-preview-description"),this.events(),this.shouldUpdatePreview=!0,this.updatePreview()}return i(e,[{key:"events",value:function(){var e=this;this.facebookTitleField.on("input",function(){e.updateTitlePreview()}),this.facebookDescriptionField.on("input",function(){e.updateDescriptionPreview()}),this.facebookImageField.on("input",function(){e.updateThumbnailPreview()}),this.twitterTitleField.on("input",function(){e.updateTitlePreview()}),this.twitterDescriptionField.on("input",function(){e.updateDescriptionPreview()}),this.twitterImageField.on("input",function(){e.updateThumbnailPreview()});var t=(0,a.default)(".rank-math-social-preview-button"),n=t.find(">span");t.on("click",function(t){t.preventDefault(),n.toggleClass("dashicons-arrow-down dashicons-arrow-up"),e.updatePreview(),e.socialWrapper.toggleClass("open"),e.socialPreview.slideToggle()});var r=(0,a.default)("#rank_math_twitter_card_type");(0,a.default)(".preview-network").on("click",function(n){(0,a.default)(n.target).hasClass("tab-facebook")?t.show():r.trigger("change"),e.updatePreview()}),r.on("change",function(){var n=r.val();"player"===n&&(0,a.default)(".cmb2-id-rank-math-twitter-image, .cmb2-id-rank-math-twitter-title, .cmb2-id-rank-math-twitter-description").show();var i="player"===n||"app"===n;t.toggle(!i),(0,a.default)(".cmb2-id-rank-math-twitter-use-facebook").toggle(!i),e.updatePreview()}).trigger("change");var i=(0,a.default)("#rank_math_twitter_use_facebook2");(0,a.default)("#rank_math_twitter_use_facebook1, #rank_math_twitter_use_facebook2").on("input change",function(){e.useFacebook=i.is(":checked"),e.updatePreview()}).trigger("change"),(0,a.default)(".cmb2-id-rank-math-facebook-enable-image-overlay, .cmb2-id-rank-math-facebook-image-overlay, .cmb2-id-rank-math-twitter-enable-image-overlay, .cmb2-id-rank-math-twitter-image-overlay").on("change","input",function(){e.updateThumbnailOverlay()}),(0,a.default)(document).on("cmb_media_modal_select",function(t,n,r){"rank_math_facebook_image"!==r.field&&"rank_math_twitter_image"!==r.field||e.updateThumbnailPreview()}),(0,a.default)(document).on("cmb_init",function(t,n){n.$metabox.on("click",".cmb2-remove-file-button",function(){e.updateThumbnailPreview()})})}},{key:"updatePreview",value:function(){!1!==this.shouldUpdatePreview&&(this.currentNetwork=(0,a.default)(".preview-network.tab-active").attr("href").replace("#setting-panel-social-",""),this.socialWrapper.removeClass(),this.socialWrapper.addClass("rank-math-social-preview rank-math-social-preview-"+this.currentNetwork),"twitter"===this.currentNetwork&&this.socialWrapper.addClass((0,a.default)("#rank_math_twitter_card_type").val()),this.updateTitlePreview(),this.updateDescriptionPreview(),this.updateThumbnailPreview())}},{key:"updateTitlePreview",value:function(){var e=this[this.currentNetwork+"TitleField"].val()||this.metabox.title;"twitter"===this.currentNetwork&&this.useFacebook&&(e=this.facebookTitleField.val()||this.metabox.title),e=this.metabox.truncate(this.metabox.swapVars(e),90),this.socialTitle.html(e)}},{key:"updateDescriptionPreview",value:function(){var e=this[this.currentNetwork+"DescriptionField"].val()||this.description;"twitter"===this.currentNetwork&&this.useFacebook&&(e=this.facebookDescriptionField.val()||this.metabox.description),e=this.metabox.truncate(this.metabox.swapVars(e),240),this.socialDescription.html(e)}},{key:"updateThumbnailPreview",value:function(){var e=(0,a.default)("#rank_math_post_thumbnail").attr("src"),t=this.metabox.getContent(),n=!!/<img(?:[^>]+)?>/.test(t)&&(0,a.default)(t).find("img:first").attr("src"),r=this.facebookImageField.val()||e||n||rankMath.defautOgImage,i=this.twitterImageField.val()||e||n||rankMath.defautOgImage;if("twitter"===this.currentNetwork&&this.useFacebook)i=r;else if(this.twitterImageStatus.find("img.cmb-file-field-image").length){var o=this.twitterImageStatus.siblings(".notice"),s=this.twitterImageStatus.find("img.cmb-file-field-image")[0];o.addClass("hidden"),(0,a.default)(s).on("load",function(){(200>s.naturalWidth||200>s.naturalHeight)&&o.removeClass("hidden")})}var u=this.facebookImageStatus.siblings(".notice"),c=this.facebookImageStatus.find("img.cmb-file-field-image");u.addClass("hidden"),"facebook"===this.currentNetwork&&this.facebookImageField.val()&&c.length&&(0,a.default)(c[0]).on("load",function(){(200>c[0].naturalWidth||200>c[0].naturalHeight)&&u.removeClass("hidden")});var l=(0,a.default)(".rank-math-social-preview-image");(0,a.default)(".facebook-thumbnail",l).attr("src",r),(0,a.default)(".twitter-thumbnail",l).attr("src",i),l.toggleClass("no-facebook-image",!r),l.toggleClass("no-twitter-image",!i),l.parents(".rank-math-social-preview-facebook").find(".error-msg").toggleClass("show",!r),l.parents(".rank-math-social-preview-twitter").find(".error-msg").toggleClass("show",!i),this.updateThumbnailOverlay()}},{key:"updateThumbnailOverlay",value:function(){var e=(0,a.default)(".rank-math-social-preview-image-overlay"),t=(0,a.default)('[name="rank_math_'+this.currentNetwork+'_enable_image_overlay"]:checked').val(),n=(0,a.default)('[name="rank_math_'+this.currentNetwork+'_image_overlay"]:checked').val(),r=!(0,a.default)(".rank-math-social-preview-image").hasClass("no-"+this.currentNetwork+"-image");"twitter"===this.currentNetwork&&this.useFacebook&&(n=(0,a.default)('[name="rank_math_facebook_image_overlay"]:checked').val(),r=!1);var i=(0,a.default)(".cmb2-id-rank-math-"+this.currentNetwork+"-enable-image-overlay"),o="on"===i.find("input:checked").val();i.toggle(r),i.find(".notice-warning").toggle(o),"on"===t?(e.attr("src",rankMath.overlayImages[n].url).show(),(0,a.default)(".cmb2-id-rank-math-"+this.currentNetwork+"-image-overlay").toggle(r)):e.hide()}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(5)),a=o(n(62));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elem=(0,i.default)("#rank_math_focus_keyword");var r=(0,a.default)(function(){t.updateFocusKeywords()},200),o=(0,a.default)(function(e,n){var r=e.find("li:last").prev(),i=t.assessor.assessFocusKeyword({elem:r,isPrimary:!1,keyword:n});t.checkList.setSecondaryKeywordStatus(i,r)},200);this.elem.on("content-loaded",function(){var e=n.elem.next("ul"),r=n.getFocusKeywords();(0,i.default)(e).find("li:gt(1)").each(function(){var e=(0,i.default)(this),n=t.assessor.assessFocusKeyword({elem:e,isPrimary:!1,keyword:r[e.index()-1]});t.checkList.setSecondaryKeywordStatus(n,e)})}),this.elem.tagEditor({autocomplete:1===rankMath.maxTags?null:this.getAutocompleteOptions(),sortable:!0,placeholder:this.elem.attr("placeholder"),onChange:function(e,t,n){1===n.length?t.find("li:not(.placeholder)").last().addClass("selected-fk"):t.find(".selected-fk").removeClass("selected-fk"),r()},onSelect:function(e,t){var n=e.parent();return!(!n.hasClass("selected-fk")&&""!==e.html()&&(t.find(".tag-editor-tag.active").length&&t.find("input").blur(),n.addClass("selected-fk").siblings().removeClass("selected-fk"),r(),1))},beforeTagDelete:function(e,t,n){return 1===n.length||(e.hasClass("selected-fk")&&t.find(">li").eq(1).addClass("selected-fk"),!0)},beforeTagSave:function(e,t,n,r,i){if(0!==n.length&&i)return o(t,i),i}}),this.elem.next().find(">li:not(.placeholder)").eq(1).addClass("selected-fk");var s=this.elem.parent();s.append(s.find(".cmb2-metabox-description"))}return r(e,[{key:"getAutocompleteOptions",value:function(){return{minLength:2,source:function(e,t){i.default.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:e.term,nolabels:"t",client:"hp",ds:"",lr:"lang_"+rankMath.locale,hl:rankMath.locale},success:function(e){t(i.default.map(e[1],function(e){return{value:(0,i.default)("<span>").html(e[0]).text()}}))}})}}}},{key:"getFocusKeywords",value:function(){var e=this.elem.tagEditor("getTags")[0];return e?e.tags:[]}},{key:"getFocusKeyword",value:function(){var e=this.elem.tagEditor("getTags")[0];if(!e)return{isPrimary:!0,keyword:""};var t=e.editor.find(".selected-fk").first();return t.length?{elem:t,isPrimary:1===t.index(),keyword:t.find(".tag-editor-tag").text()}:e.tags.length?{isPrimary:!0,keyword:e.tags[0]}:{isPrimary:!0,keyword:""}}},{key:"clearFocusKeywords",value:function(){this.elem.tagEditor("clearTags")}},{key:"addFocusKeyword",value:function(e){this.elem.tagEditor("addTag",e)}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(5))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.focusKeywords=t,this.modal=(0,a.default)("#rank-math-compare-keywords-wrapper"),this.holder=this.modal.find(".rank-math-keywords-fields"),this.iframe=this.modal.find("iframe.attachments-browser"),this.btnCompare=this.modal.find(".compare-keywords"),this.events()}return i(e,[{key:"events",value:function(){var e=this;(0,a.default)("#rank-math-compare-keywords-trigger").on("click",function(t){t.preventDefault();var n=e.focusKeywords.getFocusKeywords();e.holder.html(""),n.length?a.default.each(n,function(t,n){e.addNewField(n)}):e.addNewField(),e.modal.toggle(),e.btnCompare.trigger("click")}),this.modal.on("click",".media-modal-close",function(){e.modal.toggle()}),this.modal.on("click",".add-new-keywords",function(){e.addNewField()}),this.modal.on("click",".remove-keyword",function(e){(0,a.default)(e.currentTarget).parent().remove(),btnCompare.trigger("click")}),this.modal.on("click",".use-these-keywords",function(){e.focusKeywords.clearFocusKeywords(),e.holder.find("input").each(function(t,n){var r=(0,a.default)(n).val().trim();""!==r&&e.focusKeywords.addFocusKeyword(r)}),e.modal.toggle()}),this.btnCompare.on("click",function(){var t=[];if(e.holder.find("input").each(function(){var e=(0,a.default)(this).val().trim();""!==e&&t.push({keyword:e,geo:"",time:"today 12-m"})}),0===t.length)return!1;t={comparisonItem:t,category:0,property:""},e.iframe.attr("src",e.iframe.data("srcbase")+"&req="+encodeURIComponent(JSON.stringify(t)))}),this.holder.on("keydown","input",function(t){if(13===t.keyCode)return t.preventDefault(),e.btnCompare.trigger("click"),!1})}},{key:"addNewField",value:function(e){var t=(0,a.default)("<div/>"),n=(0,a.default)("<input/>",{type:"text",class:"widefat",value:e||""});t.append(n),t.append('<button class="button-small button-link button-link-delete remove-keyword"><span class="dashicons dashicons-trash"></span></button>'),this.holder.append(t),n.autocomplete(this.focusKeywords.getAutocompleteOptions()).focus()}}]),e}();t.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(5)),o=l(n(252)),s=l(n(62)),u=l(n(253)),c=l(n(254));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.elemMetabox=(0,a.default)("#rank_math_metabox"),e.elemSlug=(0,a.default)("#post_name"),e.elemTitle=(0,a.default)("#title"),e.elemDescription=(0,a.default)("#excerpt"),e.elemContent=(0,a.default)("#content"),e.elemPrice=(0,a.default)("#_sale_price"),e.elemRegPrice=(0,a.default)("#_regular_price"),e.researches=!1,e.isGutenbergAvailable=(0,c.default)(),e.testRequired={title:!0,description:!0,url:!0,content:!0},e.testOptional={title:!0,headings:!0,imagealt:!0,titleBeginning:!0,contentBeginning:!0,keywordDensity:!0,newKeyword:!0},e.init(),e.updateOthers(),e.postSerpEvents(),e.primaryTerm(),e.featuredImage(),e.linkSuggestions(),e.richSnippetIcon(),void 0!==window.ET_PageBuilder&&Backbone.Events.listenTo(window.ET_PageBuilder.Events,"et-pb-content-updated",function(){e.updateDescriptionPreview()}),e.isGutenbergAvailable&&new u.default(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"updateSlug",value:function(e){this.serpPermalinkField.val(e),this.elemSlug.val(e),(0,a.default)("#editable-post-name").text(e),(0,a.default)("#editable-post-name-full").text(e),this.isGutenbergAvailable&&e!==wp.data.select("core/editor").getEditedPostAttribute("slug")&&wp.data.dispatch("core/editor").editPost({slug:e})}},{key:"updateOthers",value:function(){var e=this;this.isGutenbergAvailable||(""===this.elemSlug.val()&&(0,a.default)("#editable-post-name-full").length&&this.elemSlug.val((0,a.default)("#editable-post-name-full").text()).trigger("input"),this.analyzeOnPage&&(0,a.default)(document).on("tinymce-editor-init",function(t,n){e.updatePreview()}))}},{key:"postSerpEvents",value:function(){var e=this;this.analyzeOnPage&&(this.elemContent.on("input change",(0,s.default)(function(){e.updateDescriptionPreview(),e.socialFields.updateThumbnailPreview()},500)),(0,a.default)(window).on("load",function(){!e.isGutenbergAvailable&&"undefined"!=typeof tinymce&&tinymce.activeEditor&&tinyMCE.editors.content.on("keyup change",(0,s.default)(function(t){e.updateDescriptionPreview(),e.socialFields.updateThumbnailPreview()},500))})),(0,a.default)(document).on("ajaxComplete",function(t,n,r){if("/admin-ajax.php"===r.url.substr(-15)){var i="";"string"==typeof r.data&&-1!==r.data.indexOf("action=sample-permalink")&&(i=""===n.responseText?e.elemTitle.val():(0,a.default)("<div>"+n.responseText+"</div>").find("#editable-post-name-full").text(),e.serpPermalinkField.val(i).trigger("input"))}}),this.elemPrice.on("input",(0,s.default)(function(){e.setVariable("wc_price",e.getWooCommerceProductPrice()),e.updateDescriptionPreview()},500)),this.elemRegPrice.on("input",(0,s.default)(function(){e.setVariable("wc_price",e.getWooCommerceProductPrice()),e.updateDescriptionPreview()},500))}},{key:"getWooCommerceProductPrice",value:function(){var e=this.elemPrice.val()?this.elemPrice.val():this.elemRegPrice.val();return accounting.formatMoney(e,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format})}},{key:"primaryTerm",value:function(){(0,a.default)("[data-primary-term]").each(function(){var e=(0,a.default)(this),t=e.val(),n=e.data("primary-term"),r=(0,a.default)("#"+n+"div"),i=(0,a.default)("#"+n+"checklist"),o=i.find("li"),s=i.find('input[type="checkbox"]:checked');o.addClass("rank-math-primary-term-li"),o.find("input").each(function(){var e=(0,a.default)(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+n+'"><span>Make Term Primary</span></span>')}),s.each(function(){var e=(0,a.default)(this).closest("li");e.addClass("term-checked"),n+"-"+t===e.attr("id")&&(e.addClass("term-marked-primary"),e.find(">label .rank-math-make-primary").prop("checked",!0))}),r.on("click",'input[type="checkbox"]',function(){var t=(0,a.default)(this).closest("li");if(t.toggleClass("term-checked"),1===i.find("li.term-checked").length||t.hasClass("term-marked-primary")&&!t.hasClass("term-checked")){var n=i.find("li.term-checked:first > label .rank-math-make-primary");n.length>0?n.trigger("click"):(o.removeClass("term-marked-primary"),o.find('input[type="radio"]').prop("checked",!1),e.val(""))}}),r.on("click",".rank-math-make-primary",function(){var t=(0,a.default)(this),n=t.closest("li");o.removeClass("term-marked-primary"),n.addClass("term-marked-primary"),e.val(t.val())}),i.on("wpListAddEnd",function(){i.find("li:not(.rank-math-primary-term-li)").addClass("rank-math-primary-term-li term-checked").find("input").each(function(){var e=(0,a.default)(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+n+'"><span>Make Term Primary</span></span>')})})})}},{key:"featuredImage",value:function(){var e=this;if(this.analyzeOnPage){var t=(0,a.default)("#postimagediv"),n=t.find(".hndle"),r=wp.media.featuredImage.frame();if(r.on("select",function(){var t=r.state().get("selection").first().toJSON(),i=(0,a.default)("#rank_math_post_thumbnail");200>t.width||200>t.height?0===(0,a.default)("#rank_math_image_warning").length&&(0,a.default)('<div id="rank_math_image_warning" class="notice notice-error notice-alt"><p>'+rankMath.featuredImageNotice+"</p></div>").insertAfter(n):(0,a.default)("#rank_math_image_warning").remove(),1>i.length&&(i=(0,a.default)('<img id="rank_math_post_thumbnail" />'),(0,a.default)(".facebook-thumbnail",".rank-math-social-preview-image").before(i)),i.attr("src","rank-math-facebook-thumbnail"in t.sizes?t.sizes["rank-math-facebook-thumbnail"].url:"large"in t.sizes?t.sizes.large.url:t.sizes.full.url),e.setFeaturedImage(t.alt)}),(0,a.default)("#postimagediv").on("click","#remove-post-thumbnail",function(){(0,a.default)("#rank_math_image_warning").remove(),(0,a.default)("#rank_math_post_thumbnail").remove(),e.setFeaturedImage("")}),this.assessor.paper.setThumbnailAlt(t.find("img").attr("alt")),this.socialFields.updateThumbnailPreview(),this.isGutenbergAvailable){var i=void 0,o=void 0;wp.data.subscribe(function(){var t=wp.data.select("core/editor").getEditedPostAttribute("featured_media");e.isValidMediaId(t)&&void 0!==(i=wp.data.select("core").getMedia(t))&&i!==o&&(o=i,e.setFeaturedImage(i.alt_text))})}}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&e>0}},{key:"setFeaturedImage",value:function(e){this.socialFields.updateThumbnailPreview(),this.assessor.paper.setThumbnailAlt(e),this.seoContentAssessments()}},{key:"linkSuggestions",value:function(){rankMath.postSettings.linkSuggestions&&(a.default.fn.extend({insertLink:function(e,t){var n=this[0],r="";if(n.selectionStart||"0"===n.selectionStart){var i=n.selectionStart,a=n.selectionEnd,o=n.scrollTop;r='<a href="'+e+'">'+n.value.substring(i,a)+"</a>",i===a&&(r='<a href="'+e+'">'+t+"</a>"),n.value=n.value.substring(0,i)+r+n.value.substring(a,n.value.length),n.focus(),n.selectionStart=i+r.length,n.selectionEnd=i+r.length,n.scrollTop=o}else n.value+=r='<a href="'+e+'">'+t+"</a>",n.focus()}}),"function"==typeof ClipboardJS&&new ClipboardJS(".suggestion-copy").on("success",function(e){var t=(0,a.default)(e.trigger).parent().next(".suggestion-title"),n=t.html();t.text("Link Copied"),setTimeout(function(){t.html(n)},1500)}),(0,a.default)(window).on("load",function(){if("object"!==("undefined"==typeof tinymce?"undefined":r(tinymce)))return!0;var e=null,t=null;(0,a.default)(".suggestion-insert").on("click",function(n){n.preventDefault();var r,i,o,s,u=(0,a.default)(this);if(u.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){e=tinymce.activeEditor,t=(0,a.default)(e.getBody());var c=e.selection.getContent()||"";if(t.find("a[data-mce-selected]").length){var l=(o=e.selection.getStart(),(s=e.dom.getParent(o,"a[href]"))||(i=e.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((r=i.match(/href="([^">]+)"/))&&r[1]&&(s=e.$('a[href="'+r[1]+'"]',o)[0]),s&&e.selection.select(s)),s);e.dom.setAttribs(l,{href:u.data("url")}),(0,a.default)(l).text()!==c&&e.insertContent(c)}else e.insertContent(c.length?'<a href="'+u.data("url")+'">'+c+"</a>":'<a href="'+u.data("url")+'">'+u.data("text")+"</a>")}else{var f=(0,a.default)("textarea.wp-editor-area:visible");f.length&&f.first().insertLink(u.data("url"),u.data("text"))}var p=u.closest(".suggestion-item").find(".suggestion-title"),d=p.html();p.text("Link Inserted"),u.addClass("clicked"),setTimeout(function(){var e,t,n,r;p.html(d),u.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=u,n=(e=p).data("fkcount")||0,(n+=1)===(r=e.data("fk")).length&&(n=0),e.find(">a").text(r[n]),e.data("fkcount",n),t.data("text",r[n]))},1500)})}))}},{key:"richSnippetIcon",value:function(){var e={off:"dashicons-image-filter",article:"dashicons-admin-post",book:"dashicons-book-alt",course:"dashicons-welcome-learn-more",event:"dashicons-calendar",jobposting:"dashicons-megaphone",local:"dashicons-store",music:"dashicons-format-audio",product:"dashicons-cart",recipe:"dashicons-carrot",restaurant:"dashicons-palmtree",video:"dashicons-format-video",person:"dashicons-admin-users",review:"dashicons-star-filled",service:"dashicons-admin-generic",software:"dashicons-index-card"},t=(0,a.default)('.rank-math-tabs-navigation a[href="#setting-panel-richsnippet"] .dashicons'),n=(0,a.default)("#_bsf_post_type");if((0,a.default)('#rank_math_rich_snippet, input[type="radio"][name="rank_math_rich_snippet"]').on("change",function(){var r="rank_math_rich_snippet"===(0,a.default)(this).attr("id")?(0,a.default)(this).val():(0,a.default)('input[type="radio"][name="rank_math_rich_snippet"]:checked').val();t.removeClass().addClass("dashicons "+e[r]),n.length&&"off"!==r&&n.val("0").trigger("change")}).trigger("change"),n.length){var r=(0,a.default)("#rank_math_rich_snippet"),i=(0,a.default)('input[name="rank_math_rich_snippet"][value="off"]');n.on("change",function(){"0"!==n.val()&&(r.val("off").trigger("change"),i.prop("checked",!0).trigger("change"))}).trigger("change")}}}]),t}();(0,a.default)(function(){new f})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=m(n(5));n(209),n(210);var a=m(n(93)),o=m(n(92)),s=m(n(136)),u=m(n(31)),c=m(n(62)),l=m(n(214)),f=m(n(218)),p=m(n(219)),d=m(n(220)),h=m(n(50)),v=m(n(145));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"init",value:function(){this.title="",this.permalink="",this.description="",this.variableMap=null,this.analyzeOnPage=null!==document.getElementById("rank-math-serp-checklist"),this.shouldAssess=!1,this.primaryResult={},this.serpCanonical=this.elemMetabox.find("#rank_math_canonical_url"),this.serpTitleField=this.elemMetabox.find("#rank_math_title"),this.serpPermalinkField=this.elemMetabox.find("#rank_math_permalink"),this.serpDescriptionField=this.elemMetabox.find("#rank_math_description"),this.serpWrapper=this.elemMetabox.find(".serp-preview"),this.serpBg=this.elemMetabox.find(".serp-preview-bg input"),this.serpTitle=this.serpWrapper.find(".serp-title"),this.serpPermalink=this.serpWrapper.find(".serp-url"),this.serpDescription=this.serpWrapper.find(".serp-description"),this.desktopSnippet=this.serpWrapper.find(".serp-snippet-data"),this.assessor=new Assessor({elemContent:this.elemContent,researches:this.researches}),this.analyzeOnPage&&(this.checkList=new l.default(this)),this.socialFields=new f.default(this),this.compareKeywords=new d.default(this.focusKeywords),this.focusKeywords=new p.default(this),this.wrapInGroup(),this.serpEvents(),this.updateEvents(),this.updatePreview(),this.initLengthIndicator(),rankMathAdmin.variableInserter(!1)}},{key:"wrapInGroup",value:function(){this.serpTitle.wrap('<div class="group"></div>'),this.serpPermalink.wrap('<div class="group"></div>'),this.serpDescription.wrap('<div class="group"></div>'),(0,i.default)(".cmb2-id-rank-math-title").insertAfter(this.serpTitle),(0,i.default)(".cmb2-id-rank-math-permalink").insertAfter(this.serpPermalink),(0,i.default)(".cmb2-id-rank-math-description").insertAfter(this.serpDescription),(0,i.default)(".group",this.serpWrapper).prepend('<span class="dashicons dashicons-no-alt serp-close"></span>')}},{key:"initLengthIndicator",value:function(){this.serpTitleField.lengthIndicator({minLength:15,maxLength:60,source:this.serpTitle}),this.serpPermalinkField.lengthIndicator({minLength:5,maxLength:75,source:this.serpPermalink}),this.serpDescriptionField.lengthIndicator({minLength:80,maxLength:160,source:this.serpDescription})}},{key:"serpEvents",value:function(){var e=this,t=this.elemMetabox.find(".rank-math-select-device");t.on("click",function(n){n.preventDefault();var r,a=(0,i.default)(n.currentTarget),o=a.hasClass("active");r=function(t){switch(t){case"desktop-preview":e.serpWrapper.removeClass("mobile-preview"),e.serpWrapper.addClass("desktop-preview expanded-preview");break;case"mobile-preview":e.serpWrapper.removeClass("desktop-preview"),e.serpWrapper.addClass("mobile-preview expanded-preview");break;default:e.serpWrapper.removeClass("mobile-preview expanded-preview"),e.serpWrapper.addClass("desktop-preview")}},t.removeClass("active"),o?r("normal"):a.hasClass("device-desktop")?(r("desktop-preview"),a.addClass("active")):a.hasClass("device-mobile")&&(r("mobile-preview"),a.addClass("active"))});var n=!0,r=this.elemMetabox.find(".rank-math-edit-snippet");this.elemMetabox.on("click",".rank-math-edit-snippet",function(t){t.preventDefault(),r.toggleClass("hidden active"),e.desktopSnippet.toggle();var i={type:"click",isHidden:n=!n};e.serpTitle.trigger(i),e.serpPermalink.trigger(i),e.serpDescription.trigger(i)}),this.elemMetabox.on("click",".serp-title, .serp-url, .serp-description, .serp-close",function(t){t.preventDefault();var a=(0,i.default)(t.target).parent();"isHidden"in t?a.toggleClass("active",!t.isHidden):(a.toggleClass("active"),0===e.serpWrapper.find(".group.active").length&&r.hasClass("active")&&(n=!n,r.toggleClass("hidden active")),3!==e.serpWrapper.find(".group.active").length||r.hasClass("active")||(n=!1,r.toggleClass("hidden active")))});var a=(0,i.default)("#rank_math_robots1");a.on("change",function(){a.is(":checked")?e.serpWrapper.addClass("noindex-preview"):e.serpWrapper.removeClass("noindex-preview")}).trigger("change"),(0,i.default)("textarea[data-autoresize]").each(function(){var e=(0,i.default)(this);e.on("keyup input",function(){e.css("height","auto").css("height",e.prop("scrollHeight"))})})}},{key:"updateEvents",value:function(){var e=this;this.serpTitleField.on("input",(0,c.default)(function(){e.updateTitlePreview()},500)).on("keypress",function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),(0,i.default)(e.target).closest(".cmb-row").prev().trigger("click"),!1}),this.elemTitle.on("input",(0,c.default)(function(){e.setVariable("title",e.elemTitle.val()),e.setVariable("term",e.elemTitle.val()),e.setVariable("author",e.elemTitle.val()),e.setVariable("name",e.elemTitle.val()),e.updateTitlePreview()},500)),this.serpPermalinkField.val(this.serpPermalinkField.val()||this.elemSlug.val()).on("input",(0,c.default)(function(){var t=decodeURIComponent(e.serpPermalinkField.val());e.updateSlug(t),e.updatePermalinkPreview()},500)).on("blur",function(){var t=(0,s.default)(e.serpPermalinkField.val());e.updateSlug(t)}).on("keypress",function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),(0,i.default)(e.target).closest(".cmb-row").prev().trigger("click"),!1}),this.elemSlug.on("input",(0,c.default)(function(){e.serpPermalinkField.val(e.elemSlug.val()).trigger("input")},500)),this.serpDescriptionField.on("input",(0,c.default)(function(){e.updateDescriptionPreview()},500)).on("keypress",function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),(0,i.default)(e.target).closest(".cmb-row").prev().trigger("click"),!1}),this.elemDescription.on("input",(0,c.default)(function(){e.updateDescriptionPreview()},500))}},{key:"updateSlug",value:function(e){this.serpPermalinkField.val(e),this.elemSlug.val(e)}},{key:"seoAssessments",value:function(e){if(!1!==this.shouldAssess){var t=null;"title"===e?t=this.assessor.assessTitle(this.title):"permalink"===e?t=this.assessor.assessPermalink(this.permalink):"description"===e?(this.assessor.paper.setDescription(this.description),t=this.assessor.assessFocusKeyword(this.focusKeywords.getFocusKeyword())):"content"===e&&(t=this.assessor.assessContent(this.description)),this.setKeywordStatus(t)}}},{key:"seoTitleAssessments",value:function(){this.seoAssessments("title")}},{key:"seoPermalinkAssessments",value:function(){this.seoAssessments("permalink")}},{key:"seoFocusKeywordAssessments",value:function(){this.seoAssessments("description")}},{key:"seoContentAssessments",value:function(){this.seoAssessments("content")}},{key:"seoAssessAll",value:function(){if(!1!==this.shouldAssess){this.assessor.paper.setTitle(this.title),this.assessor.paper.setPermalink(this.permalink),this.assessor.paper.setKeyword(this.focusKeywords.getFocusKeyword().keyword),this.assessor.paper.setDescription(this.description);var e=this.assessor.runAll();this.setKeywordStatus(e)}}},{key:"setKeywordStatus",value:function(e){if(!1!==this.analyzeOnPage){var t=this.focusKeywords.getFocusKeyword();if(t.isPrimary||void 0===t.elem)this.checkList.elem.show(),this.checkList.display(e);else{var n={keywordDensity:e.keywordDensity,keywordInContent:e.keywordInContent,keywordInSubheadings:e.keywordInSubheadings};"post"!==rankMath.objectType&&this.checkList.elem.hide(),this.checkList.hidePrimary(),this.checkList.display(n),this.checkList.setSecondaryKeywordStatus(n,t.elem),delete e.keywordDensity,delete e.keywordInContent,delete e.keywordInSubheadings,delete this.primaryResult.keywordInTitle,delete this.primaryResult.keywordInMetaDescription,delete this.primaryResult.keywordInPermalink,delete this.primaryResult.keywordIn10Content,delete this.primaryResult.keywordInImageAlt,delete this.primaryResult.keywordNotUsed,delete this.primaryResult.titleStartWithKeyword}this.primaryResult=i.default.extend({},this.primaryResult,e),this.checkList.setPrimaryKeywordStatus(this.primaryResult,this.focusKeywords.elem.next().find(">li:not(.placeholder)").eq(1))}}},{key:"updatePreview",value:function(){this.updateTitlePreview(),this.updatePermalinkPreview(),this.updateDescriptionPreview(),this.shouldAssess=this.analyzeOnPage,this.seoAssessAll(),this.focusKeywords.elem.trigger("content-loaded"),this.updateFocusKeywords()}},{key:"updateFocusKeywords",value:function(){var e=this.focusKeywords.getFocusKeyword().keyword;if(""!==e&&(this.setVariable("focuskw",e),this.serpBg.val(e)),this.focusKeywords.getFocusKeyword().isPrimary){this.shouldAssess=!1,this.updateDescriptionPreview(),this.shouldAssess=!0,this.seoFocusKeywordAssessments(),this.highlightKeywords(),this.updatePreviewCallbacks("description",this.description),this.updatePreviewCallbacks("focus-keyword",e);var t=(0,i.default)(".focus-keyword-link");t.length&&""!==e&&t.attr("href",t.attr("href").replace("%focus_keyword%",e).replace("%post_type%",rankMath.objectType).replace("%taxonomy%",rankMath.objectType))}else this.seoFocusKeywordAssessments()}},{key:"updateTitlePreview",value:function(){this.title=this.serpTitleField.val();var e=""!==this.title;this.title=this.swapVars(""!==this.title?this.title:this.serpTitle.data("format")),this.serpTitle.html(this.title),this.serpTitleField.attr("placeholder",e?this.title:this.serpTitle.data("format")),this.socialFields.facebookTitleField.attr("placeholder",this.title),this.socialFields.twitterTitleField.attr("placeholder",this.title),this.seoTitleAssessments(),this.highlightKeywords(this.serpTitle),this.updatePreviewCallbacks("title",this.title),this.serpTitle.trigger("rank-math-vars-replaced")}},{key:"updatePermalinkPreview",value:function(){var e=this.serpPermalink.data("format")||"",t=(0,s.default)(this.serpPermalinkField.val());this.permalink=""!==t?e.replace(/%(postname|pagename)%/,t).trimRight("/")+"/":"",this.serpCanonical.attr("placeholder",this.permalink),this.serpPermalink.html(this.permalink),this.seoPermalinkAssessments(),this.highlightKeywords(this.serpPermalink),this.updatePreviewCallbacks("permalink",this.permalink),this.serpPermalink.trigger("rank-math-vars-replaced")}},{key:"updateDescriptionPreview",value:function(){this.description=this.swapVars(this.getDescription()),this.serpDescription.html(this.description),this.serpDescriptionField.attr("placeholder",""!==this.description?this.description:this.serpDescription.data("format"));var e=this.getDescriptionTruncated(this.description,300);this.socialFields.facebookDescriptionField.attr("placeholder",e),this.socialFields.twitterDescriptionField.attr("placeholder",e),this.seoContentAssessments(),this.highlightKeywords(this.serpDescription),this.updatePreviewCallbacks("description",this.description),this.serpDescription.trigger("rank-math-vars-replaced")}},{key:"updatePreviewCallbacks",value:function(e,t){this.elemMetabox.trigger("rank-math-updating-preview-"+(e=e||"global")),this.elemMetabox.trigger("rank-math-"+e+"-updated",t)}},{key:"highlightKeywords",value:function(e){var t=this.focusKeywords.getFocusKeyword().keyword;!1!==t&&(e?(e.hasClass("serp-url")&&(t=this.assessor.paper.get("keywordPermalink")),e.rankMathUnhighlight(),e.rankMathHighlight(t)):(this.serpTitle.rankMathUnhighlight(),this.serpTitle.rankMathHighlight(t),this.serpPermalink.rankMathUnhighlight(),this.serpPermalink.rankMathHighlight(this.assessor.paper.get("keywordPermalink")),this.serpDescription.rankMathUnhighlight(),this.serpDescription.rankMathHighlight(t)))}},{key:"swapVars",value:function(e,t){var n=this;return(e=e||"")?(t=t||this.getMapObj(),(e=e.replace(" %page%","").replace("%sep% %sep%","%sep%")).replace(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/giu,function(e){var r=e.toLowerCase().replace(/%+/g,"");return["title","post_title","term","author","name"].includes(r)?n.isGutenbergAvailable?t.title:n.elemTitle.val():["description","tag_description","category_description","cat_description","author_description","user_description"].includes(r)?(0,i.default)("#description").val():["fk","focuskeyword","focuskw"].includes(r)?n.focusKeywords.getFocusKeyword().keyword:r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(r.includes("(")&&(r=r.split("(")[0]),r in t?t[r]:r)}).trim()):""}},{key:"getMapObj",value:function(){var e=this;return null!==this.variableMap?this.variableMap:(this.variableMap={},i.default.each(rankMath.variables,function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.variableMap[t]=n.example}),this.variableMap)}},{key:"setVariable",value:function(e,t){null!==this.variableMap?this.variableMap[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}},{key:"getContent",value:function(){return this.assessor.paper.get("content")}},{key:"getDescription",value:function(){this.assessor.refreshContent();var e=this.getExcerpt(),t=this.serpDescriptionField.val();if(""!==t)return(0,h.default)(t);if(!(0,o.default)(e)&&""!==e)return(0,h.default)(e);var n=this.serpDescription.data("format"),r=this.generateDescriptionFromContent(this.getContent());return this.setVariable("excerpt",r),(0,o.default)(n)||""===n?r:(0,h.default)(n)}},{key:"getExcerpt",value:function(){if(this.isGutenbergAvailable)return"";var e=this.elemDescription.val();return this.setVariable("excerpt",e),this.setVariable("excerpt_only",e),this.setVariable("wc_shortdesc",e),e}},{key:"generateDescriptionFromContent",value:function(e){if(""===e)return"";var t=this.focusKeywords.getFocusKeyword().keyword,n=(0,a.default)((0,v.default)(e,!0),function(e){return""!==i.default.trim(e)});if(!n.length)return"";if(""!==t){var r=(0,a.default)(n,function(e){return(0,u.default)(e.toLowerCase(),t)});if(r.length>0)return this.getDescriptionTruncated(r[0],160)}return this.getDescriptionTruncated(n[0],160)}},{key:"getDescriptionTruncated",value:function(e,t){return t?this.truncate(e.replace(/\r?\n|\r/g," "),t):e.replace(/\r?\n|\r/g," ")}},{key:"truncate",value:function(e,t){return e.length>t?e.substring(0,t):e}}]),e}();t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(62))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metabox=t,this.getPostAttribute=this.getPostAttribute.bind(this),this.refresh=this.refresh.bind(this),this._data=this.collectGutenbergData(this.getPostAttribute),this.subscribeToGutenberg()}return i(e,[{key:"collectGutenbergData",value:function(){return{content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),slug:this.getSlug(),excerpt:this.getPostAttribute("excerpt")}}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this.getPostAttribute("slug")||e}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=wp.data.select("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"subscribeToGutenberg",value:function(){this.subscriber=(0,a.default)(this.refresh,500),wp.data.subscribe(this.subscriber)}},{key:"refresh",value:function(){var e=this.collectGutenbergData();this.handleEditorChange(e),this._data=e}},{key:"handleEditorChange",value:function(e){this._data.title!==e.title&&(this.metabox.title=e.title,this.metabox.setVariable("title",e.title),this.metabox.setVariable("term",e.title),this.metabox.setVariable("author",e.title),this.metabox.setVariable("name",e.title),this.metabox.updateTitlePreview()),this._data.excerpt!==e.excerpt&&(this.metabox.setVariable("excerpt",e.excerpt),this.metabox.setVariable("excerpt_only",e.excerpt),this.metabox.setVariable("wc_shortdesc",e.excerpt),this.metabox.updateDescriptionPreview()),this._data.slug!==e.slug&&this.metabox.serpPermalinkField.val(e.slug).trigger("input"),this._data.content!==e.content&&(this.metabox.assessor.paper.setContent(e.content),this.metabox.updateDescriptionPreview(),this.metabox.socialFields.updateThumbnailPreview())}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(92)),i=a(n(96));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return!(0,r.default)(window.wp)&&!(0,r.default)(wp.data)&&!(0,r.default)(wp.data.select("core/editor"))&&(0,i.default)(wp.data.select("core/editor").getEditedPostAttribute)}}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=251)}([function(e,t){e.exports=Array.isArray},function(e,t,n){var r=n(75)("wks"),i=n(40),a=n(2).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(11),i=n(41);e.exports=n(4)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(22)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=jQuery},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(70)("wks"),i=n(71),a=n(6).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(34),i=n(68);e.exports=n(20)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(12),i=n(77),a=n(79),o=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(2),i=n(3),a=n(14),o=n(40)("src"),s=Function.toString,u=(""+s).split("toString");n(39).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||i(n,o,e[t]?""+e[t]:u.join(t+""))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||s.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){var r=n(89);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports={}},function(e,t,n){var r=n(35);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(36)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(181),i=n(43);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(0),i=n(30),a=n(130),o=n(60);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,n){var r=n(96),i=n(54);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},,function(e,t,n){var r=n(109),i=n(112)(r);e.exports=i},function(e,t,n){var r=n(51)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(0),i=n(129),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(52),i=n(26),a=n(105),o=n(140),s=n(141),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?o(n):0;var l=e.length;return 0>n&&(n=u(l+n,0)),a(e)?l>=n&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},function(e,t,n){var r=n(156),i=n(33);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(19),i=n(159),a=n(160),o=Object.defineProperty;t.f=n(20)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(70)("keys"),i=n(71);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(75)("keys"),i=n(40);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(3),i=n(13),a=n(22),o=n(43),s=n(1);e.exports=function(e,t,n){var u=s(e),c=n(o,u,""[e]),l=c[0],f=c[1];a(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t,n){var r=n(113),i=n(127),a=n(104),o=n(0),s=n(133);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(25),i=n(15);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&a>n;)e=e[i(t[n++])];return n&&n==a?e:void 0}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/<\/?[a-z][^>]*?>/gi,"\n")}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&9007199254740991>=e}},function(e,t,n){var r=n(115),i=n(116),a=n(117),o=n(118),s=n(119);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(120),i=n(57);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(24),i=n(211),a=n(144),o=Math.max,s=Math.min;e.exports=function(e,t,n){var u,c,l,f,p,d,h=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function k(e){var n=e-d;return void 0===d||n>=t||0>n||m&&e-h>=l}function b(){var e=i();if(k(e))return w(e);p=setTimeout(b,function(e){var n=t-(e-d);return m?s(n,l-(e-h)):n}(e))}function w(e){return p=void 0,g&&u?y(e):(u=c=void 0,f)}function x(){var e=i(),n=k(e);if(u=arguments,c=this,d=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(b,t),v?y(e):f}(d);if(m)return p=setTimeout(b,t),y(d)}return void 0===p&&(p=setTimeout(b,t)),f}return t=a(t)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?o(a(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=c=p=void 0},x.flush=function(){return void 0===p?f:w(i())},x}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(65),i=n(66),a=n(161),o=n(10),s=n(18),u=n(162),c=n(73),l=n(170),f=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,g){u(n,t,h);var y,k,b,w=function(e){if(!p&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",_="values"==v,P=!1,O=e.prototype,C=O[f]||O["@@iterator"]||v&&O[v],T=C||w(v),S=v?_?w("entries"):T:void 0,M="Array"==t&&O.entries||C;if(M&&(b=l(M.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[f]||o(b,f,d)),_&&C&&"values"!==C.name&&(P=!0,T=function(){return C.call(this)}),r&&!g||!p&&!P&&O[f]||o(O,f,T),s[t]=T,s[x]=d,v)if(y={values:_?T:w("values"),keys:m?T:w("keys"),entries:S},g)for(k in y)k in O||a(O,k,y[k]);else i(i.P+i.F*(p||P),t,y);return y}},function(e,t){e.exports=!0},function(e,t,n){var r=n(6),i=n(7),a=n(157),o=n(10),s=n(21),u=function(e,t,n){var c,l,f,p=e&u.F,d=e&u.G,h=e&u.S,v=e&u.P,m=e&u.B,g=e&u.W,y=d?i:i[t]||(i[t]={}),k=y.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;for(c in d&&(n=t),n)(l=!p&&b&&void 0!==b[c])&&s(y,c)||(f=l?b[c]:n[c],y[c]=d&&"function"!=typeof b[c]?n[c]:m&&l?a(f,r):g&&b[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?a(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[c]=f,e&u.R&&k&&!k[c]&&o(k,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(35),i=n(6).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(165),i=n(72);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(7),i=n(6),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(65)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(34).f,i=n(21),a=n(8)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(39),i=n(2),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(76)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){e.exports=!n(4)&&!n(22)(function(){return 7!=Object.defineProperty(n(78)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(9),i=n(2).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(184);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(83),i=n(45);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(14),i=n(23),a=n(188)(!1),o=n(44)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(11).f,i=n(14),a=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(9),i=n(80),a=n(1)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(148),i=n(149),a=n(176);e.exports=function(e,t){return r(e)||i(e,t)||a()}},function(e,t,n){e.exports=n(196)},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(132),i=n(102);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&t>e}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(107),i=n(108),a=n(47),o=n(0);e.exports=function(e,t){return(o(e)?r:i)(e,a(t,3))}},function(e,t,n){var r=n(61),i=n(47),a=n(146),o=n(0);e.exports=function(e,t){return(o(e)?r:a)(e,i(t,3))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,"").replace(i,"")};var r=/\[[^<>&\/\[\] - =]+?( [^\]]+?)?\]/g,i=/\[\/[^<>&\/\[\] - =]+?\]/g},function(e,t,n){var r=n(53),i=n(24);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(0);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,t,n){var r=n(52);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(25),i=n(103),a=n(0),o=n(91),s=n(54),u=n(15);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&o(p,l)&&(a(e)||i(e))}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(53),i=n(0),a=n(57);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},,function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},function(e,t,n){var r=n(28);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},function(e,t,n){var r=n(110),i=n(29);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(111)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===n(a[u],u,a))break}return t}}},function(e,t,n){var r=n(26);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},function(e,t,n){var r=n(114),i=n(126),a=n(59);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(55),i=n(56);e.exports=function(e,t,n,a){var o=n.length,s=o,u=!a;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=n[o])[0],f=e[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(a)var h=a(f,p,l,e,t,d);if(!(void 0===h?i(p,f,3,a,d):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(17),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return n>=0&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(17);e.exports=function(e){var t=this.__data__,n=r(t,e);return 0>n?void 0:t[n][1]}},function(e,t,n){var r=n(17);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(17);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return 0>i?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(55),i=n(121),a=n(123),o=n(124),s=n(99),u=n(0),c=n(100),l=n(101),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var y=u(e),k=u(t),b=y?p:s(e),w=k?p:s(t),x=(b=b==f?d:b)==d,_=(w=w==f?d:w)==d,P=b==w;if(P&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(P&&!x)return g||(g=new r),y||l(e)?i(e,t,n,v,m,g):a(e,t,b,n,v,m,g);if(!(1&n)){var O=x&&h.call(e,"__wrapped__"),C=_&&h.call(t,"__wrapped__");if(O||C){var T=O?e.value():e,S=C?t.value():t;return g||(g=new r),m(T,S,n,v,g)}}return!!P&&(g||(g=new r),o(e,t,n,v,m,g))}},function(e,t,n){var r=n(97),i=n(122),a=n(98);e.exports=function(e,t,n,o,s,u){var c=1&n,l=e.length,f=t.length;if(!(l==f||c&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var m=e[d],g=t[d];if(o)var y=c?o(g,m,d,t,e,u):o(m,g,d,e,t,u);if(void 0!==y){if(y)continue;h=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(m===e||s(m,e,n,o,u)))return v.push(t)})){h=!1;break}}else if(m!==g&&!s(m,g,n,o,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(125),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var v=u;++f<l;){var m=e[p=c[f]],g=t[p];if(a)var y=u?a(g,m,p,t,e,s):a(m,g,p,e,t,s);if(!(void 0===y?m===g||o(m,g,n,a,s):y)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var k=e.constructor,b=t.constructor;k!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof k&&k instanceof k&&"function"==typeof b&&b instanceof b)&&(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(51)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(58),i=n(29);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},function(e,t,n){var r=n(56),i=n(128),a=n(90),o=n(30),s=n(58),u=n(59),c=n(15);e.exports=function(e,t){return o(e)&&s(t)?u(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},function(e,t,n){var r=n(48);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(131)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(134),i=n(135),a=n(30),o=n(15);e.exports=function(e){return a(e)?r(o(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(48);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(e=(0,i.default)(e)).replace(/ /gi,"-").toLowerCase()};var r,i=(r=n(137))&&r.__esModule?r:{default:r}},function(e,t,n){var r=n(138),i=n(60),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=/[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]/g;e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},function(e,t,n){var r=n(139)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(142),i=n(29);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(61);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=u((0,i.autop)((0,o.default)(e)),t);return n.length>0?n:[e]};var r=s(n(94)),i=n(147),a=s(n(50)),o=s(n(95));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e,t){var n=[];t=t||!1;for(var i=/<p(?:[^>]+)?>(.*?)<\/p>/gi,o=void 0;null!==(o=i.exec(e));)n.push(o);return(0,r.default)(n,function(e){return t?(0,a.default)(e[1]):e[1]})}},function(e,t,n){var r=n(28),i=n(26);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,function(e,r,i){a[++n]=t(e,r,i)}),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"autop",function(){return c}),n.d(t,"removep",function(){return l});var r=n(87),i=n.n(r),a=(n(177),n(194),n(195),n(88)),o=n.n(a),s=(n(199),n(200),/(<((?=!--|!\[CDATA\[)((?=!-)!(?:-(?!->)[^\-]*)*(?:-->)?|!\[CDATA\[[^\]]*(?:](?!]>)[^\]]*)*?(?:]]>)?)|[^>]*>?))/);function u(e,t){for(var n=function(e){for(var t,n=[],r=e;t=r.match(s);)n.push(r.slice(0,t.index)),n.push(t[0]),r=r.slice(t.index+t[0].length);return r.length&&n.push(r),n}(e),r=!1,i=o()(t),a=1;n.length>a;a+=2)for(var u=0;i.length>u;u++){var c=i[u];if(-1!==n[a].indexOf(c)){n[a]=n[a].replace(RegExp(c,"g"),t[c]),r=!0;break}}return r&&(e=n.join("")),e}function c(e){var t=1>=arguments.length||void 0===arguments[1]||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var r=e.split("</pre>"),a=r.pop();e="";for(var o=0;r.length>o;o++){var s=r[o],c=s.indexOf("<pre");if(-1!==c){var l="<pre wp-pre-tag-"+o+"></pre>";n.push([l,s.substr(c)+"</pre>"]),e+=s.substr(0,c)+l}else e+=s}e+=a}var f="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=u(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(RegExp("(<"+f+"[s/>])","g"),"\n\n$1")).replace(RegExp("(</"+f+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));var p=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",p.forEach(function(t){e+="<p>"+t.replace(/^\n*|\n*$/g,"")+"</p>\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(RegExp("<p>s*(</?"+f+"[^>]*>)s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(RegExp("<p>s*(</?"+f+"[^>]*>)","g"),"$1")).replace(RegExp("(</?"+f+"[^>]*>)s*</p>","g"),"$1"),t&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,function(e){return e[0].replace(/\n/g,"<WPPreserveNewline />")})).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,function(e,t){return t?e:"<br />\n"})).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(RegExp("(</?"+f+"[^>]*>)s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach(function(t){var n=i()(t,2);e=e.replace(n[0],n[1])}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function l(e){var t="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=t+"|div|p",r=t+"|pre",i=[],a=!1,o=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,function(e){return i.push(e),"<wp-preserve>"})),-1!==e.indexOf("<pre")&&(a=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")})),-1!==e.indexOf("[caption")&&(o=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")})),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>.*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,function(e,t){return t&&-1!==t.indexOf("\n")?"\n\n":"\n"})).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(RegExp("\\s*<((?:"+r+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(RegExp("\\s*</("+r+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,function(e){return e.replace(/[\r\n]+/g,"")})),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),a&&(e=e.replace(/<wp-line-break>/g,"\n")),o&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),i.length&&(e=e.replace(/<wp-preserve>/g,function(){return i.shift()})),e):""}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t,n){var r=n(150);e.exports=function(e,t){var n=[],i=!0,a=!1,o=void 0;try{for(var s,u=r(e);!(i=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}return n}},function(e,t,n){e.exports=n(151)},function(e,t,n){n(152),n(171),e.exports=n(173)},function(e,t,n){n(153);for(var r=n(6),i=n(10),a=n(18),o=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;s.length>u;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[o]&&i(f,o,c),a[c]=a.Array}},function(e,t,n){"use strict";var r=n(154),i=n(155),a=n(18),o=n(32);e.exports=n(64)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]]):(this._t=void 0,i(1))},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(63);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(158);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){e.exports=!n(20)&&!n(36)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(35);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";var r=n(163),i=n(68),a=n(73),o={};n(10)(o,n(8)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(19),i=n(164),a=n(72),o=n(38)("IE_PROTO"),s=function(){},u=function(){var e,t=n(67)("iframe"),r=a.length;for(t.style.display="none",n(169).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(34),i=n(19),a=n(69);e.exports=n(20)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(21),i=n(32),a=n(166)(!1),o=n(38)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var r=n(32),i=n(167),a=n(168);e.exports=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(37),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(37),i=Math.max,a=Math.min;e.exports=function(e,t){return 0>(e=r(e))?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(21),i=n(74),a=n(38)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){"use strict";var r=n(172)(!0);n(64)(String,"String",function(e){this._t=e+"",this._i=0},function(){var e,t=this._t,n=this._i;return t.length>n?(e=r(t,n),this._i+=e.length,{value:e,done:!1}):{value:void 0,done:!0}})},function(e,t,n){var r=n(37),i=n(33);e.exports=function(e){return function(t,n){var a,o,s=i(t)+"",u=r(n),c=s.length;return 0>u||u>=c?e?"":void 0:55296>(a=s.charCodeAt(u))||a>56319||u+1===c||56320>(o=s.charCodeAt(u+1))||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var r=n(19),i=n(174);e.exports=n(7).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(175),i=n(8)("iterator"),a=n(18);e.exports=n(7).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},function(e,t,n){var r=n(63),i=n(8)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){for(var r=n(178),i=n(82),a=n(13),o=n(2),s=n(3),u=n(42),c=n(1),l=c("iterator"),f=c("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),v=0;h.length>v;v++){var m,g=h[v],y=d[g],k=o[g],b=k&&k.prototype;if(b&&(b[l]||s(b,l,p),b[f]||s(b,f,g),u[g]=p,y))for(m in r)b[m]||a(b,m,r[m],!0)}},function(e,t,n){"use strict";var r=n(179),i=n(180),a=n(42),o=n(23);e.exports=n(182)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]]):(this._t=void 0,i(1))},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(1)("unscopables"),i=Array.prototype;null==i[r]&&n(3)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(80);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(76),i=n(183),a=n(13),o=n(3),s=n(42),u=n(185),c=n(85),l=n(192),f=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,g){u(n,t,h);var y,k,b,w=function(e){if(!p&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",_="values"==v,P=!1,O=e.prototype,C=O[f]||O["@@iterator"]||v&&O[v],T=C||w(v),S=v?_?w("entries"):T:void 0,M="Array"==t&&O.entries||C;if(M&&(b=l(M.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[f]||o(b,f,d)),_&&C&&"values"!==C.name&&(P=!0,T=function(){return C.call(this)}),r&&!g||!p&&!P&&O[f]||o(O,f,T),s[t]=T,s[x]=d,v)if(y={values:_?T:w("values"),keys:m?T:w("keys"),entries:S},g)for(k in y)k in O||a(O,k,y[k]);else i(i.P+i.F*(p||P),t,y);return y}},function(e,t,n){var r=n(2),i=n(39),a=n(3),o=n(13),s=n(81),u=function(e,t,n){var c,l,f,p,d=e&u.F,h=e&u.G,v=e&u.P,m=e&u.B,g=h?r:e&u.S?r[t]||(r[t]={}):(r[t]||{}).prototype,y=h?i:i[t]||(i[t]={}),k=y.prototype||(y.prototype={});for(c in h&&(n=t),n)f=((l=!d&&g&&void 0!==g[c])?g:n)[c],p=m&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,g&&o(g,c,f,e&u.U),y[c]!=f&&a(y,c,p),v&&k[c]!=f&&(k[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(186),i=n(41),a=n(85),o={};n(3)(o,n(1)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(12),i=n(187),a=n(45),o=n(44)("IE_PROTO"),s=function(){},u=function(){var e,t=n(78)("iframe"),r=a.length;for(t.style.display="none",n(191).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(11),i=n(12),a=n(82);e.exports=n(4)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(23),i=n(189),a=n(190);e.exports=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(84),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(84),i=Math.max,a=Math.min;e.exports=function(e,t){return 0>(e=r(e))?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(14),i=n(193),a=n(44)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(43);e.exports=function(e){return Object(r(e))}},function(e,t,n){n(46)("split",2,function(e,t,r){"use strict";var i=n(86),a=r,o=[].push;if("".split(/.?/).length){var s=void 0===/()??/.exec("")[1];r=function(e,t){var n=this+"";if(void 0===e&&0===t)return[];if(!i(e))return a.call(n,e,t);var r,u,c,l,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,v=void 0===t?4294967295:t>>>0,m=RegExp(e.source,d+"g");for(s||(r=RegExp("^"+m.source+"$(?!\\s)",d));(u=m.exec(n))&&((c=u.index+u[0].length)<=h||(p.push(n.slice(h,u.index)),!s&&u.length>1&&u[0].replace(r,function(){for(f=1;arguments.length-2>f;f++)void 0===arguments[f]&&(u[f]=void 0)}),u.length>1&&n.length>u.index&&o.apply(p,u.slice(1)),l=u[0].length,h=c,v>p.length));)m.lastIndex===u.index&&m.lastIndex++;return h===n.length?!l&&m.test("")||p.push(""):p.push(n.slice(h)),p.length>v?p.slice(0,v):p}}return[function(n,i){var a=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,a,i):r.call(a+"",n,i)},r]})},function(e,t,n){n(46)("replace",2,function(e,t,n){return[function(r,i){"use strict";var a=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,a,i):n.call(a+"",r,i)},n]})},function(e,t,n){n(197),e.exports=n(7).Object.keys},function(e,t,n){var r=n(74),i=n(69);n(198)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(66),i=n(7),a=n(36);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",o)}},function(e,t,n){n(46)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):RegExp(n)[t](r+"")},n]})},function(e,t,n){var r=n(2),i=n(201),a=n(11).f,o=n(205).f,s=n(86),u=n(206),c=r.RegExp,l=c,f=c.prototype,p=/a/g,d=/a/g,h=new c(p)!==p;if(n(4)&&(!h||n(22)(function(){return d[n(1)("match")]=!1,c(p)!=p||c(d)==d||"/a/i"!=c(p,"i")}))){c=function(e,t){var n=this instanceof c,r=s(e),a=void 0===t;return!n&&r&&e.constructor===c&&a?e:i(h?new l(r&&!a?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&a?u.call(e):t),n?this:f,c)};for(var v=function(e){e in c||a(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},m=o(l),g=0;m.length>g;)v(m[g++]);f.constructor=c,c.prototype=f,n(13)(r,"RegExp",c)}n(207)("RegExp")},function(e,t,n){var r=n(9),i=n(202).set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},function(e,t,n){var r=n(9),i=n(12),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(81)(Function.call,n(203).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(204),i=n(41),a=n(23),o=n(79),s=n(14),u=n(77),c=Object.getOwnPropertyDescriptor;t.f=n(4)?c:function(e,t){if(e=a(e),t=o(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(83),i=n(45).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(12);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(2),i=n(11),a=n(4),o=n(1)("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},,function(e,t,n){"use strict";var r,i=(r=n(5))&&r.__esModule?r:{default:r};i.default.extend({rankMathHighlight:function(e,t,n,r){if(3===e.nodeType){var a=e.data.match(t);if(a){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(a.index);s.splitText(a[0].length);var u=s.cloneNode(!0);return o.appendChild(u),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var c=0;e.childNodes.length>c;c++)c+=i.default.rankMathHighlight(e.childNodes[c],t,n,r);return 0}}),i.default.fn.rankMathUnhighlight=function(e){var t={className:"highlight",element:"span"};return i.default.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},i.default.fn.rankMathHighlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(i.default.extend(n,t),void 0===e||""===e)return this;if(e.constructor===String&&(e=[e]),e=i.default.grep(e,function(e){return""!==e}),0===(e=i.default.map(e,function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")})).length)return this;var r=n.caseSensitive?"":"i",a="("+e.join("|")+")";n.wordsOnly&&(a="\\b"+a+"\\b");var o=RegExp(a,r);return this.each(function(){i.default.rankMathHighlight(this,o,n.element,n.className)})}},function(e,t,n){"use strict";var r,i=(r=n(5))&&r.__esModule?r:{default:r},a=document.createElement("div");i.default.fn.lengthIndicator=function(e){var t=this;e=i.default.extend({},{minLength:0,maxLength:1e3,source:null},e),t.wrap('<span class="length-indicator-wrapper"/>'),t.parent().append('<span class="length-indicator"><span/></span><span class="length-count">0 / '+e.maxLength+"</span>");var n=t.parent().find(".length-indicator"),r=n.find(">span"),o=t.parent().find(".length-count"),s=function(){var i=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),a.innerHTML=e,e=a.textContent,a.textContent=""),e}(null===e.source?t.val():e.source.text()).length;n.removeClass("invalid short"),r.css("left",Math.min(100,Math.floor(i/e.maxLength*100))+"%"),o.text(i+" / "+e.maxLength),i>e.minLength&&e.maxLength>=i||n.addClass("invalid")};t.on("input",s),null!==e.source&&e.source.on("rank-math-vars-replaced",s),s()}},function(e,t,n){var r=n(212);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(213),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t,n){var r;r=n(143),e.exports="object"==typeof r&&r&&r.Object===Object&&r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(5)),a=o(n(215));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elem=(0,i.default)("#rank-math-serp-checklist",t.elemMetabox),this.scoreElem=(0,i.default)('<div class="misc-pub-section rank-math-seo-score"><span class="score-text"><span class="dashicons dashicons-chart-area"></span> SEO: <strong>Not available</strong></span></div>'),this.scoreText=this.scoreElem.find("strong"),this.scoreField=(0,i.default)("#rank_math_seo_score"),this.fkScoreElem=(0,i.default)('<div class="rank-math-seo-score below-focus-keyword"><span class="score-text">Not available</span></div>'),this.fkScoreText=this.fkScoreElem.find("span"),(0,i.default)("#misc-publishing-actions").append(this.scoreElem),(0,i.default)(".cmb-td",".cmb2-id-rank-math-focus-keyword").append(this.fkScoreElem),this.events()}return r(e,[{key:"display",value:function(e){var t=this;i.default.each(e,function(e,n){var r=t.elem.find(".seo-check-"+e);r.removeClass("test-ok test-gallery test-fail test-empty test-looking veryEasy difficult veryDifficult"),r.addClass("test-"+n.status),r.show(),"calculateFleschReading"===e&&r.addClass(n.factors[2]),r.find("span:eq(0)").html(n.message)})}},{key:"setPrimaryKeywordStatus",value:function(e,t){t.removeClass("good-fk ok-fk bad-fk");var n=(0,a.default)(e,function(e,t,n){return!1===t&&(t={score:0}),e+t.score},0);status="bad-fk",n>80?status="good-fk":n>50&&(status="ok-fk"),t.removeClass("bad-fk ok-fk good-fk"),this.scoreElem.removeClass("bad-fk ok-fk good-fk"),this.fkScoreElem.removeClass("bad-fk ok-fk good-fk"),t.addClass(status),this.scoreElem.addClass(status),this.fkScoreElem.addClass(status),this.scoreText.html(n+" / 100"),this.fkScoreText.html(n+" / 100"),this.scoreField.val(parseInt(n))}},{key:"setSecondaryKeywordStatus",value:function(e,t){t.removeClass("good-fk ok-fk bad-fk");var n=(0,a.default)(e,function(e,t){return e+("ok"===t.status?1:0)},0);t.addClass(3===n?"good-fk":2===n?"ok-fk":"bad-fk")}},{key:"hidePrimary",value:function(){this.elem.find("li.is-primary").hide()}},{key:"events",value:function(){var e=this;this.elem.on("click",".group-handle",function(t){t.preventDefault();var n=(0,i.default)(t.target).closest(".rank-math-serp-group"),r={};n.toggleClass("state-open state-closed"),e.updateGroupStatus(n),e.elem.find(">.rank-math-serp-group").each(function(){var e=(0,i.default)(this);r[e.data("id")]=e.hasClass("state-closed")?"closed":"open"}),i.default.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_save_checklist_layout",security:rankMath.security,layout:r}})})}},{key:"updateGroupStatus",value:function(e){(e=e||(0,i.default)(".rank-math-serp-group")).each(function(){var e=(0,i.default)(this);1>e.find("li.test-fail").length&&1>e.find("li.test-empty").length?e.find(".group-status").addClass("passed"):e.find(".group-status").removeClass("passed")})}}]),e}();t.default=s},function(e,t,n){var r=n(216),i=n(28),a=n(47),o=n(217),s=n(0);e.exports=function(e,t,n){var u=s(e)?r:o,c=3>arguments.length;return u(e,a(t,4),n,c,i)}},function(e,t){e.exports=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}},function(e,t){e.exports=function(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(5))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metabox=t,this.currentNetwork="facebook",this.useFacebook=!0,this.shouldUpdatePreview=!1,this.facebookTitleField=t.elemMetabox.find("#rank_math_facebook_title"),this.facebookDescriptionField=t.elemMetabox.find("#rank_math_facebook_description"),this.twitterTitleField=t.elemMetabox.find("#rank_math_twitter_title"),this.twitterDescriptionField=t.elemMetabox.find("#rank_math_twitter_description"),this.facebookImageField=t.elemMetabox.find("#rank_math_facebook_image"),this.twitterImageField=t.elemMetabox.find("#rank_math_twitter_image"),this.facebookImageStatus=t.elemMetabox.find("#rank_math_facebook_image-status"),this.twitterImageStatus=t.elemMetabox.find("#rank_math_twitter_image-status"),this.socialWrapper=t.elemMetabox.find(".rank-math-social-preview"),this.socialPreview=this.socialWrapper.find(".rank-math-social-preview-item"),this.socialTitle=this.socialWrapper.find(".rank-math-social-preview-title"),this.socialDescription=this.socialWrapper.find(".rank-math-social-preview-description"),this.events(),this.shouldUpdatePreview=!0,this.updatePreview()}return i(e,[{key:"events",value:function(){var e=this;this.facebookTitleField.on("input",function(){e.updateTitlePreview()}),this.facebookDescriptionField.on("input",function(){e.updateDescriptionPreview()}),this.facebookImageField.on("input",function(){e.updateThumbnailPreview()}),this.twitterTitleField.on("input",function(){e.updateTitlePreview()}),this.twitterDescriptionField.on("input",function(){e.updateDescriptionPreview()}),this.twitterImageField.on("input",function(){e.updateThumbnailPreview()});var t=(0,a.default)(".rank-math-social-preview-button"),n=t.find(">span");t.on("click",function(t){t.preventDefault(),n.toggleClass("dashicons-arrow-down dashicons-arrow-up"),e.updatePreview(),e.socialWrapper.toggleClass("open"),e.socialPreview.slideToggle()});var r=(0,a.default)("#rank_math_twitter_card_type");(0,a.default)(".preview-network").on("click",function(n){(0,a.default)(n.target).hasClass("tab-facebook")?t.show():r.trigger("change"),e.updatePreview()}),r.on("change",function(){var n=r.val();"player"===n&&(0,a.default)(".cmb2-id-rank-math-twitter-image, .cmb2-id-rank-math-twitter-title, .cmb2-id-rank-math-twitter-description").show();var i="player"===n||"app"===n;t.toggle(!i),(0,a.default)(".cmb2-id-rank-math-twitter-use-facebook").toggle(!i),e.updatePreview()}).trigger("change");var i=(0,a.default)("#rank_math_twitter_use_facebook2");(0,a.default)("#rank_math_twitter_use_facebook1, #rank_math_twitter_use_facebook2").on("input change",function(){e.useFacebook=i.is(":checked"),e.updatePreview()}).trigger("change"),(0,a.default)(".cmb2-id-rank-math-facebook-enable-image-overlay, .cmb2-id-rank-math-facebook-image-overlay, .cmb2-id-rank-math-twitter-enable-image-overlay, .cmb2-id-rank-math-twitter-image-overlay").on("change","input",function(){e.updateThumbnailOverlay()}),(0,a.default)(document).on("cmb_media_modal_select",function(t,n,r){"rank_math_facebook_image"!==r.field&&"rank_math_twitter_image"!==r.field||e.updateThumbnailPreview()}),(0,a.default)(document).on("cmb_init",function(t,n){n.$metabox.on("click",".cmb2-remove-file-button",function(){e.updateThumbnailPreview()})})}},{key:"updatePreview",value:function(){!1!==this.shouldUpdatePreview&&(this.currentNetwork=(0,a.default)(".preview-network.tab-active").attr("href").replace("#setting-panel-social-",""),this.socialWrapper.removeClass(),this.socialWrapper.addClass("rank-math-social-preview rank-math-social-preview-"+this.currentNetwork),"twitter"===this.currentNetwork&&this.socialWrapper.addClass((0,a.default)("#rank_math_twitter_card_type").val()),this.updateTitlePreview(),this.updateDescriptionPreview(),this.updateThumbnailPreview())}},{key:"updateTitlePreview",value:function(){var e=this[this.currentNetwork+"TitleField"].val()||this.metabox.title;"twitter"===this.currentNetwork&&this.useFacebook&&(e=this.facebookTitleField.val()||this.metabox.title),e=this.metabox.truncate(this.metabox.swapVars(e),90),this.socialTitle.html(e)}},{key:"updateDescriptionPreview",value:function(){var e=this[this.currentNetwork+"DescriptionField"].val()||this.description;"twitter"===this.currentNetwork&&this.useFacebook&&(e=this.facebookDescriptionField.val()||this.metabox.description),e=this.metabox.truncate(this.metabox.swapVars(e),240),this.socialDescription.html(e)}},{key:"updateThumbnailPreview",value:function(){var e=(0,a.default)("#rank_math_post_thumbnail").attr("src"),t=this.metabox.getContent(),n=!!/<img(?:[^>]+)?>/.test(t)&&(0,a.default)(t).find("img:first").attr("src"),r=this.facebookImageField.val()||e||n||rankMath.defautOgImage,i=this.twitterImageField.val()||e||n||rankMath.defautOgImage;if("twitter"===this.currentNetwork&&this.useFacebook)i=r;else if(this.twitterImageStatus.find("img.cmb-file-field-image").length){var o=this.twitterImageStatus.siblings(".notice"),s=this.twitterImageStatus.find("img.cmb-file-field-image")[0];o.addClass("hidden"),(0,a.default)(s).on("load",function(){(200>s.naturalWidth||200>s.naturalHeight)&&o.removeClass("hidden")})}var u=this.facebookImageStatus.siblings(".notice"),c=this.facebookImageStatus.find("img.cmb-file-field-image");u.addClass("hidden"),"facebook"===this.currentNetwork&&this.facebookImageField.val()&&c.length&&(0,a.default)(c[0]).on("load",function(){(200>c[0].naturalWidth||200>c[0].naturalHeight)&&u.removeClass("hidden")});var l=(0,a.default)(".rank-math-social-preview-image");(0,a.default)(".facebook-thumbnail",l).attr("src",r),(0,a.default)(".twitter-thumbnail",l).attr("src",i),l.toggleClass("no-facebook-image",!r),l.toggleClass("no-twitter-image",!i),l.parents(".rank-math-social-preview-facebook").find(".error-msg").toggleClass("show",!r),l.parents(".rank-math-social-preview-twitter").find(".error-msg").toggleClass("show",!i),this.updateThumbnailOverlay()}},{key:"updateThumbnailOverlay",value:function(){var e=(0,a.default)(".rank-math-social-preview-image-overlay"),t=(0,a.default)('[name="rank_math_'+this.currentNetwork+'_enable_image_overlay"]:checked').val(),n=(0,a.default)('[name="rank_math_'+this.currentNetwork+'_image_overlay"]:checked').val(),r=!(0,a.default)(".rank-math-social-preview-image").hasClass("no-"+this.currentNetwork+"-image");"twitter"===this.currentNetwork&&this.useFacebook&&(n=(0,a.default)('[name="rank_math_facebook_image_overlay"]:checked').val(),r=!1);var i=(0,a.default)(".cmb2-id-rank-math-"+this.currentNetwork+"-enable-image-overlay"),o="on"===i.find("input:checked").val();i.toggle(r),i.find(".notice-warning").toggle(o),"on"===t?(e.attr("src",rankMath.overlayImages[n].url).show(),(0,a.default)(".cmb2-id-rank-math-"+this.currentNetwork+"-image-overlay").toggle(r)):e.hide()}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(5)),a=o(n(62));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elem=(0,i.default)("#rank_math_focus_keyword");var r=(0,a.default)(function(){t.updateFocusKeywords()},200),o=(0,a.default)(function(e,n){var r=e.find("li:last").prev(),i=t.assessor.assessFocusKeyword({elem:r,isPrimary:!1,keyword:n});t.checkList.setSecondaryKeywordStatus(i,r)},200);this.elem.on("content-loaded",function(){var e=n.elem.next("ul"),r=n.getFocusKeywords();(0,i.default)(e).find("li:gt(1)").each(function(){var e=(0,i.default)(this),n=t.assessor.assessFocusKeyword({elem:e,isPrimary:!1,keyword:r[e.index()-1]});t.checkList.setSecondaryKeywordStatus(n,e)})}),this.elem.tagEditor({autocomplete:1===rankMath.maxTags?null:this.getAutocompleteOptions(),sortable:!0,placeholder:this.elem.attr("placeholder"),onChange:function(e,t,n){1===n.length?t.find("li:not(.placeholder)").last().addClass("selected-fk"):t.find(".selected-fk").removeClass("selected-fk"),r()},onSelect:function(e,t){var n=e.parent();return!(!n.hasClass("selected-fk")&&""!==e.html()&&(t.find(".tag-editor-tag.active").length&&t.find("input").blur(),n.addClass("selected-fk").siblings().removeClass("selected-fk"),r(),1))},beforeTagDelete:function(e,t,n){return 1===n.length||(e.hasClass("selected-fk")&&t.find(">li").eq(1).addClass("selected-fk"),!0)},beforeTagSave:function(e,t,n,r,i){if(0!==n.length&&i)return o(t,i),i}}),this.elem.next().find(">li:not(.placeholder)").eq(1).addClass("selected-fk");var s=this.elem.parent();s.append(s.find(".cmb2-metabox-description"))}return r(e,[{key:"getAutocompleteOptions",value:function(){return{minLength:2,source:function(e,t){i.default.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:e.term,nolabels:"t",client:"hp",ds:"",lr:"lang_"+rankMath.locale,hl:rankMath.locale},success:function(e){t(i.default.map(e[1],function(e){return{value:(0,i.default)("<span>").html(e[0]).text()}}))}})}}}},{key:"getFocusKeywords",value:function(){var e=this.elem.tagEditor("getTags")[0];return e?e.tags:[]}},{key:"getFocusKeyword",value:function(){var e=this.elem.tagEditor("getTags")[0];if(!e)return{isPrimary:!0,keyword:""};var t=e.editor.find(".selected-fk").first();return t.length?{elem:t,isPrimary:1===t.index(),keyword:t.find(".tag-editor-tag").text()}:e.tags.length?{isPrimary:!0,keyword:e.tags[0]}:{isPrimary:!0,keyword:""}}},{key:"clearFocusKeywords",value:function(){this.elem.tagEditor("clearTags")}},{key:"addFocusKeyword",value:function(e){this.elem.tagEditor("addTag",e)}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(5))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.focusKeywords=t,this.modal=(0,a.default)("#rank-math-compare-keywords-wrapper"),this.holder=this.modal.find(".rank-math-keywords-fields"),this.iframe=this.modal.find("iframe.attachments-browser"),this.btnCompare=this.modal.find(".compare-keywords"),this.events()}return i(e,[{key:"events",value:function(){var e=this;(0,a.default)("#rank-math-compare-keywords-trigger").on("click",function(t){t.preventDefault();var n=e.focusKeywords.getFocusKeywords();e.holder.html(""),n.length?a.default.each(n,function(t,n){e.addNewField(n)}):e.addNewField(),e.modal.toggle(),e.btnCompare.trigger("click")}),this.modal.on("click",".media-modal-close",function(){e.modal.toggle()}),this.modal.on("click",".add-new-keywords",function(){e.addNewField()}),this.modal.on("click",".remove-keyword",function(e){(0,a.default)(e.currentTarget).parent().remove(),btnCompare.trigger("click")}),this.modal.on("click",".use-these-keywords",function(){e.focusKeywords.clearFocusKeywords(),e.holder.find("input").each(function(t,n){var r=(0,a.default)(n).val().trim();""!==r&&e.focusKeywords.addFocusKeyword(r)}),e.modal.toggle()}),this.btnCompare.on("click",function(){var t=[];if(e.holder.find("input").each(function(){var e=(0,a.default)(this).val().trim();""!==e&&t.push({keyword:e,geo:"",time:"today 12-m"})}),0===t.length)return!1;t={comparisonItem:t,category:0,property:""},e.iframe.attr("src",e.iframe.data("srcbase")+"&req="+encodeURIComponent(JSON.stringify(t)))}),this.holder.on("keydown","input",function(t){if(13===t.keyCode)return t.preventDefault(),e.btnCompare.trigger("click"),!1})}},{key:"addNewField",value:function(e){var t=(0,a.default)("<div/>"),n=(0,a.default)("<input/>",{type:"text",class:"widefat",value:e||""});t.append(n),t.append('<button class="button-small button-link button-link-delete remove-keyword"><span class="dashicons dashicons-trash"></span></button>'),this.holder.append(t),n.autocomplete(this.focusKeywords.getAutocompleteOptions()).focus()}}]),e}();t.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(5)),o=l(n(252)),s=l(n(62)),u=l(n(253)),c=l(n(254));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.elemMetabox=(0,a.default)("#rank_math_metabox"),e.elemSlug=(0,a.default)("#post_name"),e.elemTitle=(0,a.default)("#title"),e.elemDescription=(0,a.default)("#excerpt"),e.elemContent=(0,a.default)("#content"),e.elemPrice=(0,a.default)("#_sale_price"),e.elemRegPrice=(0,a.default)("#_regular_price"),e.researches=!1,e.isGutenbergAvailable=(0,c.default)(),e.testRequired={title:!0,description:!0,url:!0,content:!0},e.testOptional={title:!0,headings:!0,imagealt:!0,titleBeginning:!0,contentBeginning:!0,keywordDensity:!0,newKeyword:!0},e.init(),e.updateOthers(),e.postSerpEvents(),e.primaryTerm(),e.featuredImage(),e.linkSuggestions(),e.richSnippetIcon(),void 0!==window.ET_PageBuilder&&Backbone.Events.listenTo(window.ET_PageBuilder.Events,"et-pb-content-updated",function(){e.updateDescriptionPreview()}),e.isGutenbergAvailable&&new u.default(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"updateSlug",value:function(e){this.serpPermalinkField.val(e),this.elemSlug.val(e),(0,a.default)("#editable-post-name").text(e),(0,a.default)("#editable-post-name-full").text(e),this.isGutenbergAvailable&&e!==wp.data.select("core/editor").getEditedPostAttribute("slug")&&wp.data.dispatch("core/editor").editPost({slug:e})}},{key:"updateOthers",value:function(){var e=this;this.isGutenbergAvailable||(""===this.elemSlug.val()&&(0,a.default)("#editable-post-name-full").length&&this.elemSlug.val((0,a.default)("#editable-post-name-full").text()).trigger("input"),this.analyzeOnPage&&(0,a.default)(document).on("tinymce-editor-init",function(t,n){e.updatePreview()}))}},{key:"postSerpEvents",value:function(){var e=this;this.analyzeOnPage&&(this.elemContent.on("input change",(0,s.default)(function(){e.updateDescriptionPreview(),e.socialFields.updateThumbnailPreview()},500)),(0,a.default)(window).on("load",function(){!e.isGutenbergAvailable&&"undefined"!=typeof tinymce&&tinymce.activeEditor&&tinyMCE.editors.content.on("keyup change",(0,s.default)(function(t){e.updateDescriptionPreview(),e.socialFields.updateThumbnailPreview()},500))})),(0,a.default)(document).on("ajaxComplete",function(t,n,r){if("/admin-ajax.php"===r.url.substr(-15)){var i="";"string"==typeof r.data&&-1!==r.data.indexOf("action=sample-permalink")&&(i=""===n.responseText?e.elemTitle.val():(0,a.default)("<div>"+n.responseText+"</div>").find("#editable-post-name-full").text(),e.serpPermalinkField.val(i).trigger("input"))}}),this.elemPrice.on("input",(0,s.default)(function(){e.setVariable("wc_price",e.getWooCommerceProductPrice()),e.updateDescriptionPreview()},500)),this.elemRegPrice.on("input",(0,s.default)(function(){e.setVariable("wc_price",e.getWooCommerceProductPrice()),e.updateDescriptionPreview()},500))}},{key:"getWooCommerceProductPrice",value:function(){var e=this.elemPrice.val()?this.elemPrice.val():this.elemRegPrice.val();return accounting.formatMoney(e,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format})}},{key:"primaryTerm",value:function(){(0,a.default)("[data-primary-term]").each(function(){var e=(0,a.default)(this),t=e.val(),n=e.data("primary-term"),r=(0,a.default)("#"+n+"div"),i=(0,a.default)("#"+n+"checklist"),o=i.find("li"),s=i.find('input[type="checkbox"]:checked');o.addClass("rank-math-primary-term-li"),o.find("input").each(function(){var e=(0,a.default)(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+n+'"><span>Make Term Primary</span></span>')}),s.each(function(){var e=(0,a.default)(this).closest("li");e.addClass("term-checked"),n+"-"+t===e.attr("id")&&(e.addClass("term-marked-primary"),e.find(">label .rank-math-make-primary").prop("checked",!0))}),r.on("click",'input[type="checkbox"]',function(){var t=(0,a.default)(this).closest("li");if(t.toggleClass("term-checked"),1===i.find("li.term-checked").length||t.hasClass("term-marked-primary")&&!t.hasClass("term-checked")){var n=i.find("li.term-checked:first > label .rank-math-make-primary");n.length>0?n.trigger("click"):(o.removeClass("term-marked-primary"),o.find('input[type="radio"]').prop("checked",!1),e.val(""))}}),r.on("click",".rank-math-make-primary",function(){var t=(0,a.default)(this),n=t.closest("li");o.removeClass("term-marked-primary"),n.addClass("term-marked-primary"),e.val(t.val())}),i.on("wpListAddEnd",function(){i.find("li:not(.rank-math-primary-term-li)").addClass("rank-math-primary-term-li term-checked").find("input").each(function(){var e=(0,a.default)(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+n+'"><span>Make Term Primary</span></span>')})})})}},{key:"featuredImage",value:function(){var e=this;if(this.analyzeOnPage){var t=(0,a.default)("#postimagediv"),n=t.find(".hndle"),r=wp.media.featuredImage.frame();if(r.on("select",function(){var t=r.state().get("selection").first().toJSON(),i=(0,a.default)("#rank_math_post_thumbnail");200>t.width||200>t.height?0===(0,a.default)("#rank_math_image_warning").length&&(0,a.default)('<div id="rank_math_image_warning" class="notice notice-error notice-alt"><p>'+rankMath.featuredImageNotice+"</p></div>").insertAfter(n):(0,a.default)("#rank_math_image_warning").remove(),1>i.length&&(i=(0,a.default)('<img id="rank_math_post_thumbnail" />'),(0,a.default)(".facebook-thumbnail",".rank-math-social-preview-image").before(i)),i.attr("src","large"in t.sizes?t.sizes.large.url:t.sizes.full.url),e.setFeaturedImage(t.alt)}),(0,a.default)("#postimagediv").on("click","#remove-post-thumbnail",function(){(0,a.default)("#rank_math_image_warning").remove(),(0,a.default)("#rank_math_post_thumbnail").remove(),e.setFeaturedImage("")}),this.assessor.paper.setThumbnailAlt(t.find("img").attr("alt")),this.socialFields.updateThumbnailPreview(),this.isGutenbergAvailable){var i=void 0,o=void 0;wp.data.subscribe(function(){var t=wp.data.select("core/editor").getEditedPostAttribute("featured_media");e.isValidMediaId(t)&&void 0!==(i=wp.data.select("core").getMedia(t))&&i!==o&&(o=i,e.setFeaturedImage(i.alt_text))})}}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&e>0}},{key:"setFeaturedImage",value:function(e){this.socialFields.updateThumbnailPreview(),this.assessor.paper.setThumbnailAlt(e),this.seoContentAssessments()}},{key:"linkSuggestions",value:function(){rankMath.postSettings.linkSuggestions&&(a.default.fn.extend({insertLink:function(e,t){var n=this[0],r="";if(n.selectionStart||"0"===n.selectionStart){var i=n.selectionStart,a=n.selectionEnd,o=n.scrollTop;r='<a href="'+e+'">'+n.value.substring(i,a)+"</a>",i===a&&(r='<a href="'+e+'">'+t+"</a>"),n.value=n.value.substring(0,i)+r+n.value.substring(a,n.value.length),n.focus(),n.selectionStart=i+r.length,n.selectionEnd=i+r.length,n.scrollTop=o}else n.value+=r='<a href="'+e+'">'+t+"</a>",n.focus()}}),"function"==typeof ClipboardJS&&new ClipboardJS(".suggestion-copy").on("success",function(e){var t=(0,a.default)(e.trigger).parent().next(".suggestion-title"),n=t.html();t.text("Link Copied"),setTimeout(function(){t.html(n)},1500)}),(0,a.default)(window).on("load",function(){if("object"!==("undefined"==typeof tinymce?"undefined":r(tinymce)))return!0;var e=null,t=null;(0,a.default)(".suggestion-insert").on("click",function(n){n.preventDefault();var r,i,o,s,u=(0,a.default)(this);if(u.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){e=tinymce.activeEditor,t=(0,a.default)(e.getBody());var c=e.selection.getContent()||"";if(t.find("a[data-mce-selected]").length){var l=(o=e.selection.getStart(),(s=e.dom.getParent(o,"a[href]"))||(i=e.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((r=i.match(/href="([^">]+)"/))&&r[1]&&(s=e.$('a[href="'+r[1]+'"]',o)[0]),s&&e.selection.select(s)),s);e.dom.setAttribs(l,{href:u.data("url")}),(0,a.default)(l).text()!==c&&e.insertContent(c)}else e.insertContent(c.length?'<a href="'+u.data("url")+'">'+c+"</a>":'<a href="'+u.data("url")+'">'+u.data("text")+"</a>")}else{var f=(0,a.default)("textarea.wp-editor-area:visible");f.length&&f.first().insertLink(u.data("url"),u.data("text"))}var p=u.closest(".suggestion-item").find(".suggestion-title"),d=p.html();p.text("Link Inserted"),u.addClass("clicked"),setTimeout(function(){var e,t,n,r;p.html(d),u.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=u,n=(e=p).data("fkcount")||0,(n+=1)===(r=e.data("fk")).length&&(n=0),e.find(">a").text(r[n]),e.data("fkcount",n),t.data("text",r[n]))},1500)})}))}},{key:"richSnippetIcon",value:function(){var e={off:"dashicons-image-filter",article:"dashicons-admin-post",book:"dashicons-book-alt",course:"dashicons-welcome-learn-more",event:"dashicons-calendar",jobposting:"dashicons-megaphone",local:"dashicons-store",music:"dashicons-format-audio",product:"dashicons-cart",recipe:"dashicons-carrot",restaurant:"dashicons-palmtree",video:"dashicons-format-video",person:"dashicons-admin-users",review:"dashicons-star-filled",service:"dashicons-admin-generic",software:"dashicons-index-card"},t=(0,a.default)('.rank-math-tabs-navigation a[href="#setting-panel-richsnippet"] .dashicons'),n=(0,a.default)("#_bsf_post_type");if((0,a.default)('#rank_math_rich_snippet, input[type="radio"][name="rank_math_rich_snippet"]').on("change",function(){var r="rank_math_rich_snippet"===(0,a.default)(this).attr("id")?(0,a.default)(this).val():(0,a.default)('input[type="radio"][name="rank_math_rich_snippet"]:checked').val();t.removeClass().addClass("dashicons "+e[r]),n.length&&"off"!==r&&n.val("0").trigger("change")}).trigger("change"),n.length){var r=(0,a.default)("#rank_math_rich_snippet"),i=(0,a.default)('input[name="rank_math_rich_snippet"][value="off"]');n.on("change",function(){"0"!==n.val()&&(r.val("off").trigger("change"),i.prop("checked",!0).trigger("change"))}).trigger("change")}}}]),t}();(0,a.default)(function(){new f})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=m(n(5));n(209),n(210);var a=m(n(93)),o=m(n(92)),s=m(n(136)),u=m(n(31)),c=m(n(62)),l=m(n(214)),f=m(n(218)),p=m(n(219)),d=m(n(220)),h=m(n(50)),v=m(n(145));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"init",value:function(){this.title="",this.permalink="",this.description="",this.variableMap=null,this.analyzeOnPage=null!==document.getElementById("rank-math-serp-checklist"),this.shouldAssess=!1,this.primaryResult={},this.serpCanonical=this.elemMetabox.find("#rank_math_canonical_url"),this.serpTitleField=this.elemMetabox.find("#rank_math_title"),this.serpPermalinkField=this.elemMetabox.find("#rank_math_permalink"),this.serpDescriptionField=this.elemMetabox.find("#rank_math_description"),this.serpWrapper=this.elemMetabox.find(".serp-preview"),this.serpBg=this.elemMetabox.find(".serp-preview-bg input"),this.serpTitle=this.serpWrapper.find(".serp-title"),this.serpPermalink=this.serpWrapper.find(".serp-url"),this.serpDescription=this.serpWrapper.find(".serp-description"),this.desktopSnippet=this.serpWrapper.find(".serp-snippet-data"),this.assessor=new Assessor({elemContent:this.elemContent,researches:this.researches}),this.analyzeOnPage&&(this.checkList=new l.default(this)),this.socialFields=new f.default(this),this.compareKeywords=new d.default(this.focusKeywords),this.focusKeywords=new p.default(this),this.wrapInGroup(),this.serpEvents(),this.updateEvents(),this.updatePreview(),this.initLengthIndicator(),rankMathAdmin.variableInserter(!1)}},{key:"wrapInGroup",value:function(){this.serpTitle.wrap('<div class="group"></div>'),this.serpPermalink.wrap('<div class="group"></div>'),this.serpDescription.wrap('<div class="group"></div>'),(0,i.default)(".cmb2-id-rank-math-title").insertAfter(this.serpTitle),(0,i.default)(".cmb2-id-rank-math-permalink").insertAfter(this.serpPermalink),(0,i.default)(".cmb2-id-rank-math-description").insertAfter(this.serpDescription),(0,i.default)(".group",this.serpWrapper).prepend('<span class="dashicons dashicons-no-alt serp-close"></span>')}},{key:"initLengthIndicator",value:function(){this.serpTitleField.lengthIndicator({minLength:15,maxLength:60,source:this.serpTitle}),this.serpPermalinkField.lengthIndicator({minLength:5,maxLength:75,source:this.serpPermalink}),this.serpDescriptionField.lengthIndicator({minLength:80,maxLength:160,source:this.serpDescription})}},{key:"serpEvents",value:function(){var e=this,t=this.elemMetabox.find(".rank-math-select-device");t.on("click",function(n){n.preventDefault();var r,a=(0,i.default)(n.currentTarget),o=a.hasClass("active");r=function(t){switch(t){case"desktop-preview":e.serpWrapper.removeClass("mobile-preview"),e.serpWrapper.addClass("desktop-preview expanded-preview");break;case"mobile-preview":e.serpWrapper.removeClass("desktop-preview"),e.serpWrapper.addClass("mobile-preview expanded-preview");break;default:e.serpWrapper.removeClass("mobile-preview expanded-preview"),e.serpWrapper.addClass("desktop-preview")}},t.removeClass("active"),o?r("normal"):a.hasClass("device-desktop")?(r("desktop-preview"),a.addClass("active")):a.hasClass("device-mobile")&&(r("mobile-preview"),a.addClass("active"))});var n=!0,r=this.elemMetabox.find(".rank-math-edit-snippet");this.elemMetabox.on("click",".rank-math-edit-snippet",function(t){t.preventDefault(),r.toggleClass("hidden active"),e.desktopSnippet.toggle();var i={type:"click",isHidden:n=!n};e.serpTitle.trigger(i),e.serpPermalink.trigger(i),e.serpDescription.trigger(i)}),this.elemMetabox.on("click",".serp-title, .serp-url, .serp-description, .serp-close",function(t){t.preventDefault();var a=(0,i.default)(t.target).parent();"isHidden"in t?a.toggleClass("active",!t.isHidden):(a.toggleClass("active"),0===e.serpWrapper.find(".group.active").length&&r.hasClass("active")&&(n=!n,r.toggleClass("hidden active")),3!==e.serpWrapper.find(".group.active").length||r.hasClass("active")||(n=!1,r.toggleClass("hidden active")))});var a=(0,i.default)("#rank_math_robots1");a.on("change",function(){a.is(":checked")?e.serpWrapper.addClass("noindex-preview"):e.serpWrapper.removeClass("noindex-preview")}).trigger("change"),(0,i.default)("textarea[data-autoresize]").each(function(){var e=(0,i.default)(this);e.on("keyup input",function(){e.css("height","auto").css("height",e.prop("scrollHeight"))})})}},{key:"updateEvents",value:function(){var e=this;this.serpTitleField.on("input",(0,c.default)(function(){e.updateTitlePreview()},500)).on("keypress",function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),(0,i.default)(e.target).closest(".cmb-row").prev().trigger("click"),!1}),this.elemTitle.on("input",(0,c.default)(function(){e.setVariable("title",e.elemTitle.val()),e.setVariable("term",e.elemTitle.val()),e.setVariable("author",e.elemTitle.val()),e.setVariable("name",e.elemTitle.val()),e.updateTitlePreview()},500)),this.serpPermalinkField.val(this.serpPermalinkField.val()||this.elemSlug.val()).on("input",(0,c.default)(function(){var t=decodeURIComponent(e.serpPermalinkField.val());e.updateSlug(t),e.updatePermalinkPreview()},500)).on("blur",function(){var t=(0,s.default)(e.serpPermalinkField.val());e.updateSlug(t)}).on("keypress",function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),(0,i.default)(e.target).closest(".cmb-row").prev().trigger("click"),!1}),this.elemSlug.on("input",(0,c.default)(function(){e.serpPermalinkField.val(e.elemSlug.val()).trigger("input")},500)),this.serpDescriptionField.on("input",(0,c.default)(function(){e.updateDescriptionPreview()},500)).on("keypress",function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),(0,i.default)(e.target).closest(".cmb-row").prev().trigger("click"),!1}),this.elemDescription.on("input",(0,c.default)(function(){e.updateDescriptionPreview()},500))}},{key:"updateSlug",value:function(e){this.serpPermalinkField.val(e),this.elemSlug.val(e)}},{key:"seoAssessments",value:function(e){if(!1!==this.shouldAssess){var t=null;"title"===e?t=this.assessor.assessTitle(this.title):"permalink"===e?t=this.assessor.assessPermalink(this.permalink):"description"===e?(this.assessor.paper.setDescription(this.description),t=this.assessor.assessFocusKeyword(this.focusKeywords.getFocusKeyword())):"content"===e&&(t=this.assessor.assessContent(this.description)),this.setKeywordStatus(t)}}},{key:"seoTitleAssessments",value:function(){this.seoAssessments("title")}},{key:"seoPermalinkAssessments",value:function(){this.seoAssessments("permalink")}},{key:"seoFocusKeywordAssessments",value:function(){this.seoAssessments("description")}},{key:"seoContentAssessments",value:function(){this.seoAssessments("content")}},{key:"seoAssessAll",value:function(){if(!1!==this.shouldAssess){this.assessor.paper.setTitle(this.title),this.assessor.paper.setPermalink(this.permalink),this.assessor.paper.setKeyword(this.focusKeywords.getFocusKeyword().keyword),this.assessor.paper.setDescription(this.description);var e=this.assessor.runAll();this.setKeywordStatus(e)}}},{key:"setKeywordStatus",value:function(e){if(!1!==this.analyzeOnPage){var t=this.focusKeywords.getFocusKeyword();if(t.isPrimary||void 0===t.elem)this.checkList.elem.show(),this.checkList.display(e);else{var n={keywordDensity:e.keywordDensity,keywordInContent:e.keywordInContent,keywordInSubheadings:e.keywordInSubheadings};"post"!==rankMath.objectType&&this.checkList.elem.hide(),this.checkList.hidePrimary(),this.checkList.display(n),this.checkList.setSecondaryKeywordStatus(n,t.elem),delete e.keywordDensity,delete e.keywordInContent,delete e.keywordInSubheadings,delete this.primaryResult.keywordInTitle,delete this.primaryResult.keywordInMetaDescription,delete this.primaryResult.keywordInPermalink,delete this.primaryResult.keywordIn10Content,delete this.primaryResult.keywordInImageAlt,delete this.primaryResult.keywordNotUsed,delete this.primaryResult.titleStartWithKeyword}this.primaryResult=i.default.extend({},this.primaryResult,e),this.checkList.setPrimaryKeywordStatus(this.primaryResult,this.focusKeywords.elem.next().find(">li:not(.placeholder)").eq(1))}}},{key:"updatePreview",value:function(){this.updateTitlePreview(),this.updatePermalinkPreview(),this.updateDescriptionPreview(),this.shouldAssess=this.analyzeOnPage,this.seoAssessAll(),this.focusKeywords.elem.trigger("content-loaded"),this.updateFocusKeywords()}},{key:"updateFocusKeywords",value:function(){var e=this.focusKeywords.getFocusKeyword().keyword;if(""!==e&&(this.setVariable("focuskw",e),this.serpBg.val(e)),this.focusKeywords.getFocusKeyword().isPrimary){this.shouldAssess=!1,this.updateDescriptionPreview(),this.shouldAssess=!0,this.seoFocusKeywordAssessments(),this.highlightKeywords(),this.updatePreviewCallbacks("description",this.description),this.updatePreviewCallbacks("focus-keyword",e);var t=(0,i.default)(".focus-keyword-link");t.length&&""!==e&&t.attr("href",t.attr("href").replace("%focus_keyword%",e).replace("%post_type%",rankMath.objectType).replace("%taxonomy%",rankMath.objectType))}else this.seoFocusKeywordAssessments()}},{key:"updateTitlePreview",value:function(){this.title=this.serpTitleField.val();var e=""!==this.title;this.title=this.swapVars(""!==this.title?this.title:this.serpTitle.data("format")),this.serpTitle.html(this.title),this.serpTitleField.attr("placeholder",e?this.title:this.serpTitle.data("format")),this.socialFields.facebookTitleField.attr("placeholder",this.title),this.socialFields.twitterTitleField.attr("placeholder",this.title),this.seoTitleAssessments(),this.highlightKeywords(this.serpTitle),this.updatePreviewCallbacks("title",this.title),this.serpTitle.trigger("rank-math-vars-replaced")}},{key:"updatePermalinkPreview",value:function(){var e=this.serpPermalink.data("format")||"",t=(0,s.default)(this.serpPermalinkField.val());this.permalink=""!==t?e.replace(/%(postname|pagename)%/,t).trimRight("/")+"/":"",this.serpCanonical.attr("placeholder",this.permalink),this.serpPermalink.html(this.permalink),this.seoPermalinkAssessments(),this.highlightKeywords(this.serpPermalink),this.updatePreviewCallbacks("permalink",this.permalink),this.serpPermalink.trigger("rank-math-vars-replaced")}},{key:"updateDescriptionPreview",value:function(){this.description=this.swapVars(this.getDescription()),this.serpDescription.html(this.description),this.serpDescriptionField.attr("placeholder",""!==this.description?this.description:this.serpDescription.data("format"));var e=this.getDescriptionTruncated(this.description,300);this.socialFields.facebookDescriptionField.attr("placeholder",e),this.socialFields.twitterDescriptionField.attr("placeholder",e),this.seoContentAssessments(),this.highlightKeywords(this.serpDescription),this.updatePreviewCallbacks("description",this.description),this.serpDescription.trigger("rank-math-vars-replaced")}},{key:"updatePreviewCallbacks",value:function(e,t){this.elemMetabox.trigger("rank-math-updating-preview-"+(e=e||"global")),this.elemMetabox.trigger("rank-math-"+e+"-updated",t)}},{key:"highlightKeywords",value:function(e){var t=this.focusKeywords.getFocusKeyword().keyword;!1!==t&&(e?(e.hasClass("serp-url")&&(t=this.assessor.paper.get("keywordPermalink")),e.rankMathUnhighlight(),e.rankMathHighlight(t)):(this.serpTitle.rankMathUnhighlight(),this.serpTitle.rankMathHighlight(t),this.serpPermalink.rankMathUnhighlight(),this.serpPermalink.rankMathHighlight(this.assessor.paper.get("keywordPermalink")),this.serpDescription.rankMathUnhighlight(),this.serpDescription.rankMathHighlight(t)))}},{key:"swapVars",value:function(e,t){var n=this;return(e=e||"")?(t=t||this.getMapObj(),(e=e.replace(" %page%","").replace("%sep% %sep%","%sep%")).replace(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/giu,function(e){var r=e.toLowerCase().replace(/%+/g,"");return["title","post_title","term","author","name"].includes(r)?n.isGutenbergAvailable?t.title:n.elemTitle.val():["description","tag_description","category_description","cat_description","author_description","user_description"].includes(r)?(0,i.default)("#description").val():["fk","focuskeyword","focuskw"].includes(r)?n.focusKeywords.getFocusKeyword().keyword:r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(r.includes("(")&&(r=r.split("(")[0]),r in t?t[r]:r)}).trim()):""}},{key:"getMapObj",value:function(){var e=this;return null!==this.variableMap?this.variableMap:(this.variableMap={},i.default.each(rankMath.variables,function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.variableMap[t]=n.example}),this.variableMap)}},{key:"setVariable",value:function(e,t){null!==this.variableMap?this.variableMap[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}},{key:"getContent",value:function(){return this.assessor.paper.get("content")}},{key:"getDescription",value:function(){this.assessor.refreshContent();var e=this.getExcerpt(),t=this.serpDescriptionField.val();if(""!==t)return(0,h.default)(t);if(!(0,o.default)(e)&&""!==e)return(0,h.default)(e);var n=this.serpDescription.data("format"),r=this.generateDescriptionFromContent(this.getContent());return this.setVariable("excerpt",r),(0,o.default)(n)||""===n?r:(0,h.default)(n)}},{key:"getExcerpt",value:function(){if(this.isGutenbergAvailable)return"";var e=this.elemDescription.val();return this.setVariable("excerpt",e),this.setVariable("excerpt_only",e),this.setVariable("wc_shortdesc",e),e}},{key:"generateDescriptionFromContent",value:function(e){if(""===e)return"";var t=this.focusKeywords.getFocusKeyword().keyword,n=(0,a.default)((0,v.default)(e,!0),function(e){return""!==i.default.trim(e)});if(!n.length)return"";if(""!==t){var r=(0,a.default)(n,function(e){return(0,u.default)(e.toLowerCase(),t)});if(r.length>0)return this.getDescriptionTruncated(r[0],160)}return this.getDescriptionTruncated(n[0],160)}},{key:"getDescriptionTruncated",value:function(e,t){return t?this.truncate(e.replace(/\r?\n|\r/g," "),t):e.replace(/\r?\n|\r/g," ")}},{key:"truncate",value:function(e,t){return e.length>t?e.substring(0,t):e}}]),e}();t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(62))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metabox=t,this.getPostAttribute=this.getPostAttribute.bind(this),this.refresh=this.refresh.bind(this),this._data=this.collectGutenbergData(this.getPostAttribute),this.subscribeToGutenberg()}return i(e,[{key:"collectGutenbergData",value:function(){return{content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),slug:this.getSlug(),excerpt:this.getPostAttribute("excerpt")}}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this.getPostAttribute("slug")||e}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=wp.data.select("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"subscribeToGutenberg",value:function(){this.subscriber=(0,a.default)(this.refresh,500),wp.data.subscribe(this.subscriber)}},{key:"refresh",value:function(){var e=this.collectGutenbergData();this.handleEditorChange(e),this._data=e}},{key:"handleEditorChange",value:function(e){this._data.title!==e.title&&(this.metabox.title=e.title,this.metabox.setVariable("title",e.title),this.metabox.setVariable("term",e.title),this.metabox.setVariable("author",e.title),this.metabox.setVariable("name",e.title),this.metabox.updateTitlePreview()),this._data.excerpt!==e.excerpt&&(this.metabox.setVariable("excerpt",e.excerpt),this.metabox.setVariable("excerpt_only",e.excerpt),this.metabox.setVariable("wc_shortdesc",e.excerpt),this.metabox.updateDescriptionPreview()),this._data.slug!==e.slug&&this.metabox.serpPermalinkField.val(e.slug).trigger("input"),this._data.content!==e.content&&(this.metabox.assessor.paper.setContent(e.content),this.metabox.updateDescriptionPreview(),this.metabox.socialFields.updateThumbnailPreview())}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(92)),i=a(n(96));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return!(0,r.default)(window.wp)&&!(0,r.default)(wp.data)&&!(0,r.default)(wp.data.select("core/editor"))&&(0,i.default)(wp.data.select("core/editor").getEditedPostAttribute)}}]);
assets/admin/js/term-metabox.js CHANGED
File without changes
assets/admin/js/user-metabox.js CHANGED
File without changes
assets/admin/js/wizard.js CHANGED
File without changes
assets/admin/js/wplink.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=257)}({257:function(e,t,n){"use strict";!function(e,t,n){var i,r,l,a,o,s,c=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,u=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},d={},h="ontouchend"in document;function f(){return s||i.dom.getParent(i.selection.getNode(),"a[href]")}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=e("#wp-link-wrap"),p.dialog=e("#wp-link"),p.backdrop=e("#wp-link-backdrop"),p.submit=e("#wp-link-submit"),p.close=e("#wp-link-close");var n=e('<div class="link-nofollow"><label><span> </span> <input type="checkbox" id="wp-link-nofollow"> '+t.relCheckbox+"</label></div>"),i=e('<div class="wp-link-title-field"> <label><span>'+t.linkTitle+'</span> <input id="wp-link-title" type="text"></label></div>');n.insertAfter("#wp-link .link-target"),i.insertAfter("#wp-link .wp-link-text-field"),e("#wp-link .query-results").css("top","260px"),p.text=e("#wp-link-text"),p.url=e("#wp-link-url"),p.nonce=e("#_ajax_linking_nonce"),p.openInNewTab=e("#wp-link-target"),p.search=e("#wp-link-search"),p.nofollow=e("#wp-link-nofollow"),p.title=e("#wp-link-title"),d.search=new l(e("#search-results")),d.recent=new l(e("#most-recent-results")),d.elements=p.dialog.find(".query-results"),p.queryNotice=e("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.keydown(wpLink.keydown),p.dialog.keyup(wpLink.keyup),p.submit.click(function(e){e.preventDefault(),wpLink.update()}),p.close.add(p.backdrop).add("#wp-link-cancel button").click(function(e){e.preventDefault(),wpLink.close()}),d.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()}),p.search.on("keyup input",function(){window.clearTimeout(r),r=window.setTimeout(function(){wpLink.searchInternalLinks()},500)}),p.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var t=e.trim(p.url.val());t&&o!==t&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(t)&&(p.url.val("http://"+t),o=t)},open:function(t,n,r,l){var a,o=e(document.body);o.addClass("modal-open"),wpLink.modalOpen=!0,s=l,wpLink.range=null,t&&(window.wpActiveEditor=t),window.wpActiveEditor&&(this.textarea=e("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(o.append(p.backdrop,p.wrap),a=window.tinymce.get(window.wpActiveEditor),i=a&&!a.isHidden()?a:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(n,r),e(document).trigger("wplink-open",p.wrap))},isMCE:function(){return i&&!i.isHidden()},refresh:function(e,t){d.search.refresh(),d.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text:void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),h?p.url.focus().blur():window.setTimeout(function(){p.url[0].select(),p.url.focus()}),d.recent.ul.children().length||d.recent.ajax(),o=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,r,l=i.selection.getContent();if(/</.test(l)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(l)||-1===l.indexOf("href=")))return!1;if(e){if(0===(n=e.childNodes).length)return!1;for(r=n.length-1;r>=0;r--)if(3!=(t=n[r]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(n,r){var l,a,o=f(),s=this.hasSelectedText(o);o?(l=o.textContent||o.innerText,a=i.dom.getAttrib(o,"href"),e.trim(l)||(l=r||""),n&&(u.test(n)||c.test(n))&&(a=n),"_wp_link_placeholder"!==a?(p.url.val(a),p.openInNewTab.prop("checked","_blank"===i.dom.getAttrib(o,"target")),p.nofollow.prop("checked","nofollow"===i.dom.getAttrib(o,"rel")),p.title.val(i.dom.getAttrib(o,"title")),p.submit.val(t.update)):this.setDefaultValues(l),p.search.val(n&&n!==a?n:""),window.setTimeout(function(){wpLink.searchInternalLinks()})):(l=i.selection.getContent({format:"text"})||r||"",this.setDefaultValues(l)),s?(p.text.val(l),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(t){e(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==t&&(wpLink.isMCE()?(i.plugins.wplink&&i.plugins.wplink.close(),i.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),o=!1,e(document).trigger("wplink-close",p.wrap)},getAttrs:function(){wpLink.correctURL();var t={href:e.trim(p.url.val()),target:p.openInNewTab.prop("checked")?"_blank":null,rel:p.nofollow.prop("checked")?"nofollow":""};return e.trim(p.title.val())&&(t.title=e.trim(p.title.val())),t},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' target="'+e.target+'"'),e.rel&&(t+=' rel="'+e.rel+'"'),e.title&&(t+=' title="'+e.title+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var i,r,l,a,o,s,c,u=wpLink.textarea;if(u){i=wpLink.getAttrs(),r=p.text.val();var d=document.createElement("a");d.href=i.href,"javascript:"!==d.protocol&&"data:"!==d.protocol||(i.href=""),i.href&&(l=wpLink.buildHtml(i),document.selection&&wpLink.range?(u.focus(),wpLink.range.text=l+(r||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==u.selectionStart&&(o=u.selectionEnd,s=(a=u.selectionStart)+(l=l+(c=r||u.value.substring(a,o))+"</a>").length,a!==o||c||(s-=4),u.value=u.value.substring(0,a)+l+u.value.substring(o,u.value.length),u.selectionStart=u.selectionEnd=s),wpLink.close(),u.focus(),e(u).trigger("change"),n.a11y.speak(t.linkInserted))}},mceUpdate:function(){var r,l,a,o,s=wpLink.getAttrs(),c=document.createElement("a");if(c.href=s.href,"javascript:"!==c.protocol&&"data:"!==c.protocol||(s.href=""),!s.href)return i.execCommand("unlink"),void wpLink.close();r=i.$(f()),i.undoManager.transact(function(){r.length||(i.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),r=i.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),a=e.trim(r.text())),r.length?(p.wrap.hasClass("has-text-field")&&((l=p.text.val())?r.text(l):a||r.text(s.href)),s["data-wplink-edit"]=null,s["data-mce-href"]=null,s.hasOwnProperty("rel")&&!s.rel&&(s.rel=null),r.attr(s)):i.execCommand("unlink")}),wpLink.close("noReset"),i.focus(),r.length&&((o=r.parent("#_mce_caret")).length&&o.before(r.removeAttr("data-mce-bogus")),i.selection.select(r[0]),i.selection.collapse(),i.plugins.wplink&&i.plugins.wplink.checkLink(r[0])),i.nodeChanged(),n.a11y.speak(t.linkInserted)},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val())},getUrlFromSelection:function(t){return t||(this.isMCE()?t=i.selection.getContent({format:"text"}):document.selection&&wpLink.range?t=wpLink.range.text:void 0!==this.textarea.selectionStart&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(t=e.trim(t))&&c.test(t)?"mailto:"+t:t&&u.test(t)?t.replace(/&amp;|&#0?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(t.save)},searchInternalLinks:function(){var e,t=p.search.val()||"";if(t.length>2){if(d.recent.hide(),d.search.show(),wpLink.lastSearch===t)return;wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),d.search.change(t),d.search.ajax(function(){e.removeClass("is-active")})}else d.search.hide(),d.recent.show()},next:function(){d.search.next(),d.recent.next()},prev:function(){d.search.prev(),d.recent.prev()},keydown:function(e){var t,n;27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(n=e.target.id)||e.shiftKey?"wp-link-close"===n&&e.shiftKey&&(p.submit.focus(),e.preventDefault()):(p.close.focus(),e.preventDefault())),e.shiftKey||38!==e.keyCode&&40!==e.keyCode||(!document.activeElement||"link-title-field"!==document.activeElement.id&&"url-field"!==document.activeElement.id)&&(t=38===e.keyCode?"prev":"next",clearInterval(wpLink.keyInterval),wpLink[t](),wpLink.keyInterval=setInterval(wpLink[t],wpLink.keySensitivity),e.preventDefault())},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,r,l;return t?(setTimeout(function(){if(i)return e.apply(l,r);n=!0},t),function(){if(n)return e.apply(this,arguments);r=arguments,l=this,i=!0}):e}},e.extend((l=function(t,n){var i=this;this.element=t,this.ul=t.children("ul"),this.contentHeight=t.children("#link-selector-height"),this.waiting=t.find(".river-waiting"),this.change(n),this.refresh(),e("#wp-link .query-results, #wp-link #link-selector").scroll(function(){i.maybeLoad()}),t.on("click","li",function(t){i.select(e(this),t)})}).prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){var n,i,r,l;e.hasClass("unselectable")||e===this.selected||(this.deselect(),this.selected=e.addClass("selected"),n=e.outerHeight(),i=this.element.height(),r=e.position().top,l=this.element.scrollTop(),0>r?this.element.scrollTop(l+r):r+n>i&&this.element.scrollTop(l+r-i+n),this.element.trigger("river-select",[e,t,this]))},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&this.selected&&(e=this.selected.prev("li")).length&&this.select(e)},next:function(){if(this.visible){var t=this.selected?this.selected.next("li"):e("li:not(.unselectable):first",this.element);t.length&&this.select(t)}},ajax:function(e){var t=this,n=1==this.query.page?0:wpLink.minRiverAJAXDuration,i=wpLink.delayedCallback(function(n,i){t.process(n,i),e&&e(n,i)},n);this.query.ajax(i)},change:function(e){this.query&&this._search===e||(this._search=e,this.query=new a(e),this.element.scrollTop(0))},process:function(n,i){var r="",l=!0,a="",o=1===i.page;n?e.each(n,function(){a=l?"alternate":"",r+=(a+=this.title?"":" no-title")?'<li class="'+a+'">':"<li>",r+='<input type="hidden" class="item-permalink" value="'+this.permalink+'" />',r+='<span class="item-title">',r+=this.title?this.title:t.noTitle,r+='</span><span class="item-info">'+this.info+"</span></li>",l=!l}):o&&(r+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+t.noMatchesFound+"</em></span></li>"),this.ul[o?"html":"append"](r)},maybeLoad:function(){var e=this,t=this.element,n=t.scrollTop()+t.height();this.query.ready()&&n>=this.contentHeight.height()-wpLink.riverBottomThreshold&&setTimeout(function(){var n=t.scrollTop(),i=n+t.height();e.query.ready()&&i>=e.contentHeight.height()-wpLink.riverBottomThreshold&&(e.waiting.addClass("is-active"),t.scrollTop(n+e.waiting.outerHeight()),e.ajax(function(){e.waiting.removeClass("is-active")}))},wpLink.timeToTriggerRiver)}}),e.extend((a=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e}).prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,e.post(window.ajaxurl,i,function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)},"json")}}),e(document).ready(wpLink.init)}(jQuery,window.wpLinkL10n,window.wp)}});
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=257)}({257:function(e,t,n){"use strict";!function(e,t,n){var i,r,l,a,o,s,c=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,u=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},d={},h="ontouchend"in document;function f(){return s||i.dom.getParent(i.selection.getNode(),"a[href]")}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=e("#wp-link-wrap"),p.dialog=e("#wp-link"),p.backdrop=e("#wp-link-backdrop"),p.submit=e("#wp-link-submit"),p.close=e("#wp-link-close");var n=e('<div class="link-nofollow"><label><span> </span> <input type="checkbox" id="wp-link-nofollow"> '+t.relCheckbox+"</label></div>"),i=e('<div class="wp-link-title-field"> <label><span>'+t.linkTitle+'</span> <input id="wp-link-title" type="text"></label></div>');n.insertAfter("#wp-link .link-target"),i.insertAfter("#wp-link .wp-link-text-field"),e("#wp-link .query-results").css("top","260px"),p.text=e("#wp-link-text"),p.url=e("#wp-link-url"),p.nonce=e("#_ajax_linking_nonce"),p.openInNewTab=e("#wp-link-target"),p.search=e("#wp-link-search"),p.nofollow=e("#wp-link-nofollow"),p.title=e("#wp-link-title"),d.search=new l(e("#search-results")),d.recent=new l(e("#most-recent-results")),d.elements=p.dialog.find(".query-results"),p.queryNotice=e("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.keydown(wpLink.keydown),p.dialog.keyup(wpLink.keyup),p.submit.click(function(e){e.preventDefault(),wpLink.update()}),p.close.add(p.backdrop).add("#wp-link-cancel button").click(function(e){e.preventDefault(),wpLink.close()}),d.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()}),p.search.on("keyup input",function(){window.clearTimeout(r),r=window.setTimeout(function(){wpLink.searchInternalLinks()},500)}),p.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var t=e.trim(p.url.val());t&&o!==t&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(t)&&(p.url.val("http://"+t),o=t)},open:function(t,n,r,l){var a,o=e(document.body);o.addClass("modal-open"),wpLink.modalOpen=!0,s=l,wpLink.range=null,t&&(window.wpActiveEditor=t),window.wpActiveEditor&&(this.textarea=e("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(o.append(p.backdrop,p.wrap),a=window.tinymce.get(window.wpActiveEditor),i=a&&!a.isHidden()?a:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(n,r),e(document).trigger("wplink-open",p.wrap))},isMCE:function(){return i&&!i.isHidden()},refresh:function(e,t){d.search.refresh(),d.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text:void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),h?p.url.focus().blur():window.setTimeout(function(){p.url[0].select(),p.url.focus()}),d.recent.ul.children().length||d.recent.ajax(),o=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,r,l=i.selection.getContent();if(/</.test(l)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(l)||-1===l.indexOf("href=")))return!1;if(e){if(0===(n=e.childNodes).length)return!1;for(r=n.length-1;r>=0;r--)if(3!=(t=n[r]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(n,r){var l,a,o=f(),s=this.hasSelectedText(o);o?(l=o.textContent||o.innerText,a=i.dom.getAttrib(o,"href"),e.trim(l)||(l=r||""),n&&(u.test(n)||c.test(n))&&(a=n),"_wp_link_placeholder"!==a?(p.url.val(a),p.openInNewTab.prop("checked","_blank"===i.dom.getAttrib(o,"target")),p.nofollow.prop("checked","nofollow"===i.dom.getAttrib(o,"rel")),p.title.val(i.dom.getAttrib(o,"title")),p.submit.val(t.update)):this.setDefaultValues(l),p.search.val(n&&n!==a?n:""),window.setTimeout(function(){wpLink.searchInternalLinks()})):(l=i.selection.getContent({format:"text"})||r||"",this.setDefaultValues(l)),s?(p.text.val(l),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(t){e(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==t&&(wpLink.isMCE()?(i.plugins.wplink&&i.plugins.wplink.close(),i.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),p.title.val(""),o=!1,e(document).trigger("wplink-close",p.wrap)},getAttrs:function(){wpLink.correctURL();var t={href:e.trim(p.url.val()),target:p.openInNewTab.prop("checked")?"_blank":null,rel:p.nofollow.prop("checked")?"nofollow":""};return e.trim(p.title.val())&&(t.title=e.trim(p.title.val())),t},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' target="'+e.target+'"'),e.rel&&(t+=' rel="'+e.rel+'"'),e.title&&(t+=' title="'+e.title+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var i,r,l,a,o,s,c,u=wpLink.textarea;if(u){i=wpLink.getAttrs(),r=p.text.val();var d=document.createElement("a");d.href=i.href,"javascript:"!==d.protocol&&"data:"!==d.protocol||(i.href=""),i.href&&(l=wpLink.buildHtml(i),document.selection&&wpLink.range?(u.focus(),wpLink.range.text=l+(r||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==u.selectionStart&&(o=u.selectionEnd,s=(a=u.selectionStart)+(l=l+(c=r||u.value.substring(a,o))+"</a>").length,a!==o||c||(s-=4),u.value=u.value.substring(0,a)+l+u.value.substring(o,u.value.length),u.selectionStart=u.selectionEnd=s),wpLink.close(),u.focus(),e(u).trigger("change"),n.a11y.speak(t.linkInserted))}},mceUpdate:function(){var r,l,a,o,s=wpLink.getAttrs(),c=document.createElement("a");if(c.href=s.href,"javascript:"!==c.protocol&&"data:"!==c.protocol||(s.href=""),!s.href)return i.execCommand("unlink"),void wpLink.close();r=i.$(f()),i.undoManager.transact(function(){r.length||(i.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),r=i.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),a=e.trim(r.text())),r.length?(p.wrap.hasClass("has-text-field")&&((l=p.text.val())?r.text(l):a||r.text(s.href)),s["data-wplink-edit"]=null,s["data-mce-href"]=null,s.hasOwnProperty("rel")&&!s.rel&&(s.rel=null),r.attr(s)):i.execCommand("unlink")}),wpLink.close("noReset"),i.focus(),r.length&&((o=r.parent("#_mce_caret")).length&&o.before(r.removeAttr("data-mce-bogus")),i.selection.select(r[0]),i.selection.collapse(),i.plugins.wplink&&i.plugins.wplink.checkLink(r[0])),i.nodeChanged(),p.title.val(""),n.a11y.speak(t.linkInserted)},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val())},getUrlFromSelection:function(t){return t||(this.isMCE()?t=i.selection.getContent({format:"text"}):document.selection&&wpLink.range?t=wpLink.range.text:void 0!==this.textarea.selectionStart&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(t=e.trim(t))&&c.test(t)?"mailto:"+t:t&&u.test(t)?t.replace(/&amp;|&#0?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(t.save)},searchInternalLinks:function(){var e,t=p.search.val()||"";if(t.length>2){if(d.recent.hide(),d.search.show(),wpLink.lastSearch===t)return;wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),d.search.change(t),d.search.ajax(function(){e.removeClass("is-active")})}else d.search.hide(),d.recent.show()},next:function(){d.search.next(),d.recent.next()},prev:function(){d.search.prev(),d.recent.prev()},keydown:function(e){var t,n;27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(n=e.target.id)||e.shiftKey?"wp-link-close"===n&&e.shiftKey&&(p.submit.focus(),e.preventDefault()):(p.close.focus(),e.preventDefault())),e.shiftKey||38!==e.keyCode&&40!==e.keyCode||(!document.activeElement||"link-title-field"!==document.activeElement.id&&"url-field"!==document.activeElement.id)&&(t=38===e.keyCode?"prev":"next",clearInterval(wpLink.keyInterval),wpLink[t](),wpLink.keyInterval=setInterval(wpLink[t],wpLink.keySensitivity),e.preventDefault())},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,r,l;return t?(setTimeout(function(){if(i)return e.apply(l,r);n=!0},t),function(){if(n)return e.apply(this,arguments);r=arguments,l=this,i=!0}):e}},e.extend((l=function(t,n){var i=this;this.element=t,this.ul=t.children("ul"),this.contentHeight=t.children("#link-selector-height"),this.waiting=t.find(".river-waiting"),this.change(n),this.refresh(),e("#wp-link .query-results, #wp-link #link-selector").scroll(function(){i.maybeLoad()}),t.on("click","li",function(t){i.select(e(this),t)})}).prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){var n,i,r,l;e.hasClass("unselectable")||e===this.selected||(this.deselect(),this.selected=e.addClass("selected"),n=e.outerHeight(),i=this.element.height(),r=e.position().top,l=this.element.scrollTop(),0>r?this.element.scrollTop(l+r):r+n>i&&this.element.scrollTop(l+r-i+n),this.element.trigger("river-select",[e,t,this]))},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&this.selected&&(e=this.selected.prev("li")).length&&this.select(e)},next:function(){if(this.visible){var t=this.selected?this.selected.next("li"):e("li:not(.unselectable):first",this.element);t.length&&this.select(t)}},ajax:function(e){var t=this,n=1==this.query.page?0:wpLink.minRiverAJAXDuration,i=wpLink.delayedCallback(function(n,i){t.process(n,i),e&&e(n,i)},n);this.query.ajax(i)},change:function(e){this.query&&this._search===e||(this._search=e,this.query=new a(e),this.element.scrollTop(0))},process:function(n,i){var r="",l=!0,a="",o=1===i.page;n?e.each(n,function(){a=l?"alternate":"",r+=(a+=this.title?"":" no-title")?'<li class="'+a+'">':"<li>",r+='<input type="hidden" class="item-permalink" value="'+this.permalink+'" />',r+='<span class="item-title">',r+=this.title?this.title:t.noTitle,r+='</span><span class="item-info">'+this.info+"</span></li>",l=!l}):o&&(r+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+t.noMatchesFound+"</em></span></li>"),this.ul[o?"html":"append"](r)},maybeLoad:function(){var e=this,t=this.element,n=t.scrollTop()+t.height();this.query.ready()&&n>=this.contentHeight.height()-wpLink.riverBottomThreshold&&setTimeout(function(){var n=t.scrollTop(),i=n+t.height();e.query.ready()&&i>=e.contentHeight.height()-wpLink.riverBottomThreshold&&(e.waiting.addClass("is-active"),t.scrollTop(n+e.waiting.outerHeight()),e.ajax(function(){e.waiting.removeClass("is-active")}))},wpLink.timeToTriggerRiver)}}),e.extend((a=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e}).prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,e.post(window.ajaxurl,i,function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)},"json")}}),e(document).ready(wpLink.init)}(jQuery,window.wpLinkL10n,window.wp)}});
assets/front/css/modules/_base.css CHANGED
File without changes
assets/front/css/rank-math-contact-info.css CHANGED
File without changes
assets/front/css/rank-math-review-snippet.css CHANGED
File without changes
assets/front/css/rank-math.css CHANGED
File without changes
assets/front/img/rank-math-icon.svg CHANGED
File without changes
assets/front/js/rank-math.js CHANGED
File without changes
assets/vendor/clipboard.min.js CHANGED
File without changes
assets/vendor/jquery.caret.min.js CHANGED
File without changes
assets/vendor/powerwords.php CHANGED
File without changes
assets/vendor/select2/select2.min.css CHANGED
File without changes
assets/vendor/select2/select2.min.js CHANGED
File without changes
includes/admin/class-admin-helper.php CHANGED
@@ -179,8 +179,9 @@ class Admin_Helper {
179
  */
180
  private static function authenticate_user( $username, $password ) {
181
  $response = wp_remote_post( 'https://rankmath.com/wp-json/rankmath/v1/token', [
182
- 'timeout' => 10,
183
- 'body' => [
 
184
  'username' => $username,
185
  'password' => $password,
186
  ],
179
  */
180
  private static function authenticate_user( $username, $password ) {
181
  $response = wp_remote_post( 'https://rankmath.com/wp-json/rankmath/v1/token', [
182
+ 'timeout' => 10,
183
+ 'user-agent' => 'RankMath/' . md5( esc_url( home_url( '/' ) ) ),
184
+ 'body' => [
185
  'username' => $username,
186
  'password' => $password,
187
  ],
includes/admin/class-admin-menu.php CHANGED
File without changes
includes/admin/class-admin.php CHANGED
@@ -182,9 +182,9 @@ class Admin implements Runner {
182
  if ( 'post' === $object_type ) {
183
  $query .= sprintf( '%s.post_status = \'publish\' and ', $main );
184
  }
185
- $query .= sprintf( '%1$s.meta_key = \'rank_math_focus_keyword\' and %1$s.meta_value like %2$s and %1$s.%3$s_id != %4$d', $meta, '%s', $object_type, $object_id );
186
 
187
- $data = $wpdb->get_row( $wpdb->prepare( $query, '%' . $wpdb->esc_like( $keyword ) . '%' ) ); // phpcs:ignore
188
 
189
  $result['isNew'] = empty( $data );
190
 
182
  if ( 'post' === $object_type ) {
183
  $query .= sprintf( '%s.post_status = \'publish\' and ', $main );
184
  }
185
+ $query .= sprintf( '%1$s.meta_key = \'rank_math_focus_keyword\' and ( %1$s.meta_value = %2$s OR %1$s.meta_value like %3$s ) and %1$s.%4$s_id != %5$d', $meta, '%s', '%s', $object_type, $object_id );
186
 
187
+ $data = $wpdb->get_row( $wpdb->prepare( $query, $keyword, $wpdb->esc_like( $keyword ) . ',%' ) ); // phpcs:ignore
188
 
189
  $result['isNew'] = empty( $data );
190
 
includes/admin/class-assets.php CHANGED
File without changes
includes/admin/class-cmb2-fields.php CHANGED
File without changes
includes/admin/class-deactivate-survey.php CHANGED
File without changes
includes/admin/class-engine.php CHANGED
File without changes
includes/admin/class-import-export.php CHANGED
File without changes
includes/admin/class-metabox.php CHANGED
File without changes
includes/admin/class-notices.php CHANGED
@@ -52,6 +52,10 @@ class Notices implements Runner {
52
 
53
  $current = get_post_types( array( 'public' => true ) );
54
  update_option( 'rank_math_known_post_types', $current );
 
 
 
 
55
  }
56
 
57
  /**
52
 
53
  $current = get_post_types( array( 'public' => true ) );
54
  update_option( 'rank_math_known_post_types', $current );
55
+
56
+ if ( Helper::is_module_active( 'sitemap' ) ) {
57
+ \RankMath\Sitemap\Cache::invalidate_storage();
58
+ }
59
  }
60
 
61
  /**
includes/admin/class-option-center.php CHANGED
File without changes
includes/admin/class-options.php CHANGED
File without changes
includes/admin/class-post-columns.php CHANGED
@@ -70,7 +70,7 @@ class Post_Columns implements Runner {
70
  }
71
 
72
  // Set it to hidden by default.
73
- $columns_hidden = array_unique( array_merge( $columns_hidden, array( 'rank_math_title', 'rank_math_description' ) ) );
74
  update_user_meta( $user_id, "manageedit-{$post_type}columnshidden", $columns_hidden );
75
  update_user_meta( $user_id, "manageedit-{$post_type}columnshidden_default", '1' );
76
  }
@@ -108,12 +108,12 @@ class Post_Columns implements Runner {
108
  }
109
 
110
  wp_enqueue_script( 'rank-math-post-bulk-edit', rank_math()->plugin_url() . 'assets/admin/js/post-list.js', null, rank_math()->version, true );
111
- wp_localize_script( 'rank-math-post-bulk-edit', 'rankMath', array(
112
  'security' => wp_create_nonce( 'rank-math-ajax-nonce' ),
113
  'bulkEditTitle' => esc_attr__( 'Bulk Edit This Field', 'rank-math' ),
114
  'buttonSaveAll' => esc_attr__( 'Save All Edits', 'rank-math' ),
115
  'buttonCancel' => esc_attr__( 'Cancel', 'rank-math' ),
116
- ) );
117
  }
118
 
119
  /**
@@ -126,14 +126,14 @@ class Post_Columns implements Runner {
126
  return;
127
  }
128
 
129
- $options = array(
130
  '' => esc_html__( 'All Posts', 'rank-math' ),
131
  'great-seo' => esc_html__( 'SEO Score: Great', 'rank-math' ),
132
  'good-seo' => esc_html__( 'SEO Score: Good', 'rank-math' ),
133
  'bad-seo' => esc_html__( 'SEO Score: Bad', 'rank-math' ),
134
  'empty-fk' => esc_html__( 'Focus Keyword Not Set', 'rank-math' ),
135
  'noindexed' => esc_html__( 'Articles noindexed', 'rank-math' ),
136
- );
137
  $selected = isset( $_GET['seo-filter'] ) ? $_GET['seo-filter'] : '';
138
  ?>
139
  <select name="seo-filter">
@@ -337,24 +337,24 @@ class Post_Columns implements Runner {
337
  if ( $fk_in_title ) {
338
  global $wpdb;
339
 
340
- $meta_query = new \WP_Meta_Query( array(
341
- array(
342
  'key' => 'rank_math_focus_keyword',
343
  'compare' => 'EXISTS',
344
- ),
345
- array(
346
  'relation' => 'OR',
347
- array(
348
  'key' => 'rank_math_robots',
349
  'value' => 'noindex',
350
  'compare' => 'NOT LIKE',
351
- ),
352
- array(
353
  'key' => 'rank_math_robots',
354
  'compare' => 'NOT EXISTS',
355
- ),
356
- ),
357
- ));
358
 
359
  $mq_sql = $meta_query->get_sql( 'post', $wpdb->posts, 'ID' );
360
  $rows = $wpdb->get_col( "SELECT {$wpdb->posts}.ID FROM $wpdb->posts {$mq_sql['join']} WHERE 1=1 {$mq_sql['where']} AND {$wpdb->posts}.post_type = '$screen->post_type' AND ({$wpdb->posts}.post_status = 'publish') AND {$wpdb->posts}.post_title NOT REGEXP REPLACE({$wpdb->postmeta}.meta_value, ',', '|')" ); // phpcs:ignore
@@ -363,36 +363,51 @@ class Post_Columns implements Runner {
363
  }
364
 
365
  $focus_keyword = isset( $_GET['focus_keyword'] ) ? $_GET['focus_keyword'] : '';
366
-
367
  if ( 1 == $focus_keyword ) {
368
-
369
- $meta_args = array(
370
- 'relation' => 'AND',
371
- array(
372
- 'key' => 'rank_math_focus_keyword',
373
- 'compare' => 'NOT EXISTS',
374
- ),
375
- array(
376
- 'relation' => 'OR',
377
- array(
378
- 'key' => 'rank_math_robots',
379
- 'value' => 'noindex',
380
- 'compare' => 'NOT LIKE',
381
- ),
382
- array(
383
- 'key' => 'rank_math_robots',
384
  'compare' => 'NOT EXISTS',
385
- ),
386
- ),
 
 
 
 
 
 
 
 
 
 
 
 
387
  );
388
- $query->set( 'meta_query', $meta_args );
389
  return;
390
  }
391
 
392
- $query->set( 'meta_key', 'rank_math_focus_keyword' );
393
- $query->set( 'meta_value', $focus_keyword );
394
- $query->set( 'meta_compare', 'LIKE' );
395
  $query->set( 'post_type', 'any' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
  }
397
 
398
  /**
@@ -404,20 +419,20 @@ class Post_Columns implements Runner {
404
  global $typenow;
405
 
406
  $current = empty( $_GET['pillar_content'] ) ? '' : ' class="current" aria-current="page"';
407
- $pillars = get_posts( array(
408
  'post_type' => $typenow,
409
  'fields' => 'ids',
410
  'posts_per_page' => -1,
411
  'meta_key' => 'rank_math_pillar_content',
412
  'meta_value' => 'on',
413
- ) );
414
 
415
  $views['pillar_content'] = sprintf(
416
  '<a href="%1$s"%2$s>%3$s <span class="count">(%4$s)</span></a>',
417
- add_query_arg( array(
418
  'post_type' => $typenow,
419
  'pillar_content' => 1,
420
- )),
421
  $current,
422
  esc_html__( 'Pillar Content', 'rank-math' ),
423
  number_format_i18n( count( $pillars ) )
@@ -451,46 +466,46 @@ class Post_Columns implements Runner {
451
  return;
452
  }
453
 
454
- $meta_query = array();
455
 
456
  // Check for pillar content filter.
457
  if ( ! empty( $_GET['pillar_content'] ) ) {
458
- $meta_query[] = array(
459
  'key' => 'rank_math_pillar_content',
460
  'value' => 'on',
461
- );
462
  }
463
 
464
  // Check for pillar seo filter.
465
  if ( ! empty( $_GET['seo-filter'] ) ) {
466
  $filter = $_GET['seo-filter'];
467
- $hash = array(
468
- 'empty-fk' => array(
469
  'key' => 'rank_math_focus_keyword',
470
  'compare' => 'NOT EXISTS',
471
- ),
472
- 'bad-seo' => array(
473
  'key' => 'rank_math_seo_score',
474
  'value' => 50,
475
  'compare' => '<=',
476
  'type' => 'numeric',
477
- ),
478
- 'good-seo' => array(
479
  'key' => 'rank_math_seo_score',
480
- 'value' => array( 51, 80 ),
481
  'compare' => 'BETWEEN',
482
- ),
483
- 'great-seo' => array(
484
  'key' => 'rank_math_seo_score',
485
  'value' => 80,
486
  'compare' => '>',
487
- ),
488
- 'noindexed' => array(
489
  'key' => 'rank_math_robots',
490
  'value' => 'noindex',
491
  'compare' => 'LIKE',
492
- ),
493
- );
494
 
495
  if ( isset( $hash[ $filter ] ) ) {
496
  $meta_query[] = $hash[ $filter ];
@@ -522,15 +537,15 @@ class Post_Columns implements Runner {
522
 
523
  foreach ( $data as $key => $value ) {
524
 
525
- if ( ! in_array( $key, array( 'focus_keyword', 'title', 'description', 'image_alt', 'image_title' ) ) ) {
526
  continue;
527
  }
528
 
529
  if ( 'image_title' === $key ) {
530
- wp_update_post( array(
531
  'ID' => $post_id,
532
  'post_title' => $value,
533
- ) );
534
  continue;
535
  }
536
 
70
  }
71
 
72
  // Set it to hidden by default.
73
+ $columns_hidden = array_unique( array_merge( $columns_hidden, [ 'rank_math_title', 'rank_math_description' ] ) );
74
  update_user_meta( $user_id, "manageedit-{$post_type}columnshidden", $columns_hidden );
75
  update_user_meta( $user_id, "manageedit-{$post_type}columnshidden_default", '1' );
76
  }
108
  }
109
 
110
  wp_enqueue_script( 'rank-math-post-bulk-edit', rank_math()->plugin_url() . 'assets/admin/js/post-list.js', null, rank_math()->version, true );
111
+ wp_localize_script( 'rank-math-post-bulk-edit', 'rankMath', [
112
  'security' => wp_create_nonce( 'rank-math-ajax-nonce' ),
113
  'bulkEditTitle' => esc_attr__( 'Bulk Edit This Field', 'rank-math' ),
114
  'buttonSaveAll' => esc_attr__( 'Save All Edits', 'rank-math' ),
115
  'buttonCancel' => esc_attr__( 'Cancel', 'rank-math' ),
116
+ ]);
117
  }
118
 
119
  /**
126
  return;
127
  }
128
 
129
+ $options = [
130
  '' => esc_html__( 'All Posts', 'rank-math' ),
131
  'great-seo' => esc_html__( 'SEO Score: Great', 'rank-math' ),
132
  'good-seo' => esc_html__( 'SEO Score: Good', 'rank-math' ),
133
  'bad-seo' => esc_html__( 'SEO Score: Bad', 'rank-math' ),
134
  'empty-fk' => esc_html__( 'Focus Keyword Not Set', 'rank-math' ),
135
  'noindexed' => esc_html__( 'Articles noindexed', 'rank-math' ),
136
+ ];
137
  $selected = isset( $_GET['seo-filter'] ) ? $_GET['seo-filter'] : '';
138
  ?>
139
  <select name="seo-filter">
337
  if ( $fk_in_title ) {
338
  global $wpdb;
339
 
340
+ $meta_query = new \WP_Meta_Query([
341
+ [
342
  'key' => 'rank_math_focus_keyword',
343
  'compare' => 'EXISTS',
344
+ ],
345
+ [
346
  'relation' => 'OR',
347
+ [
348
  'key' => 'rank_math_robots',
349
  'value' => 'noindex',
350
  'compare' => 'NOT LIKE',
351
+ ],
352
+ [
353
  'key' => 'rank_math_robots',
354
  'compare' => 'NOT EXISTS',
355
+ ],
356
+ ],
357
+ ]);
358
 
359
  $mq_sql = $meta_query->get_sql( 'post', $wpdb->posts, 'ID' );
360
  $rows = $wpdb->get_col( "SELECT {$wpdb->posts}.ID FROM $wpdb->posts {$mq_sql['join']} WHERE 1=1 {$mq_sql['where']} AND {$wpdb->posts}.post_type = '$screen->post_type' AND ({$wpdb->posts}.post_status = 'publish') AND {$wpdb->posts}.post_title NOT REGEXP REPLACE({$wpdb->postmeta}.meta_value, ',', '|')" ); // phpcs:ignore
363
  }
364
 
365
  $focus_keyword = isset( $_GET['focus_keyword'] ) ? $_GET['focus_keyword'] : '';
 
366
  if ( 1 == $focus_keyword ) {
367
+ $query->set(
368
+ 'meta_query',
369
+ [
370
+ 'relation' => 'AND',
371
+ [
372
+ 'key' => 'rank_math_focus_keyword',
 
 
 
 
 
 
 
 
 
 
373
  'compare' => 'NOT EXISTS',
374
+ ],
375
+ [
376
+ 'relation' => 'OR',
377
+ [
378
+ 'key' => 'rank_math_robots',
379
+ 'value' => 'noindex',
380
+ 'compare' => 'NOT LIKE',
381
+ ],
382
+ [
383
+ 'key' => 'rank_math_robots',
384
+ 'compare' => 'NOT EXISTS',
385
+ ],
386
+ ],
387
+ ]
388
  );
 
389
  return;
390
  }
391
 
 
 
 
392
  $query->set( 'post_type', 'any' );
393
+ $query->set(
394
+ 'meta_query',
395
+ [
396
+ [
397
+ 'relation' => 'OR',
398
+ [
399
+ 'key' => 'rank_math_focus_keyword',
400
+ 'value' => $focus_keyword,
401
+ 'compare' => 'LIKE',
402
+ ],
403
+ [
404
+ 'key' => 'rank_math_focus_keyword',
405
+ 'value' => $focus_keyword . ',',
406
+ 'compare' => 'LIKE',
407
+ ],
408
+ ],
409
+ ]
410
+ );
411
  }
412
 
413
  /**
419
  global $typenow;
420
 
421
  $current = empty( $_GET['pillar_content'] ) ? '' : ' class="current" aria-current="page"';
422
+ $pillars = get_posts([
423
  'post_type' => $typenow,
424
  'fields' => 'ids',
425
  'posts_per_page' => -1,
426
  'meta_key' => 'rank_math_pillar_content',
427
  'meta_value' => 'on',
428
+ ]);
429
 
430
  $views['pillar_content'] = sprintf(
431
  '<a href="%1$s"%2$s>%3$s <span class="count">(%4$s)</span></a>',
432
+ add_query_arg([
433
  'post_type' => $typenow,
434
  'pillar_content' => 1,
435
+ ]),
436
  $current,
437
  esc_html__( 'Pillar Content', 'rank-math' ),
438
  number_format_i18n( count( $pillars ) )
466
  return;
467
  }
468
 
469
+ $meta_query = [];
470
 
471
  // Check for pillar content filter.
472
  if ( ! empty( $_GET['pillar_content'] ) ) {
473
+ $meta_query[] = [
474
  'key' => 'rank_math_pillar_content',
475
  'value' => 'on',
476
+ ];
477
  }
478
 
479
  // Check for pillar seo filter.
480
  if ( ! empty( $_GET['seo-filter'] ) ) {
481
  $filter = $_GET['seo-filter'];
482
+ $hash = [
483
+ 'empty-fk' => [
484
  'key' => 'rank_math_focus_keyword',
485
  'compare' => 'NOT EXISTS',
486
+ ],
487
+ 'bad-seo' => [
488
  'key' => 'rank_math_seo_score',
489
  'value' => 50,
490
  'compare' => '<=',
491
  'type' => 'numeric',
492
+ ],
493
+ 'good-seo' => [
494
  'key' => 'rank_math_seo_score',
495
+ 'value' => [ 51, 80 ],
496
  'compare' => 'BETWEEN',
497
+ ],
498
+ 'great-seo' => [
499
  'key' => 'rank_math_seo_score',
500
  'value' => 80,
501
  'compare' => '>',
502
+ ],
503
+ 'noindexed' => [
504
  'key' => 'rank_math_robots',
505
  'value' => 'noindex',
506
  'compare' => 'LIKE',
507
+ ],
508
+ ];
509
 
510
  if ( isset( $hash[ $filter ] ) ) {
511
  $meta_query[] = $hash[ $filter ];
537
 
538
  foreach ( $data as $key => $value ) {
539
 
540
+ if ( ! in_array( $key, [ 'focus_keyword', 'title', 'description', 'image_alt', 'image_title' ] ) ) {
541
  continue;
542
  }
543
 
544
  if ( 'image_title' === $key ) {
545
+ wp_update_post([
546
  'ID' => $post_id,
547
  'post_title' => $value,
548
+ ]);
549
  continue;
550
  }
551
 
includes/admin/class-registration.php CHANGED
@@ -71,7 +71,7 @@ class Registration {
71
  $this->action( 'admin_menu', 'admin_menu' );
72
  $this->action( 'admin_init', 'redirect_to_welcome' );
73
  $this->action( 'cmb2_admin_init', 'registration_form' );
74
- $this->action( 'admin_post_rank_math_save_wizard', 'save_wizard' );
75
  $this->action( 'admin_post_rank_math_skip_wizard', 'skip_wizard' );
76
  $this->action( 'admin_init', 'render_page', 30 );
77
  }
@@ -244,7 +244,7 @@ class Registration {
244
  /**
245
  * Execute save handler for current step.
246
  */
247
- public function save_wizard() {
248
 
249
  // If no form submission, bail.
250
  if ( empty( $_POST ) || 'register' !== $_POST['step'] ) {
@@ -318,12 +318,11 @@ class Registration {
318
  * @return string
319
  */
320
  private function get_view( $view ) {
321
-
322
  if ( 'navigation' === $view ) {
323
- return Admin_Helper::get_view( 'wizard/no-navigation' );
324
  }
325
 
326
- return Admin_Helper::get_view( "wizard/{$view}" );
327
  }
328
 
329
  /**
71
  $this->action( 'admin_menu', 'admin_menu' );
72
  $this->action( 'admin_init', 'redirect_to_welcome' );
73
  $this->action( 'cmb2_admin_init', 'registration_form' );
74
+ $this->action( 'admin_post_rank_math_save_registration', 'save_registration' );
75
  $this->action( 'admin_post_rank_math_skip_wizard', 'skip_wizard' );
76
  $this->action( 'admin_init', 'render_page', 30 );
77
  }
244
  /**
245
  * Execute save handler for current step.
246
  */
247
+ public function save_registration() {
248
 
249
  // If no form submission, bail.
250
  if ( empty( $_POST ) || 'register' !== $_POST['step'] ) {
318
  * @return string
319
  */
320
  private function get_view( $view ) {
 
321
  if ( 'navigation' === $view ) {
322
+ $view = 'no-navigation';
323
  }
324
 
325
+ return rank_math()->admin_dir() . "wizard/views/{$view}.php";
326
  }
327
 
328
  /**
includes/admin/class-serp-checklist.php CHANGED
@@ -209,9 +209,9 @@ class Serp_Checklist {
209
  'content-readability' => array(
210
  'contentHasTOC' => array(
211
  /* translators: link to kb article */
212
- 'ok' => sprintf( esc_html__( 'You seem to be using a %s to break-down your text.', 'rank-math' ), '<a href="' . KB::get( 'toc' ) . '" target="_blank">Table of Contents plugin</a>' ),
213
  /* translators: link to kb article */
214
- 'fail' => sprintf( esc_html__( 'You don\'t seem to be using a %s.', 'rank-math' ), '<a href="' . KB::get( 'toc' ) . '" target="_blank">Table of Contents plugin</a>' ),
215
  'empty' => esc_html__( 'Use Table of Content to break-down your text.', 'rank-math' ),
216
  'tooltip' => esc_html__( ' Table of Contents help break down content into smaller, digestible chunks. It makes reading easier which in turn results in better rankings.', 'rank-math' ),
217
  'score' => 2,
209
  'content-readability' => array(
210
  'contentHasTOC' => array(
211
  /* translators: link to kb article */
212
+ 'ok' => sprintf( __( 'You seem to be using a <a href="%s" target="_blank">Table of Contents plugin</a> to break-down your text.', 'rank-math' ), KB::get( 'toc' ) ),
213
  /* translators: link to kb article */
214
+ 'fail' => sprintf( __( 'You don\'t seem to be using a <a href="%s" target="_blank">Table of Contents plugin</a>.', 'rank-math' ), KB::get( 'toc' ) ),
215
  'empty' => esc_html__( 'Use Table of Content to break-down your text.', 'rank-math' ),
216
  'tooltip' => esc_html__( ' Table of Contents help break down content into smaller, digestible chunks. It makes reading easier which in turn results in better rankings.', 'rank-math' ),
217
  'score' => 2,
includes/admin/class-serp-preview.php CHANGED
@@ -106,7 +106,7 @@ class Serp_Preview {
106
 
107
  <div class="rank-math-ui">
108
  <a href="#" class="button button-secondary rank-math-edit-snippet"><span class="dashicons dashicons-edit"></span><?php esc_html_e( 'Edit Snippet', 'rank-math' ); ?></a>
109
- <a href="#" class="button button-secondary rank-math-edit-snippet hidden"><span class="dashicons dashicons-no-alt"></span> Close Editor</a>
110
  </div>
111
 
112
  </div>
@@ -174,16 +174,8 @@ class Serp_Preview {
174
  if ( empty( $termlink ) ) {
175
  $permalink_format = $permalink;
176
  } else {
177
-
178
- $slugs = array();
179
- $ancestors = get_ancestors( $term_id, $term->taxonomy, 'taxonomy' );
180
-
181
- foreach ( (array) $ancestors as $ancestor ) {
182
- $ancestor_term = get_term( $ancestor, $term->taxonomy );
183
- $slugs[] = $ancestor_term->slug;
184
- }
185
-
186
- $slugs = array_reverse( $slugs );
187
  $slugs[] = '%postname%';
188
  $termlink = str_replace( "%$term->taxonomy%", implode( '/', $slugs ), $termlink );
189
  $permalink_format = home_url( user_trailingslashit( $termlink, 'category' ) );
@@ -194,6 +186,50 @@ class Serp_Preview {
194
  return compact( 'title_format', 'desc_format', 'url', 'permalink', 'permalink_format' );
195
  }
196
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  /**
198
  * Get user data for SERP preview.
199
  *
@@ -222,15 +258,6 @@ class Serp_Preview {
222
  * @return string
223
  */
224
  private function get_author_permalink( $link ) {
225
- global $user_id;
226
-
227
- $user = get_userdata( $user_id );
228
- $nicename = '';
229
-
230
- if ( ! empty( $user->user_nicename ) ) {
231
- $nicename = $user->user_nicename;
232
- }
233
-
234
  $link = str_replace( '%author%', '%postname%', $link );
235
  return home_url( user_trailingslashit( $link ) );
236
  }
106
 
107
  <div class="rank-math-ui">
108
  <a href="#" class="button button-secondary rank-math-edit-snippet"><span class="dashicons dashicons-edit"></span><?php esc_html_e( 'Edit Snippet', 'rank-math' ); ?></a>
109
+ <a href="#" class="button button-secondary rank-math-edit-snippet hidden"><span class="dashicons dashicons-no-alt"></span> <?php esc_html_e( 'Close Editor', 'rank-math' ); ?></a>
110
  </div>
111
 
112
  </div>
174
  if ( empty( $termlink ) ) {
175
  $permalink_format = $permalink;
176
  } else {
177
+ $slugs = $this->get_ancestors( $term_id, $term->taxonomy );
178
+ $termlink = $this->get_termlink( $termlink, $term->taxonomy );
 
 
 
 
 
 
 
 
179
  $slugs[] = '%postname%';
180
  $termlink = str_replace( "%$term->taxonomy%", implode( '/', $slugs ), $termlink );
181
  $permalink_format = home_url( user_trailingslashit( $termlink, 'category' ) );
186
  return compact( 'title_format', 'desc_format', 'url', 'permalink', 'permalink_format' );
187
  }
188
 
189
+ /**
190
+ * Filter term link.
191
+ *
192
+ * @param string $termlink Term Link.
193
+ * @param string $taxonomy Taxonomy name.
194
+ *
195
+ * @return string
196
+ */
197
+ private function get_termlink( $termlink, $taxonomy ) {
198
+ if ( 'category' === $taxonomy && GlobalHelper::get_settings( 'general.strip_category_base' ) ) {
199
+ $termlink = str_replace( '/category/', '', $termlink );
200
+ }
201
+
202
+ if ( Conditional::is_woocommerce_active() && 'product_cat' === $taxonomy && GlobalHelper::get_settings( 'general.wc_remove_category_base' ) ) {
203
+ $termlink = str_replace( 'product-category', '', $termlink );
204
+ }
205
+
206
+ return $termlink;
207
+ }
208
+
209
+ /**
210
+ * Whether to add ancestors in taxonomy page.
211
+ *
212
+ * @param int $term_id Term ID.
213
+ * @param string $taxonomy Taxonomy name.
214
+ *
215
+ * @return array
216
+ */
217
+ private function get_ancestors( $term_id, $taxonomy ) {
218
+ $slugs = [];
219
+
220
+ if ( Conditional::is_woocommerce_active() && 'product_cat' === $taxonomy && GlobalHelper::get_settings( 'general.wc_remove_category_parent_slugs' ) ) {
221
+ return $slugs;
222
+ }
223
+
224
+ $ancestors = get_ancestors( $term_id, $taxonomy, 'taxonomy' );
225
+ foreach ( (array) $ancestors as $ancestor ) {
226
+ $ancestor_term = get_term( $ancestor, $taxonomy );
227
+ $slugs[] = $ancestor_term->slug;
228
+ }
229
+
230
+ return array_reverse( $slugs );
231
+ }
232
+
233
  /**
234
  * Get user data for SERP preview.
235
  *
258
  * @return string
259
  */
260
  private function get_author_permalink( $link ) {
 
 
 
 
 
 
 
 
 
261
  $link = str_replace( '%author%', '%postname%', $link );
262
  return home_url( user_trailingslashit( $link ) );
263
  }
includes/admin/class-setup-wizard.php CHANGED
@@ -11,13 +11,10 @@
11
  namespace RankMath\Admin;
12
 
13
  use RankMath\CMB2;
14
- use RankMath\Traits\Ajax;
15
  use RankMath\Traits\Hooker;
16
  use RankMath\Traits\Wizard;
17
- use RankMath\Helper as GlobalHelper;
18
  use RankMath\Admin\Importers\Detector;
19
- use RankMath\KB;
20
- use MyThemeShop\Helpers\WordPress;
21
 
22
  defined( 'ABSPATH' ) || exit;
23
 
@@ -26,14 +23,14 @@ defined( 'ABSPATH' ) || exit;
26
  */
27
  class Setup_Wizard {
28
 
29
- use Ajax, Hooker, Wizard;
30
 
31
  /**
32
  * Hold steps data.
33
  *
34
  * @var array
35
  */
36
- protected $steps = array();
37
 
38
  /**
39
  * Hold current step.
@@ -49,13 +46,6 @@ class Setup_Wizard {
49
  */
50
  protected $step_slug = '';
51
 
52
- /**
53
- * The text string array.
54
- *
55
- * @var array
56
- */
57
- protected $strings = null;
58
-
59
  /**
60
  * Top level admin page.
61
  *
@@ -70,11 +60,17 @@ class Setup_Wizard {
70
  */
71
  public $cmb = null;
72
 
 
 
 
 
 
 
 
73
  /**
74
  * The Constructor.
75
  */
76
  public function __construct() {
77
- $this->strings();
78
  $this->action( 'cmb2_admin_init', 'steps', 9 );
79
  $this->action( 'cmb2_admin_init', 'register_cmb2' );
80
  $this->action( 'admin_menu', 'add_admin_menu' );
@@ -91,6 +87,66 @@ class Setup_Wizard {
91
  $this->filter( 'rank_math/wizard/step/label_url', 'change_label_url' );
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * Register CMB2 option page for setup wizard.
96
  */
@@ -104,11 +160,42 @@ class Setup_Wizard {
104
  'classes' => 'wp-core-ui rank-math-ui',
105
  ) );
106
 
107
- isset( $this->steps[ $this->step ], $this->steps[ $this->step ]['form'] ) ? call_user_func( $this->steps[ $this->step ]['form'], $this ) : false;
108
-
109
  CMB2::pre_init( $this->cmb );
110
  }
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  /**
113
  * Execute save handler for current step.
114
  */
@@ -121,12 +208,8 @@ class Setup_Wizard {
121
 
122
  check_admin_referer( 'rank-math-wizard', 'security' );
123
 
124
- $show_content = true;
125
  $values = $this->cmb->get_sanitized_values( $_POST );
126
- if ( isset( $this->steps[ $this->step ]['handler'] ) ) {
127
- $show_content = call_user_func( $this->steps[ $this->step ]['handler'], $values, $this );
128
- GlobalHelper::is_configured( true );
129
- }
130
 
131
  $redirect = $show_content ? $this->step_next_link() : $_POST['_wp_http_referer'];
132
  if ( is_string( $show_content ) ) {
@@ -145,7 +228,7 @@ class Setup_Wizard {
145
  }
146
 
147
  $this->hook_suffix = add_submenu_page(
148
- null, esc_html( $this->strings['admin-menu'] ), esc_html( $this->strings['admin-menu'] ), 'manage_options', $this->slug, array( $this, 'admin_page' )
149
  );
150
  }
151
 
@@ -172,10 +255,10 @@ class Setup_Wizard {
172
  // Enqueue javascript.
173
  wp_enqueue_script( 'rank-math-wizard', rank_math()->plugin_url() . 'assets/admin/js/wizard.js', array( 'media-editor', 'select2-rm', 'rank-math-common' ), rank_math()->version, true );
174
 
175
- GlobalHelper::add_json( 'currentStep', $this->step );
176
- GlobalHelper::add_json( 'deactivated', esc_html__( 'Deactivated', 'rank-math' ) );
177
- GlobalHelper::add_json( 'confirm', esc_html__( 'Are you sure you want to import settings into Rank Math? Don\'t worry, your current configuration will be saved as a backup.', 'rank-math' ) );
178
- GlobalHelper::add_json( 'isConfigured', GlobalHelper::is_configured() );
179
 
180
  ob_start();
181
 
@@ -189,771 +272,31 @@ class Setup_Wizard {
189
  }
190
 
191
  /**
192
- * 3.b. Handles form for import page.
193
- */
194
- protected function import_form() {
195
- $detector = new Detector;
196
- $plugins = $detector->detect();
197
-
198
- $count = 0;
199
- foreach ( $plugins as $slug => $plugin ) {
200
- $checked = 'checked';
201
- $multi_checked = 'multicheck-checked';
202
- $choices = array_keys( $plugin['choices'] );
203
-
204
- if ( ( array_key_exists( 'yoast', $plugins ) || array_key_exists( 'yoast-premium', $plugins ) ) && 'aioseo' === $slug ) {
205
- $checked = '';
206
- $multi_checked = '';
207
- $choices = array();
208
- }
209
-
210
- $field_args = array(
211
- 'id' => 'import_from_' . $slug,
212
- 'type' => 'group',
213
- 'description' => '<input type="checkbox" class="import-data" name="import[]" value="' . $slug . '" ' . $checked . ' data-plugin="' . $plugin['name'] . '" />',
214
- 'before_group' => 0 === $count ? '<h3 class="import-label">' . esc_html__( 'Input Data From:', 'rank-math' ) . '</h3>' : '',
215
- 'repeatable' => false,
216
- 'options' => array(
217
- 'group_title' => $plugin['name'],
218
- 'sortable' => false,
219
- 'closed' => true,
220
- ),
221
- );
222
-
223
- $group_id = $this->cmb->add_field( $field_args );
224
-
225
- if ( ! function_exists( 'is_plugin_active' ) ) {
226
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
227
- }
228
-
229
- $is_active = is_plugin_active( $plugin['file'] );
230
- /* translators: 1 is plugin name, 2 is link to Knowledge Base article, 3 Recommended message */
231
- $desc = sprintf( esc_html__( 'Import settings and meta data from the %1$s plugin. The process may take a few minutes if you have a large number of posts or pages. %2$s', 'rank-math' ) . ( is_plugin_active( $plugin['file'] ) ? '<br>' . esc_html__( ' %1$s plugin will be disabled automatically moving forward to avoid conflicts. %3$s', 'rank-math' ) : '' ), $plugin['name'], '<a href="' . KB::get( 'seo-import' ) . '" target="_blank">' . esc_html__( 'Learn more about the import process here.', 'rank-math' ) . '</a>', '<strong>' . __( 'It is thus recommended to import the data you need now.', 'rank-math' ) . '</strong>' );
232
-
233
- if ( 'aio-rich-snippet' === $slug ) {
234
- /* translators: 1 is plugin name, 2 is link to Knowledge Base article, 3 Recommended message */
235
- $desc = sprintf( esc_html__( 'Import meta data from the %1$s plugin. The process may take a few minutes if you have a large number of posts or pages. %2$s', 'rank-math' ) . ( is_plugin_active( $plugin['file'] ) ? '<br>' . esc_html__( ' %1$s plugin will be disabled automatically moving forward to avoid conflicts. %3$s', 'rank-math' ) : '' ), $plugin['name'], '<a href="' . KB::get( 'seo-import' ) . '" target="_blank">' . esc_html__( 'Learn more about the import process here.', 'rank-math' ) . '</a>', '<strong>' . __( 'It is thus recommended to import the data you need now.', 'rank-math' ) . '</strong>' );
236
- }
237
-
238
- foreach ( $plugin['choices'] as $ck => $choice ) {
239
- $this->cmb->add_group_field( $group_id, array(
240
- 'id' => $slug . '_meta',
241
- 'type' => 'multicheck',
242
- 'repeatable' => false,
243
- 'desc' => $desc,
244
- 'options' => $plugin['choices'],
245
- 'default' => $choices,
246
- 'dep' => array( array( 'import_from', $slug ) ),
247
- 'classes' => 'nob nopb cmb-multicheck-inline with-description ' . $multi_checked . ' ' . $is_active,
248
- 'attributes' => array( 'data-active' => $is_active ),
249
- ));
250
- }
251
-
252
- $count++;
253
- }
254
-
255
- }
256
-
257
- /**
258
- * 4.b. Handles form for yoursite page.
259
- */
260
- protected function yoursite_form() {
261
- $displayname = $this->get_site_display_name();
262
-
263
- // Default value for logo.
264
- $logo_url = GlobalHelper::get_settings( 'titles.knowledgegraph_logo' );
265
-
266
- // Check if it's a MTS theme.
267
- if ( defined( 'MTS_THEME_NAME' ) && MTS_THEME_NAME ) {
268
- $theme_options = get_option( MTS_THEME_NAME );
269
- $logo_url = isset( $theme_options['mts_logo'] ) ? wp_get_attachment_url( $theme_options['mts_logo'] ) : $logo_url;
270
- } elseif ( current_theme_supports( 'custom-logo' ) && ! empty( get_theme_mod( 'custom_logo' ) ) ) {
271
- $logo_url = wp_get_attachment_url( get_theme_mod( 'custom_logo' ) );
272
- }
273
-
274
- $default = get_transient( '_rank_math_site_type' );
275
- $default = $default ? $default : ( class_exists( 'Easy_Digital_Downloads' ) || class_exists( 'WooCommerce' ) ? 'webshop' : 'blog' );
276
- $this->cmb->add_field( array(
277
- 'id' => 'site_type',
278
- 'type' => 'select',
279
- /* translators: sitename */
280
- 'name' => sprintf( esc_html__( '%1$s is a&hellip;', 'rank-math' ), $displayname ),
281
- 'options' => array(
282
- 'blog' => esc_html__( 'Personal Blog', 'rank-math' ),
283
- 'news' => esc_html__( 'Community Blog/News Site', 'rank-math' ),
284
- 'portfolio' => esc_html__( 'Personal Portfolio', 'rank-math' ),
285
- 'business' => esc_html__( 'Small Business Site', 'rank-math' ),
286
- 'webshop' => esc_html__( 'Webshop', 'rank-math' ),
287
- 'otherpersonal' => esc_html__( 'Other Personal Website', 'rank-math' ),
288
- 'otherbusiness' => esc_html__( 'Other Business Website', 'rank-math' ),
289
- ),
290
- 'default' => $default,
291
- ) );
292
-
293
- $this->cmb->add_field( array(
294
- 'id' => 'business_type',
295
- 'type' => 'select',
296
- 'name' => esc_html__( 'Business Type', 'rank-math' ),
297
- 'desc' => esc_html__( 'Select the type that best describes your business. If you can\'t find one that applies exactly, use the generic "Organization" or "Local Business" types.', 'rank-math' ),
298
- 'options' => GlobalHelper::choices_business_types(),
299
- 'attributes' => array(
300
- 'data-s2' => '',
301
- 'data-default' => GlobalHelper::get_settings( 'titles.local_business_type' ) ? '0' : '1',
302
- ),
303
- 'default' => GlobalHelper::get_settings( 'titles.local_business_type' ),
304
- 'dep' => array(
305
- array( 'site_type', 'news' ),
306
- array( 'site_type', 'business' ),
307
- array( 'site_type', 'webshop' ),
308
- array( 'site_type', 'otherbusiness' ),
309
- ),
310
- ) );
311
-
312
- $this->cmb->add_field( array(
313
- 'id' => 'company_name',
314
- 'type' => 'text',
315
- 'name' => esc_html__( 'Company Name', 'rank-math' ),
316
- 'default' => GlobalHelper::get_settings( 'titles.knowledgegraph_name', $displayname ),
317
- 'dep' => array(
318
- array( 'site_type', 'news' ),
319
- array( 'site_type', 'business' ),
320
- array( 'site_type', 'webshop' ),
321
- array( 'site_type', 'otherbusiness' ),
322
- ),
323
- ) );
324
-
325
- $this->cmb->add_field( array(
326
- 'id' => 'company_logo',
327
- 'type' => 'file',
328
- 'name' => esc_html__( 'Logo for Google', 'rank-math' ),
329
- 'default' => $logo_url,
330
- 'desc' => __( '<strong>Min Size: 160Χ90px, Max Size: 1920X1080px</strong>.<br />A squared image is preferred by the search engines.', 'rank-math' ),
331
- 'options' => array( 'url' => false ),
332
- ) );
333
-
334
- $this->cmb->add_field( array(
335
- 'id' => 'open_graph_image',
336
- 'type' => 'file',
337
- 'name' => esc_html__( 'Default Social Share Image', 'rank-math' ),
338
- 'desc' => __( 'When a featured image is not set, this image will be used as a thumbnail when your post is shared on Facebook. <strong>Recommended image size 1200 x 630 pixels.</strong>', 'rank-math' ),
339
- 'options' => array( 'url' => false ),
340
- 'default' => GlobalHelper::get_settings( 'titles.open_graph_image' ),
341
- ) );
342
- }
343
-
344
- /**
345
- * 4.c. Handles save button from yoursite page.
346
- *
347
- * @param array $values Array of values of step to process.
348
- */
349
- protected function yoursite_handler( $values ) {
350
- $settings = wp_parse_args( rank_math()->settings->all_raw(), array(
351
- 'titles' => '',
352
- 'sitemap' => '',
353
- ) );
354
- $current_user = wp_get_current_user();
355
- $values = wp_parse_args( $values, array(
356
- 'author_name' => $current_user->display_name,
357
- 'company_logo' => '',
358
- 'company_logo_id' => '',
359
- 'open_graph_image' => '',
360
- 'open_graph_image_id' => '',
361
- ) );
362
-
363
- // Local SEO.
364
- switch ( $values['site_type'] ) {
365
- case 'blog':
366
- case 'portfolio':
367
- $settings['titles']['knowledgegraph_type'] = 'person';
368
- $settings['titles']['knowledgegraph_name'] = $values['author_name'];
369
- $settings['titles']['knowledgegraph_logo'] = $values['company_logo'];
370
- $settings['titles']['knowledgegraph_logo_id'] = $values['company_logo_id'];
371
- break;
372
-
373
- case 'news':
374
- case 'webshop':
375
- case 'business':
376
- case 'otherbusiness':
377
- $settings['titles']['knowledgegraph_type'] = 'company';
378
- $settings['titles']['knowledgegraph_name'] = $values['company_name'];
379
- $settings['titles']['knowledgegraph_logo'] = $values['company_logo'];
380
- $settings['titles']['local_business_type'] = $values['business_type'];
381
- $settings['titles']['knowledgegraph_logo_id'] = $values['company_logo_id'];
382
- break;
383
-
384
- case 'otherpersonal':
385
- $settings['titles']['knowledgegraph_type'] = 'person';
386
- $settings['titles']['knowledgegraph_name'] = $values['author_name'];
387
- break;
388
- }
389
-
390
- $settings['titles']['open_graph_image'] = $values['open_graph_image'];
391
- $settings['titles']['open_graph_image_id'] = $values['open_graph_image_id'];
392
-
393
- // Check and delete.
394
- if ( empty( $values['open_graph_image_id'] ) ) {
395
- unset( $settings['titles']['open_graph_image'] );
396
- unset( $settings['titles']['open_graph_image_id'] );
397
- }
398
- if ( empty( $values['company_logo_id'] ) ) {
399
- unset( $settings['titles']['knowledgegraph_logo'] );
400
- unset( $settings['titles']['knowledgegraph_logo_id'] );
401
- }
402
-
403
- // Post Types.
404
- foreach ( GlobalHelper::get_accessible_post_types() as $post_type => $label ) {
405
- if ( 'attachment' === $post_type ) {
406
- continue;
407
- }
408
- $settings['titles'][ "pt_{$post_type}_add_meta_box" ] = 'on';
409
- }
410
-
411
- // Taxonomies.
412
- $taxonomies = Admin_Helper::get_taxonomies_options();
413
- array_shift( $taxonomies );
414
- foreach ( $taxonomies as $taxonomy => $label ) {
415
- $settings['titles'][ "tax_{$taxonomy}_add_meta_box" ] = 'on';
416
- }
417
-
418
- GlobalHelper::update_all_settings( null, $settings['titles'], null );
419
-
420
- $business_type = array( 'news', 'business', 'webshop', 'otherbusiness' );
421
- $modules = array( 'local-seo' => in_array( $values['site_type'], $business_type ) ? 'on' : 'off' );
422
- $users = get_users( array( 'role__in' => array( 'administrator', 'editor', 'author', 'contributor' ) ) );
423
-
424
- if ( count( $users ) > 1 && ! is_plugin_active( 'members/members.php' ) ) {
425
- $modules['role-manager'] = 'on';
426
- }
427
-
428
- set_transient( '_rank_math_site_type', $values['site_type'] );
429
- GlobalHelper::update_modules( $modules );
430
-
431
- return true;
432
- }
433
-
434
- /**
435
- * 6.b. Handles form for search console page.
436
- */
437
- protected function searchconsole_form() {
438
-
439
- $sc_dep = '';
440
- if ( ! GlobalHelper::is_module_active( 'search-console' ) ) {
441
- $this->cmb->add_field( array(
442
- 'id' => 'search-console',
443
- 'type' => 'switch',
444
- 'name' => esc_html__( 'Search Console', 'rank-math' ),
445
- 'desc' => esc_html__( 'Connect Rank Math with Google Search Console to see the most important information from Google directly in your WordPress dashboard.', 'rank-math' ),
446
- 'default' => 'off',
447
- ) );
448
- $sc_dep = array( array( 'search-console', 'on' ) );
449
- }
450
-
451
- $this->cmb->add_field( array(
452
- 'id' => 'rank_math_sc_step2',
453
- 'type' => 'raw',
454
- /* translators: count */
455
- 'content' => '<br>',
456
- ));
457
-
458
- $data = GlobalHelper::search_console_data();
459
- $primary = '<button class="button button-primary">' . ( $data['authorized'] ? esc_html__( 'De-authorize Account', 'rank-math' ) : esc_html__( 'Authorize', 'rank-math' ) ) . '</button>';
460
- $secondary = '<a href="' . esc_url( GlobalHelper::get_console_auth_url() ) . '" class="button button-secondary custom"' . ( $data['authorized'] ? ' style="display:none;"' : '' ) . '>' . esc_html__( 'Get Authorization Code', 'rank-math' ) . '</a><br />';
461
- $this->cmb->add_field( array(
462
- 'id' => 'console_authorization_code',
463
- 'type' => 'text',
464
- 'name' => esc_html__( 'Search Console', 'rank-math' ),
465
- 'desc' => esc_html__( 'Authorize Rank Math to access data from the Google Search Console.', 'rank-math' ),
466
- 'attributes' => array( 'data-authorized' => $data['authorized'] ? 'true' : 'false' ),
467
- 'after' => $primary . $secondary,
468
- 'dep' => $sc_dep,
469
- ) );
470
-
471
- $profile = GlobalHelper::get_settings( 'general.console_profile' );
472
-
473
- $this->cmb->add_field( array(
474
- 'id' => 'console_profile',
475
- 'type' => 'select',
476
- 'name' => esc_html__( 'Search Console Profile', 'rank-math' ),
477
- 'desc' => esc_html__( 'After authenticating with Google Search Console, select your website from the dropdown list.', 'rank-math' ) .
478
- /* translators: Link to setting screen */
479
- '<br><br><span style="color: orange;">' . sprintf( __( 'Is your site not listed? <a href="%1$s" target="_blank">Click here</a> to get your website verified.', 'rank-math' ), GlobalHelper::get_admin_url( 'options-general#setting-panel-webmaster' ) ) . '</span>',
480
- 'options' => $profile ? array( $profile => $profile ) : $data['profiles'],
481
- 'default' => $profile,
482
- 'after' => '<button class="button button-primary hidden" ' . ( $data['authorized'] ? '' : 'disabled="disabled"' ) . '>' . esc_html__( 'Refresh Sites', 'rank-math' ) . '</button>',
483
- 'attributes' => $data['authorized'] ? array() : array( 'disabled' => 'disabled' ),
484
- 'dep' => $sc_dep,
485
- ) );
486
- }
487
-
488
- /**
489
- * 6.c. Handles save button from search console page.
490
- *
491
- * @param array $values Array of values of step to process.
492
- */
493
- protected function searchconsole_handler( $values ) {
494
- $settings = rank_math()->settings->all_raw();
495
-
496
- if ( isset( $values['console_profile'] ) ) {
497
- $settings['general']['console_profile'] = $values['console_profile'];
498
- GlobalHelper::update_modules( array( 'search-console' => 'on' ) );
499
- } else {
500
- GlobalHelper::update_modules( array( 'search-console' => 'off' ) );
501
- }
502
- GlobalHelper::update_all_settings( $settings['general'], null, null );
503
-
504
- return true;
505
- }
506
-
507
- /**
508
- * 7.b. Handles form for sitemaps page.
509
- */
510
- protected function sitemaps_form() {
511
-
512
- // Sitemap.
513
- $this->cmb->add_field( array(
514
- 'id' => 'sitemap',
515
- 'type' => 'switch',
516
- 'name' => esc_html__( 'Sitemaps', 'rank-math' ),
517
- 'desc' => esc_html__( 'XML Sitemaps help search engines index your website&#039;s content more effectively.', 'rank-math' ),
518
- 'default' => GlobalHelper::is_module_active( 'sitemap' ) ? 'on' : 'off',
519
- ) );
520
-
521
- $this->cmb->add_field( array(
522
- 'id' => 'include_images',
523
- 'type' => 'switch',
524
- 'name' => esc_html__( 'Include Images', 'rank-math' ),
525
- 'desc' => esc_html__( 'Include reference to images from the post content in sitemaps. This helps search engines index your images better.', 'rank-math' ),
526
- 'default' => GlobalHelper::get_settings( 'sitemap.include_images' ) ? 'on' : 'off',
527
- 'classes' => 'features-child',
528
- 'dep' => array( array( 'sitemap', 'on' ) ),
529
- ) );
530
-
531
- // Post Types.
532
- $p_defaults = array();
533
- $post_types = GlobalHelper::choices_post_types();
534
- unset( $post_types['attachment'] );
535
- foreach ( $post_types as $post_type => $object ) {
536
- if ( true === GlobalHelper::get_settings( "sitemap.pt_{$post_type}_sitemap" ) ) {
537
- $p_defaults[] = $post_type;
538
- }
539
- }
540
- $this->cmb->add_field( array(
541
- 'id' => 'sitemap_post_types',
542
- 'type' => 'multicheck',
543
- 'name' => esc_html__( 'Public Post Types', 'rank-math' ),
544
- 'desc' => esc_html__( 'Select post types to enable SEO options for them and include them in the sitemap.', 'rank-math' ),
545
- 'options' => $post_types,
546
- 'default' => $p_defaults,
547
- 'classes' => 'features-child cmb-multicheck-inline' . ( count( $post_types ) === count( $p_defaults ) ? ' multicheck-checked' : '' ),
548
- 'dep' => array( array( 'sitemap', 'on' ) ),
549
- ) );
550
-
551
- // Taxonomies.
552
- $t_defaults = array();
553
- $taxonomies = GlobalHelper::get_accessible_taxonomies();
554
-
555
- unset( $taxonomies['post_tag'], $taxonomies['post_format'], $taxonomies['product_tag'] );
556
- $taxonomies = wp_list_pluck( $taxonomies, 'label', 'name' );
557
- foreach ( $taxonomies as $taxonomy => $label ) {
558
- if ( true === GlobalHelper::get_settings( "sitemap.tax_{$taxonomy}_sitemap" ) ) {
559
- $t_defaults[] = $taxonomy;
560
- }
561
- }
562
- $t_defaults = ! empty( $t_defaults ) ? $t_defaults : array( 'category' );
563
-
564
- $this->cmb->add_field( array(
565
- 'id' => 'sitemap_taxonomies',
566
- 'type' => 'multicheck',
567
- 'name' => esc_html__( 'Public Taxonomies', 'rank-math' ),
568
- 'desc' => esc_html__( 'Select taxonomies to enable SEO options for them and include them in the sitemap.', 'rank-math' ),
569
- 'options' => $taxonomies,
570
- 'default' => $t_defaults,
571
- 'classes' => 'features-child cmb-multicheck-inline' . ( count( $taxonomies ) === count( $t_defaults ) ? ' multicheck-checked' : '' ),
572
- 'dep' => array( array( 'sitemap', 'on' ) ),
573
- ) );
574
- }
575
-
576
- /**
577
- * 7.c. Handles save button from sitemaps page.
578
- *
579
- * @param array $values Array of values of step to process.
580
- */
581
- protected function sitemaps_handler( $values ) {
582
- $settings = rank_math()->settings->all_raw();
583
- GlobalHelper::update_modules( array( 'sitemap' => $values['sitemap'] ) );
584
-
585
- if ( 'on' === $values['sitemap'] ) {
586
- $settings['sitemap']['include_images'] = $values['include_images'];
587
-
588
- // Sitemaps - Post Types.
589
- $post_types = GlobalHelper::choices_post_types();
590
- if ( ! isset( $values['sitemap_post_types'] ) ) {
591
- $values['sitemap_post_types'] = array();
592
- }
593
- foreach ( $post_types as $post_type => $object ) {
594
- $settings['sitemap'][ "pt_{$post_type}_sitemap" ] = in_array( $post_type, $values['sitemap_post_types'] ) ? 'on' : 'off';
595
- }
596
-
597
- // Sitemaps - Taxonomies.
598
- $taxonomies = GlobalHelper::get_accessible_taxonomies();
599
- $taxonomies = wp_list_pluck( $taxonomies, 'label', 'name' );
600
- if ( ! isset( $values['sitemap_taxonomies'] ) ) {
601
- $values['sitemap_taxonomies'] = array();
602
- }
603
- foreach ( $taxonomies as $taxonomy => $label ) {
604
- $settings['sitemap'][ "tax_{$taxonomy}_sitemap" ] = in_array( $taxonomy, $values['sitemap_taxonomies'] ) ? 'on' : 'off';
605
- }
606
-
607
- GlobalHelper::update_all_settings( null, null, $settings['sitemap'] );
608
- }
609
-
610
- GlobalHelper::schedule_flush_rewrite();
611
- return true;
612
- }
613
-
614
- /**
615
- * 7.b. Handles form for optimization page.
616
- */
617
- protected function optimization_form() {
618
-
619
- $this->cmb->add_field( array(
620
- 'id' => 'noindex_empty_taxonomies',
621
- 'type' => 'switch',
622
- 'name' => esc_html__( 'Noindex Empty Category and Tag Archives', 'rank-math' ),
623
- 'desc' => wp_kses_post( __( 'Setting empty archives to <code>noindex</code> is useful for avoiding indexation of thin content pages and dilution of page rank. As soon as a post is added, the page is updated to <code>index</code>.', 'rank-math' ) ),
624
- 'default' => GlobalHelper::get_settings( 'titles.noindex_empty_taxonomies' ) ? 'on' : 'off',
625
- ) );
626
-
627
- $this->cmb->add_field( array(
628
- 'id' => 'nofollow_image_links',
629
- 'type' => 'switch',
630
- 'name' => esc_html__( 'Nofollow Image File Links', 'rank-math' ),
631
- 'desc' => wp_kses_post( __( 'Automatically add <code>rel="nofollow"</code> attribute for links pointing to external image files. The attribute is dynamically applied when the content is displayed, and the stored content is not changed.', 'rank-math' ) ),
632
- 'default' => GlobalHelper::get_settings( 'general.nofollow_image_links' ) ? 'on' : 'off',
633
- ) );
634
-
635
- $this->cmb->add_field( array(
636
- 'id' => 'nofollow_external_links',
637
- 'type' => 'switch',
638
- 'name' => esc_html__( 'Nofollow External Links', 'rank-math' ),
639
- 'desc' => wp_kses_post( __( 'Automatically add <code>rel="nofollow"</code> attribute for external links appearing in your posts, pages, and other post types. The attribute is dynamically applied when the content is displayed, and the stored content is not changed.', 'rank-math' ) ),
640
- 'default' => GlobalHelper::get_settings( 'general.nofollow_external_links' ) ? 'on' : 'off',
641
- ) );
642
-
643
- $this->cmb->add_field( array(
644
- 'id' => 'new_window_external_links',
645
- 'type' => 'switch',
646
- 'name' => esc_html__( 'Open External Links in New Tab/Window', 'rank-math' ),
647
- 'desc' => wp_kses_post( __( 'Automatically add a <code>target="_blank"</code> attribute to external links appearing in your posts, pages, and other post types. The attributes are applied when the content is displayed, which does not change the stored content.', 'rank-math' ) ),
648
- 'default' => GlobalHelper::get_settings( 'general.new_window_external_links' ) ? 'on' : 'off',
649
- ) );
650
-
651
- $this->cmb->add_field( array(
652
- 'id' => 'strip_category_base',
653
- 'type' => 'switch',
654
- 'name' => esc_html__( 'Strip Category Base', 'rank-math' ),
655
- /* translators: Link to kb article */
656
- 'desc' => sprintf( wp_kses_post( __( 'Remove /category/ from category archive URLs. <a href="%s" target="_blank">Why do this?</a><br>E.g. <code>example.com/category/my-category/</code> becomes <code>example.com/my-category</code>', 'rank-math' ) ), KB::get( 'remove-category-base' ) ),
657
- 'default' => GlobalHelper::get_settings( 'general.strip_category_base' ) ? 'on' : 'off',
658
- ) );
659
- }
660
-
661
- /**
662
- * Optimization save handler
663
- *
664
- * @param array $values Array of values of step to process.
665
- */
666
- protected function optimization_handler( $values ) {
667
- $settings = rank_math()->settings->all_raw();
668
-
669
- $settings['general']['strip_category_base'] = $values['strip_category_base'];
670
- $settings['titles']['noindex_empty_taxonomies'] = $values['noindex_empty_taxonomies'];
671
-
672
- if ( isset( $values['attachment_redirect_urls'] ) && 'on' === $values['attachment_redirect_urls'] ) {
673
- $settings['general']['attachment_redirect_urls'] = $values['attachment_redirect_urls'];
674
- $settings['general']['attachment_redirect_default'] = $values['attachment_redirect_default'];
675
- }
676
-
677
- $settings['general']['nofollow_image_links'] = $values['nofollow_image_links'];
678
- $settings['general']['nofollow_external_links'] = $values['nofollow_external_links'];
679
- $settings['general']['new_window_external_links'] = $values['new_window_external_links'];
680
-
681
- GlobalHelper::is_configured( true );
682
- GlobalHelper::update_all_settings( $settings['general'], $settings['titles'], null );
683
- GlobalHelper::schedule_flush_rewrite();
684
-
685
- return true;
686
- }
687
-
688
- /**
689
- * Shows role step.
690
- */
691
- public function role() {
692
- ?>
693
- <header>
694
- <h1><?php esc_html_e( 'Role Manager', 'rank-math' ); ?></h1>
695
- <p><?php esc_html_e( 'Set capabilities here.', 'rank-math' ); ?></p>
696
- </header>
697
-
698
- <?php $this->cmb->show_form(); ?>
699
-
700
- <footer class="form-footer wp-core-ui rank-math-ui">
701
- <?php $this->skip_link(); ?>
702
- <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
703
- </footer>
704
- <?php
705
- }
706
-
707
- /**
708
- * Shows role step form.
709
- */
710
- public function role_form() {
711
- $defaults = GlobalHelper::get_roles_capabilities();
712
- $cap_count = count( GlobalHelper::get_capabilities() );
713
-
714
- foreach ( WordPress::get_roles() as $role => $label ) {
715
- $default = isset( $defaults[ $role ] ) ? $defaults[ $role ] : [];
716
- $this->cmb->add_field( array(
717
- 'id' => esc_attr( $role ),
718
- 'type' => 'multicheck_inline',
719
- 'name' => translate_user_role( $label ),
720
- 'options' => GlobalHelper::get_capabilities(),
721
- 'default' => $default,
722
- 'classes' => 'cmb-big-labels' . ( count( $default ) === $cap_count ? ' multicheck-checked' : '' ),
723
- ) );
724
- }
725
- }
726
-
727
- /**
728
- * Updates role values.
729
  *
730
- * @param array $roles Role values.
731
- * @return bool
732
- */
733
- public function role_handler( $roles ) {
734
-
735
- if ( empty( $roles ) ) {
736
- return false;
737
- }
738
-
739
- GlobalHelper::set_capabilities( $roles );
740
- return true;
741
- }
742
-
743
- /**
744
- * Shows redirection step.
745
- */
746
- public function redirection() {
747
- ?>
748
- <header>
749
- <h1><?php esc_html_e( '404 Monitor', 'rank-math' ); ?> </h1>
750
- <p><?php esc_html_e( 'Set default values for the 404 error monitor here.', 'rank-math' ); ?> <a href="<?php KB::the( '404-monitor' ); ?>" target="_blank"><?php esc_html_e( 'Learn about the options here.', 'rank-math' ); ?></a></p>
751
- </header>
752
-
753
- <?php $this->cmb->show_form(); ?>
754
-
755
- <footer class="form-footer wp-core-ui rank-math-ui">
756
- <?php $this->skip_link(); ?>
757
- <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
758
- </footer>
759
- <?php
760
- }
761
-
762
- /**
763
- * Shows redirection step form.
764
- */
765
- public function redirection_form() {
766
-
767
- // 404 Monitor.
768
- $this->cmb->add_field( array(
769
- 'id' => '404_monitor',
770
- 'type' => 'switch',
771
- 'name' => esc_html__( '404 Monitor', 'rank-math' ),
772
- /* translators: Link to kb article */
773
- 'desc' => __( 'The 404 monitor will let you see if visitors or search engines bump into any <code>404 Not Found</code> error while browsing your site.', 'rank-math' ),
774
- 'default' => GlobalHelper::is_module_active( '404-monitor' ) ? 'on' : 'off',
775
- ) );
776
-
777
- // Redirections.
778
- $this->cmb->add_field( array(
779
- 'id' => 'redirection_title',
780
- 'type' => 'raw',
781
- 'content' => sprintf( '<br><header class="redirections-header"><h1 class="text-center">%1$s</h1><p class="text-center redirections-desc">%2$s %3$s</p>', esc_html__( 'Redirections', 'rank-math' ), esc_html__( 'Set default values for the redirection module from here.', 'rank-math' ), '<a href="' . KB::get( 'redirections' ) . '" target="_blank">' . esc_html__( 'Learn more about Redirections.', 'rank-math' ) . '</a></header>' ),
782
- ));
783
-
784
- $this->cmb->add_field( array(
785
- 'id' => 'redirections',
786
- 'type' => 'switch',
787
- 'name' => esc_html__( 'Redirections', 'rank-math' ),
788
- 'desc' => esc_html__( 'Set up temporary or permanent redirections. Combined with the 404 monitor, you can easily redirect faulty URLs on your site, or add custom redirections.', 'rank-math' ),
789
- 'default' => GlobalHelper::is_module_active( 'redirections' ) ? 'on' : 'off',
790
- ) );
791
- }
792
-
793
- /**
794
- * Updates redirection values.
795
  *
796
- * @param array $values Redirection values.
797
  * @return bool
798
  */
799
- public function redirection_handler( $values ) {
800
- // Modules.
801
- GlobalHelper::update_modules( array(
802
- '404-monitor' => $values['404_monitor'],
803
- 'redirections' => $values['redirections'],
804
- ) );
805
-
806
- return true;
807
- }
808
-
809
- /**
810
- * Shows misc step.
811
- */
812
- public function misc() {
813
- ?>
814
- <header>
815
- <h1><?php esc_html_e( 'Miscellaneous ', 'rank-math' ); ?> </h1>
816
- <p><?php esc_html_e( 'Control different settings for important aspects of your website here.', 'rank-math' ); ?></p>
817
- </header>
818
-
819
- <?php $this->cmb->show_form(); ?>
820
-
821
- <footer class="form-footer wp-core-ui rank-math-ui">
822
- <a href="<?php echo esc_url( GlobalHelper::get_admin_url() ); ?>" class="button button-secondary button-skip"><?php esc_html_e( 'Skip step', 'rank-math' ); ?></a>
823
- <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
824
- </footer>
825
- <?php
826
- }
827
-
828
- /**
829
- * Shows misc step form.
830
- */
831
- public function misc_form() {
832
-
833
- $this->cmb->add_field( array(
834
- 'id' => 'add_img_alt',
835
- 'type' => 'switch',
836
- 'name' => esc_html__( 'Add missing ALT attributes', 'rank-math' ),
837
- /* translators: Link to setting screen */
838
- 'desc' => sprintf( wp_kses_post( __( 'Add missing <code>alt</code> attribute for <code>img</code> tags in your post contents and featured images. This option will not change the stored content of the post, it adds the attribute on the fly when the content is displayed. You can see %s.', 'rank-math' ) ), '<a href="' . GlobalHelper::get_admin_url( 'options-general#setting-panel-images' ) . '" target="_blank">' . esc_html__( 'all options we offer here', 'rank-math' ) . '</a>' ),
839
- 'default' => GlobalHelper::get_settings( 'general.add_img_alt' ) ? 'on' : 'off',
840
- ) );
841
-
842
- $this->cmb->add_field( array(
843
- 'id' => 'rich_snippet',
844
- 'type' => 'switch',
845
- 'name' => esc_html__( 'Rich Snippet', 'rank-math' ),
846
- 'desc' => esc_html__( 'Use automatic structured data to mark up content, to help Google better understand your content\'s context for display in Search. You can set different defaults for your posts here.', 'rank-math' ),
847
- 'default' => GlobalHelper::is_module_active( 'rich-snippet' ) ? 'on' : 'off',
848
- ) );
849
-
850
- $rich_snippet = array( array( 'rich_snippet', 'on' ) );
851
- $richsnp_default = array(
852
- 'post' => 'article',
853
- 'product' => 'product',
854
- );
855
- foreach ( GlobalHelper::get_accessible_post_types() as $post_type ) {
856
- $object = get_post_type_object( $post_type );
857
-
858
- if ( 'product' === $post_type ) {
859
- $this->cmb->add_field( array(
860
- 'id' => 'pt_' . $post_type . '_default_rich_snippet',
861
- 'type' => 'radio_inline',
862
- /* translators: Post type name */
863
- 'name' => sprintf( esc_html__( 'Rich Snippet Type for %s', 'rank-math' ), $object->label ),
864
- 'desc' => __( 'Default rich snippet selected when creating a new product.', 'rank-math' ),
865
- 'options' => array(
866
- 'off' => esc_html__( 'None', 'rank-math' ),
867
- 'product' => esc_html__( 'Product', 'rank-math' ),
868
- ),
869
- 'default' => GlobalHelper::get_settings( 'titles.pt_' . $post_type . '_default_rich_snippet', ( isset( $richsnp_default[ $post_type ] ) ? $richsnp_default[ $post_type ] : 'product' ) ),
870
- ) );
871
-
872
- } elseif ( 'attachment' !== $post_type ) {
873
- $this->cmb->add_field( array(
874
- 'id' => 'pt_' . $post_type . '_default_rich_snippet',
875
- 'type' => 'select',
876
- /* translators: post_type label */
877
- 'name' => sprintf( esc_html__( 'Rich Snippet Type for %s', 'rank-math' ), $object->label ),
878
- 'desc' => esc_html__( 'Default rich snippet selected when creating a new post of this type. ', 'rank-math' ),
879
- 'options' => GlobalHelper::choices_rich_snippet_types( esc_html__( 'None (Click here to set one)', 'rank-math' ) ),
880
- 'dep' => $rich_snippet,
881
- 'default' => GlobalHelper::get_settings( 'titles.pt_' . $post_type . '_default_rich_snippet', ( isset( $richsnp_default[ $post_type ] ) ? $richsnp_default[ $post_type ] : 'none' ) ),
882
- ) );
883
- }
884
-
885
- // Article fields.
886
- $article_dep = array( 'relation' => 'and' ) + $rich_snippet;
887
- $article_dep[] = array( 'pt_' . $post_type . '_default_rich_snippet', 'article' );
888
- /* translators: Google article snippet doc link */
889
- $article_desc = 'person' === GlobalHelper::get_settings( 'titles.knowledgegraph_type' ) ? '<div class="notice notice-warning inline" style="margin-left:0;"><p>' . sprintf( __( 'Google does not allow Person as the Publisher for articles. Organization will be used instead. You can read more about this <a href="%s" target="_blank">here</a>.', 'rank-math' ), KB::get( 'article' ) ) . '</p></div>' : '';
890
- $this->cmb->add_field( array(
891
- 'id' => 'pt_' . $post_type . '_default_article_type',
892
- 'type' => 'radio_inline',
893
- 'name' => esc_html__( 'Article Type', 'rank-math' ),
894
- 'options' => array(
895
- 'Article' => esc_html__( 'Article', 'rank-math' ),
896
- 'BlogPosting' => esc_html__( 'Blog Post', 'rank-math' ),
897
- 'NewsArticle' => esc_html__( 'News Article', 'rank-math' ),
898
- ),
899
- 'default' => 'post' === $post_type ? 'BlogPosting' : 'Article',
900
- 'dep' => $article_dep,
901
- 'desc' => $article_desc,
902
- ) );
903
  }
904
- }
905
-
906
- /**
907
- * Updates misc values.
908
- *
909
- * @param array $values Misc values.
910
- * @return bool
911
- */
912
- public function misc_handler( $values ) {
913
- $settings = rank_math()->settings->all_raw();
914
- GlobalHelper::update_modules( array( 'rich-snippet' => $values['rich_snippet'] ) );
915
-
916
- // General.
917
- $settings['general']['add_img_alt'] = $values['add_img_alt'];
918
-
919
- // Rich Snippet.
920
- if ( 'on' === $values['rich_snippet'] ) {
921
- foreach ( GlobalHelper::get_accessible_post_types() as $post_type ) {
922
- if ( 'attachment' === $post_type ) {
923
- continue;
924
- }
925
-
926
- $id = 'pt_' . $post_type . '_default_rich_snippet';
927
- $article_type = 'pt_' . $post_type . '_default_article_type';
928
 
929
- $settings['titles'][ $id ] = $values[ $id ];
930
- $settings['titles'][ $article_type ] = $values[ $article_type ];
931
- }
932
- }
933
- GlobalHelper::update_all_settings( $settings['general'], $settings['titles'], null );
934
 
935
- return GlobalHelper::get_admin_url();
936
  }
937
 
938
  /**
939
- * Modify module status.
940
  *
941
- * @param array $modules Old modules instance.
942
- * @param string $module Module ID.
943
- * @param bool $action Enable/Disable.
944
- * @return array
945
  */
946
- public function modify_module( $modules, $module, $action = 'off' ) {
947
- if ( 'off' === $action && in_array( $module, $modules ) ) {
948
- $modules = array_diff( $modules, array( $module ) );
949
- }
950
-
951
- if ( 'on' === $action && ! in_array( $module, $modules ) ) {
952
- $modules[] = $module;
953
- $modules = array_unique( $modules );
954
- }
955
-
956
- return $modules;
957
  }
958
 
959
  /**
@@ -961,240 +304,35 @@ class Setup_Wizard {
961
  *
962
  * @param string $step Name of the step, appended to the URL.
963
  */
964
- public function step_link( $step ) {
965
  return add_query_arg( 'step', $step );
966
  }
967
 
968
  /**
969
  * Get Skip Link.
970
  */
971
- public function skip_link() {
972
  ?>
973
  <a href="<?php echo esc_url( $this->step_next_link() ); ?>" class="button button-secondary button-skip"><?php esc_html_e( 'Skip step', 'rank-math' ); ?></a>
974
  <?php
975
  }
976
 
977
  /**
978
- * Get site display name.
979
- *
980
- * @return string
981
- */
982
- protected function get_site_display_name() {
983
- $siteurl = get_bloginfo( 'url' );
984
- $sitename = get_bloginfo( 'title' );
985
-
986
- return $sitename ? $sitename : $siteurl;
987
- }
988
-
989
- /**
990
- * Setup steps.
991
  */
992
- public function steps() {
993
-
994
- $is_advanced = $this->is_advance();
995
-
996
- $this->steps['compatibility'] = array(
997
- 'name' => esc_html__( 'Requirements', 'rank-math' ),
998
- 'view' => $this->get_view( 'compatibility' ),
999
- 'nav_hide' => true,
1000
- );
1001
-
1002
- if ( false === get_option( 'rank_math_is_configured' ) ) {
1003
- $detector = new Detector;
1004
- $plugins = $detector->detect();
1005
- if ( ! empty( $plugins ) ) {
1006
- $this->steps['import'] = array(
1007
- 'name' => esc_html__( 'Import', 'rank-math' ),
1008
- 'view' => $this->get_view( 'import' ),
1009
- 'form' => array( $this, 'import_form' ),
1010
- 'nav_hide' => $is_advanced,
1011
- );
1012
- }
1013
  }
1014
 
1015
- $this->steps['yoursite'] = array(
1016
- 'name' => esc_html__( 'Your Site', 'rank-math' ),
1017
- 'view' => $this->get_view( 'your-site' ),
1018
- 'form' => array( $this, 'yoursite_form' ),
1019
- 'handler' => array( $this, 'yoursite_handler' ),
1020
- 'nav_hide' => $is_advanced,
1021
- );
1022
-
1023
- $this->steps['searchconsole'] = array(
1024
- 'name' => esc_html__( 'Search Console', 'rank-math' ),
1025
- 'view' => $this->get_view( 'search-console' ),
1026
- 'form' => array( $this, 'searchconsole_form' ),
1027
- 'handler' => array( $this, 'searchconsole_handler' ),
1028
- 'nav_hide' => $is_advanced,
1029
- );
1030
-
1031
- $this->steps['sitemaps'] = array(
1032
- 'name' => esc_html__( 'Sitemaps', 'rank-math' ),
1033
- 'view' => $this->get_view( 'sitemaps' ),
1034
- 'form' => array( $this, 'sitemaps_form' ),
1035
- 'handler' => array( $this, 'sitemaps_handler' ),
1036
- 'nav_hide' => $is_advanced,
1037
- );
1038
-
1039
- $this->steps['optimization'] = array(
1040
- 'name' => esc_html__( 'Optimization', 'rank-math' ),
1041
- 'view' => $this->get_view( 'optimization' ),
1042
- 'form' => array( $this, 'optimization_form' ),
1043
- 'handler' => array( $this, 'optimization_handler' ),
1044
- 'nav_hide' => $is_advanced,
1045
- );
1046
-
1047
- $this->steps['ready'] = array(
1048
- 'name' => esc_html__( 'Ready', 'rank-math' ),
1049
- 'view' => $this->get_view( 'ready' ),
1050
- 'nav_hide' => $is_advanced,
1051
- );
1052
-
1053
- if ( GlobalHelper::is_module_active( 'role-manager' ) ) {
1054
- $this->steps['role'] = array(
1055
- 'name' => esc_html__( 'Role Manager', 'rank-math' ),
1056
- 'view' => array( $this, 'role' ),
1057
- 'form' => array( $this, 'role_form' ),
1058
- 'handler' => array( $this, 'role_handler' ),
1059
- 'nav_hide' => ! $is_advanced,
1060
- );
1061
- }
1062
-
1063
- $this->steps['redirection'] = array(
1064
- 'name' => esc_html__( '404 + Redirection', 'rank-math' ),
1065
- 'view' => array( $this, 'redirection' ),
1066
- 'form' => array( $this, 'redirection_form' ),
1067
- 'handler' => array( $this, 'redirection_handler' ),
1068
- 'nav_hide' => ! $is_advanced,
1069
- );
1070
-
1071
- $this->steps['misc'] = array(
1072
- 'name' => esc_html__( 'Misc', 'rank-math' ),
1073
- 'view' => array( $this, 'misc' ),
1074
- 'form' => array( $this, 'misc_form' ),
1075
- 'handler' => array( $this, 'misc_handler' ),
1076
- 'nav_hide' => ! $is_advanced,
1077
- );
1078
-
1079
- $this->steps = $this->do_filter( 'wizard/steps', $this->steps );
1080
-
1081
- // Set Current Step.
1082
- $this->step = isset( $_REQUEST['step'] ) ? sanitize_key( $_REQUEST['step'] ) : current( array_keys( $this->steps ) );
1083
- $this->step_slug = isset( $this->steps[ $this->step ] ) ? strtolower( $this->steps[ $this->step ]['name'] ) : '';
1084
- }
1085
-
1086
- /**
1087
- * Set string.
1088
- */
1089
- private function strings() {
1090
- // Strings passed in from the config file.
1091
- $this->strings = array(
1092
- 'admin-menu' => esc_html__( 'Setup Wizard', 'rank-math' ),
1093
- 'title' => esc_html__( 'Setup Wizard - Rank Math', 'rank-math' ),
1094
- 'return-to-dashboard' => esc_html__( 'Return to dashboard', 'rank-math' ),
1095
- 'btn-start' => esc_html__( 'Start', 'rank-math' ),
1096
- 'btn-no' => esc_html__( 'Cancel', 'rank-math' ),
1097
- );
1098
- }
1099
-
1100
- /**
1101
- * Get conflicting plugins.
1102
- *
1103
- * @return array
1104
- */
1105
- private function get_conflicting_plugins() {
1106
- $plugins_found = array();
1107
- $active_plugins = get_option( 'active_plugins' );
1108
- $conflicting_plugins = $this->get_conflicting_plugins_list();
1109
- foreach ( $conflicting_plugins as $plugin_slug => $plugin_name ) {
1110
- if ( in_array( $plugin_slug, $active_plugins ) !== false ) {
1111
- $plugins_found[ $plugin_slug ] = $plugin_name;
1112
- }
1113
  }
1114
 
1115
- return $plugins_found;
1116
- }
1117
-
1118
- /**
1119
- * Return list of possibly conflicting plugins.
1120
- * Used in SEO Analysis & Setup Wizard.
1121
- *
1122
- * @return array List of plugins in path => name format
1123
- */
1124
- private function get_conflicting_plugins_list() {
1125
-
1126
- $plugins = array(
1127
- '2-click-socialmedia-buttons/2-click-socialmedia-buttons.php' => '2 Click Social Media Buttons.',
1128
- 'add-link-to-facebook/add-link-to-facebook.php' => 'Add Link to Facebook.',
1129
- 'extended-wp-reset/extended-wp-reset.php' => 'Extended WP Reset.',
1130
- 'add-meta-tags/add-meta-tags.php' => 'Add Meta Tags.',
1131
- 'all-in-one-seo-pack/all_in_one_seo_pack.php' => 'All In One SEO Pack',
1132
- 'easy-facebook-share-thumbnails/esft.php' => 'Easy Facebook Share Thumbnail.',
1133
- 'facebook/facebook.php' => 'Facebook (official plugin).',
1134
- 'facebook-awd/AWD_facebook.php' => 'Facebook AWD All in one.',
1135
- 'facebook-featured-image-and-open-graph-meta-tags/fb-featured-image.php' => 'Facebook Featured Image & OG Meta Tags.',
1136
- 'facebook-meta-tags/facebook-metatags.php' => 'Facebook Meta Tags.',
1137
- 'wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php' => 'Facebook Open Graph Meta Tags for WordPress.',
1138
- 'facebook-revised-open-graph-meta-tag/index.php' => 'Facebook Revised Open Graph Meta Tag.',
1139
- 'facebook-thumb-fixer/_facebook-thumb-fixer.php' => 'Facebook Thumb Fixer.',
1140
- 'facebook-and-digg-thumbnail-generator/facebook-and-digg-thumbnail-generator.php' => 'Fedmich\'s Facebook Open Graph Meta.',
1141
- 'header-footer/plugin.php' => 'Header and Footer.',
1142
- 'network-publisher/networkpub.php' => 'Network Publisher.',
1143
- 'nextgen-facebook/nextgen-facebook.php' => 'NextGEN Facebook OG.',
1144
- 'opengraph/opengraph.php' => 'Open Graph.',
1145
- 'open-graph-protocol-framework/open-graph-protocol-framework.php' => 'Open Graph Protocol Framework.',
1146
- 'seo-facebook-comments/seofacebook.php' => 'SEO Facebook Comments.',
1147
- 'seo-ultimate/seo-ultimate.php' => 'SEO Ultimate.',
1148
- 'sexybookmarks/sexy-bookmarks.php' => 'Shareaholic.',
1149
- 'shareaholic/sexy-bookmarks.php' => 'Shareaholic.',
1150
- 'sharepress/sharepress.php' => 'SharePress.',
1151
- 'simple-facebook-connect/sfc.php' => 'Simple Facebook Connect.',
1152
- 'social-discussions/social-discussions.php' => 'Social Discussions.',
1153
- 'social-sharing-toolkit/social_sharing_toolkit.php' => 'Social Sharing Toolkit.',
1154
- 'socialize/socialize.php' => 'Socialize.',
1155
- 'only-tweet-like-share-and-google-1/tweet-like-plusone.php' => 'Tweet, Like, Google +1 and Share.',
1156
- 'wordbooker/wordbooker.php' => 'Wordbooker.',
1157
- 'wordpress-seo/wp-seo.php' => 'Yoast SEO',
1158
- 'wordpress-seo-premium/wp-seo-premium.php' => 'Yoast SEO Premium',
1159
- 'wpsso/wpsso.php' => 'WordPress Social Sharing Optimization.',
1160
- 'wp-caregiver/wp-caregiver.php' => 'WP Caregiver.',
1161
- 'wp-facebook-like-send-open-graph-meta/wp-facebook-like-send-open-graph-meta.php' => 'WP Facebook Like Send & Open Graph Meta.',
1162
- 'wp-facebook-open-graph-protocol/wp-facebook-ogp.php' => 'WP Facebook Open Graph protocol.',
1163
- 'wp-ogp/wp-ogp.php' => 'WP-OGP.',
1164
- 'zoltonorg-social-plugin/zosp.php' => 'Zolton.org Social Plugin.',
1165
- 'all-in-one-schemaorg-rich-snippets/index.php' => 'All In One Schema Rich Snippets.',
1166
- 'wp-schema-pro/wp-schema-pro.php' => 'Schema Pro',
1167
- 'no-category-base-wpml/no-category-base-wpml.php' => 'No Category Base (WPML)',
1168
- 'all-404-redirect-to-homepage/all-404-redirect-to-homepage.php' => 'All 404 Redirect to Homepage',
1169
- 'remove-category-url/remove-category-url.php' => 'Remove Category URL',
1170
- );
1171
-
1172
- $redirection_plugins = array(
1173
- 'redirection/redirection.php' => 'Redirection',
1174
- );
1175
-
1176
- $sitemap_plugins = array(
1177
- 'google-sitemap-plugin/google-sitemap-plugin.php' => 'Google Sitemap (BestWebSoft).',
1178
- 'xml-sitemaps/xml-sitemaps.php' => 'XML Sitemaps (Denis de Bernardy and Mike Koepke).',
1179
- 'bwp-google-xml-sitemaps/bwp-simple-gxs.php' => 'Better WordPress Google XML Sitemaps (Khang Minh).',
1180
- 'google-sitemap-generator/sitemap.php' => 'Google XML Sitemaps (Arne Brachhold).',
1181
- 'xml-sitemap-feed/xml-sitemap.php' => 'XML Sitemap & Google News feeds (RavanH).',
1182
- 'google-monthly-xml-sitemap/monthly-xml-sitemap.php' => 'Google Monthly XML Sitemap (Andrea Pernici).',
1183
- 'simple-google-sitemap-xml/simple-google-sitemap-xml.php' => 'Simple Google Sitemap XML (iTx Technologies).',
1184
- 'another-simple-xml-sitemap/another-simple-xml-sitemap.php' => 'Another Simple XML Sitemap.',
1185
- 'xml-maps/google-sitemap.php' => 'Xml Sitemap (Jason Martens).',
1186
- 'google-xml-sitemap-generator-by-anton-dachauer/adachauer-google-xml-sitemap.php' => 'Google XML Sitemap Generator by Anton Dachauer (Anton Dachauer).',
1187
- 'wp-xml-sitemap/wp-xml-sitemap.php' => 'WP XML Sitemap (Team Vivacity).',
1188
- 'sitemap-generator-for-webmasters/sitemap.php' => 'Sitemap Generator for Webmasters (iwebslogtech).',
1189
- 'xml-sitemap-xml-sitemapcouk/xmls.php' => 'XML Sitemap - XML-Sitemap.co.uk (Simon Hancox).',
1190
- 'sewn-in-xml-sitemap/sewn-xml-sitemap.php' => 'Sewn In XML Sitemap (jcow).',
1191
- 'rps-sitemap-generator/rps-sitemap-generator.php' => 'RPS Sitemap Generator (redpixelstudios).',
1192
- );
1193
-
1194
- $plugins = GlobalHelper::is_module_active( 'redirections' ) ? array_merge( $plugins, $redirection_plugins ) : $plugins;
1195
- $plugins = GlobalHelper::is_module_active( 'sitemap' ) ? array_merge( $plugins, $sitemap_plugins ) : $plugins;
1196
-
1197
- return $plugins;
1198
  }
1199
 
1200
  /**
@@ -1202,47 +340,24 @@ class Setup_Wizard {
1202
  *
1203
  * @return bool
1204
  */
1205
- public function is_advance() {
1206
- return isset( $_REQUEST['step'] ) && in_array( $_REQUEST['step'], array( 'role', 'redirection', 'linkbuilder', 'misc' ) );
1207
  }
1208
 
1209
  /**
1210
- * Get view file to display.
1211
  *
1212
- * @param string $view View to display.
1213
- * @return string
1214
- */
1215
- public function get_view( $view ) {
1216
- return Admin_Helper::get_view( "wizard/{$view}" );
1217
- }
1218
-
1219
- /**
1220
- * [change_label description]
1221
- *
1222
- * @param [type] $label [description].
1223
- * @return [type] [description]
1224
- */
1225
- public function change_label( $label ) {
1226
-
1227
- if ( $this->is_advance() ) {
1228
- return esc_html__( 'Advance Options', 'rank-math' );
1229
- }
1230
-
1231
- return $label;
1232
- }
1233
-
1234
- /**
1235
- * [change_label_url description]
1236
- *
1237
- * @param [type] $url [description].
1238
- * @return [type] [description]
1239
  */
1240
- public function change_label_url( $url ) {
1241
-
1242
- if ( $this->is_advance() ) {
1243
- return GLobalHelper::get_admin_url( 'wizard', 'step=ready' );
 
 
 
1244
  }
1245
 
1246
- return $url;
1247
  }
1248
  }
11
  namespace RankMath\Admin;
12
 
13
  use RankMath\CMB2;
14
+ use RankMath\Helper;
15
  use RankMath\Traits\Hooker;
16
  use RankMath\Traits\Wizard;
 
17
  use RankMath\Admin\Importers\Detector;
 
 
18
 
19
  defined( 'ABSPATH' ) || exit;
20
 
23
  */
24
  class Setup_Wizard {
25
 
26
+ use Hooker, Wizard;
27
 
28
  /**
29
  * Hold steps data.
30
  *
31
  * @var array
32
  */
33
+ protected $steps = [];
34
 
35
  /**
36
  * Hold current step.
46
  */
47
  protected $step_slug = '';
48
 
 
 
 
 
 
 
 
49
  /**
50
  * Top level admin page.
51
  *
60
  */
61
  public $cmb = null;
62
 
63
+ /**
64
+ * Wizard Step instance.
65
+ *
66
+ * @var Wizard_Step
67
+ */
68
+ public $wizard_step = null;
69
+
70
  /**
71
  * The Constructor.
72
  */
73
  public function __construct() {
 
74
  $this->action( 'cmb2_admin_init', 'steps', 9 );
75
  $this->action( 'cmb2_admin_init', 'register_cmb2' );
76
  $this->action( 'admin_menu', 'add_admin_menu' );
87
  $this->filter( 'rank_math/wizard/step/label_url', 'change_label_url' );
88
  }
89
 
90
+ /**
91
+ * Setup steps.
92
+ */
93
+ public function steps() {
94
+ $this->steps = [
95
+ 'compatibility' => [
96
+ 'slug' => 'requirements',
97
+ 'name' => esc_html__( 'Requirements', 'rank-math' ),
98
+ 'class' => '\\RankMath\\Wizard\\Compatibility',
99
+ ],
100
+ 'import' => [
101
+ 'name' => esc_html__( 'Import', 'rank-math' ),
102
+ 'class' => '\\RankMath\\Wizard\\Import',
103
+ ],
104
+ 'yoursite' => [
105
+ 'name' => esc_html__( 'Your Site', 'rank-math' ),
106
+ 'class' => '\\RankMath\\Wizard\\Your_Site',
107
+ ],
108
+
109
+ 'searchconsole' => [
110
+ 'name' => esc_html__( 'Search Console', 'rank-math' ),
111
+ 'class' => '\\RankMath\\Wizard\\Search_Console',
112
+ ],
113
+
114
+ 'sitemaps' => [
115
+ 'name' => esc_html__( 'Sitemaps', 'rank-math' ),
116
+ 'class' => '\\RankMath\\Wizard\\Sitemap',
117
+ ],
118
+
119
+ 'optimization' => [
120
+ 'name' => esc_html__( 'Optimization', 'rank-math' ),
121
+ 'class' => '\\RankMath\\Wizard\\Optimization',
122
+ ],
123
+
124
+ 'ready' => [
125
+ 'name' => esc_html__( 'Ready', 'rank-math' ),
126
+ 'class' => '\\RankMath\\Wizard\\Ready',
127
+ ],
128
+
129
+ 'role' => [
130
+ 'slug' => 'rolemanager',
131
+ 'name' => esc_html__( 'Role Manager', 'rank-math' ),
132
+ 'class' => '\\RankMath\\Wizard\\Role',
133
+ ],
134
+
135
+ 'redirection' => [
136
+ 'slug' => '404redirection',
137
+ 'name' => esc_html__( '404 + Redirection', 'rank-math' ),
138
+ 'class' => '\\RankMath\\Wizard\\Monitor_Redirection',
139
+ ],
140
+
141
+ 'misc' => [
142
+ 'name' => esc_html__( 'Misc', 'rank-math' ),
143
+ 'class' => '\\RankMath\\Wizard\\Misc',
144
+ ],
145
+ ];
146
+
147
+ $this->set_current_step();
148
+ }
149
+
150
  /**
151
  * Register CMB2 option page for setup wizard.
152
  */
160
  'classes' => 'wp-core-ui rank-math-ui',
161
  ) );
162
 
163
+ $this->wizard_step->form( $this );
 
164
  CMB2::pre_init( $this->cmb );
165
  }
166
 
167
+ /**
168
+ * Change label.
169
+ *
170
+ * @param string $label Label.
171
+ *
172
+ * @return string
173
+ */
174
+ public function change_label( $label ) {
175
+ if ( $this->is_advance() ) {
176
+ return esc_html__( 'Advance Options', 'rank-math' );
177
+ }
178
+
179
+ return $label;
180
+ }
181
+
182
+ /**
183
+ * Change label url.
184
+ *
185
+ * @param string $url Label Url.
186
+ *
187
+ * @return string
188
+ */
189
+ public function change_label_url( $url ) {
190
+
191
+ if ( $this->is_advance() ) {
192
+ return Helper::get_admin_url( 'wizard', 'step=ready' );
193
+ }
194
+
195
+ return $url;
196
+ return rank_math()->admin_dir() . "wizard/views/{$view}.php";
197
+ }
198
+
199
  /**
200
  * Execute save handler for current step.
201
  */
208
 
209
  check_admin_referer( 'rank-math-wizard', 'security' );
210
 
 
211
  $values = $this->cmb->get_sanitized_values( $_POST );
212
+ $show_content = $this->wizard_step->save( $values, $this );
 
 
 
213
 
214
  $redirect = $show_content ? $this->step_next_link() : $_POST['_wp_http_referer'];
215
  if ( is_string( $show_content ) ) {
228
  }
229
 
230
  $this->hook_suffix = add_submenu_page(
231
+ null, esc_html__( 'Setup Wizard', 'rank-math' ), esc_html__( 'Setup Wizard', 'rank-math' ), 'manage_options', $this->slug, array( $this, 'admin_page' )
232
  );
233
  }
234
 
255
  // Enqueue javascript.
256
  wp_enqueue_script( 'rank-math-wizard', rank_math()->plugin_url() . 'assets/admin/js/wizard.js', array( 'media-editor', 'select2-rm', 'rank-math-common' ), rank_math()->version, true );
257
 
258
+ Helper::add_json( 'currentStep', $this->step );
259
+ Helper::add_json( 'deactivated', esc_html__( 'Deactivated', 'rank-math' ) );
260
+ Helper::add_json( 'confirm', esc_html__( 'Are you sure you want to import settings into Rank Math? Don\'t worry, your current configuration will be saved as a backup.', 'rank-math' ) );
261
+ Helper::add_json( 'isConfigured', Helper::is_configured() );
262
 
263
  ob_start();
264
 
272
  }
273
 
274
  /**
275
+ * Is navigation item hidden or not.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276
  *
277
+ * @param string $slug Slug of nav item.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  *
 
279
  * @return bool
280
  */
281
+ public function is_nav_item_hidden( $slug ) {
282
+ if ( 'compatibility' === $slug ) {
283
+ return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
 
286
+ $is_advanced = $this->is_advance();
287
+ $advance_steps = array( 'role', 'redirection', 'misc' );
 
 
 
288
 
289
+ return in_array( $slug, $advance_steps ) ? ! $is_advanced : $is_advanced;
290
  }
291
 
292
  /**
293
+ * Get view file to display.
294
  *
295
+ * @param string $view View to display.
296
+ * @return string
 
 
297
  */
298
+ public function get_view( $view ) {
299
+ return rank_math()->admin_dir() . "wizard/views/{$view}.php";
 
 
 
 
 
 
 
 
 
300
  }
301
 
302
  /**
304
  *
305
  * @param string $step Name of the step, appended to the URL.
306
  */
307
+ public function get_step_link( $step ) {
308
  return add_query_arg( 'step', $step );
309
  }
310
 
311
  /**
312
  * Get Skip Link.
313
  */
314
+ public function get_skip_link() {
315
  ?>
316
  <a href="<?php echo esc_url( $this->step_next_link() ); ?>" class="button button-secondary button-skip"><?php esc_html_e( 'Skip step', 'rank-math' ); ?></a>
317
  <?php
318
  }
319
 
320
  /**
321
+ * Set current step.
 
 
 
 
 
 
 
 
 
 
 
 
322
  */
323
+ private function set_current_step() {
324
+ if ( $this->maybe_remove_import() ) {
325
+ unset( $this->steps['import'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  }
327
 
328
+ if ( ! Helper::is_module_active( 'role-manager' ) ) {
329
+ unset( $this->steps['role'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  }
331
 
332
+ $this->steps = $this->do_filter( 'wizard/steps', $this->steps );
333
+ $this->step = isset( $_REQUEST['step'] ) && ! empty( $_REQUEST['step'] ) ? sanitize_key( $_REQUEST['step'] ) : current( array_keys( $this->steps ) );
334
+ $this->step_slug = isset( $this->steps[ $this->step ]['slug'] ) ? $this->steps[ $this->step ]['slug'] : $this->step;
335
+ $this->wizard_step = new $this->steps[ $this->step ]['class'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
336
  }
337
 
338
  /**
340
  *
341
  * @return bool
342
  */
343
+ private function is_advance() {
344
+ return isset( $_REQUEST['step'] ) && in_array( $_REQUEST['step'], array( 'role', 'redirection', 'misc' ) );
345
  }
346
 
347
  /**
348
+ * Maybe remove import step.
349
  *
350
+ * @return bool
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  */
352
+ private function maybe_remove_import() {
353
+ if ( false === get_option( 'rank_math_is_configured' ) ) {
354
+ $detector = new Detector;
355
+ $plugins = $detector->detect();
356
+ if ( ! empty( $plugins ) ) {
357
+ return false;
358
+ }
359
  }
360
 
361
+ return true;
362
  }
363
  }
includes/admin/importers/abstract-importer.php CHANGED
File without changes
includes/admin/importers/class-aio-rich-snippet.php CHANGED
File without changes
includes/admin/importers/class-aioseo.php CHANGED
File without changes
includes/admin/importers/class-detector.php CHANGED
@@ -39,41 +39,56 @@ class Detector {
39
  if ( ! is_null( self::$plugins ) ) {
40
  return self::$plugins;
41
  }
42
- self::$plugins = array();
43
 
44
  $plugins = $this->get();
45
  foreach ( $plugins as $slug => $plugin ) {
46
-
47
- // Check if parent is set.
48
- if ( isset( $plugin['parent'] ) && isset( self::$plugins[ $plugin['parent'] ] ) ) {
49
- continue;
50
- }
51
-
52
- // Check if plugin has premium and it is active.
53
- if ( isset( $plugin['premium'] ) && is_plugin_active( $plugins[ $plugin['premium'] ]['file'] ) ) {
54
  continue;
55
  }
56
 
57
  $importer = new $plugin['class']( $plugin['file'] );
58
  if ( $this->run( $importer, 'detect' ) ) {
59
- self::$plugins[ $slug ] = array(
60
  'name' => $importer->get_plugin_name(),
61
  'file' => $importer->get_plugin_file(),
62
  'choices' => $importer->get_choices(),
63
- );
64
  }
65
  }
66
 
67
  return self::$plugins;
68
  }
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  /**
71
  * Detects active plugins
72
  *
73
  * @return array
74
  */
75
  public function active_plugins() {
76
- $plugins = array();
77
  if ( is_null( self::$plugins ) ) {
78
  foreach ( $this->get() as $slug => $data ) {
79
  if ( is_plugin_active( $data['file'] ) ) {
@@ -129,33 +144,33 @@ class Detector {
129
  * @return array Available importers
130
  */
131
  public function get() {
132
- return $this->do_filter( 'importers/detect_plugins', array(
133
- 'yoast' => array(
134
  'class' => '\\RankMath\\Admin\\Importers\\Yoast',
135
  'file' => 'wordpress-seo/wp-seo.php',
136
  'premium' => 'yoast-premium',
137
- ),
138
- 'yoast-premium' => array(
139
  'class' => '\\RankMath\\Admin\\Importers\\Yoast',
140
  'file' => 'wordpress-seo-premium/wp-seo-premium.php',
141
  'parent' => 'yoast',
142
- ),
143
- 'aioseo' => array(
144
  'class' => '\\RankMath\\Admin\\Importers\\AIOSEO',
145
  'file' => 'all-in-one-seo-pack/all_in_one_seo_pack.php',
146
- ),
147
- 'aio-rich-snippet' => array(
148
  'class' => '\\RankMath\\Admin\\Importers\\AIO_Rich_Snippet',
149
  'file' => 'all-in-one-schemaorg-rich-snippets/index.php',
150
- ),
151
- 'wp-schema-pro' => array(
152
  'class' => '\\RankMath\\Admin\\Importers\\WP_Schema_Pro',
153
  'file' => 'wp-schema-pro/wp-schema-pro.php',
154
- ),
155
- 'redirections' => array(
156
  'class' => '\\RankMath\\Admin\\Importers\\Redirections',
157
  'file' => 'redirection/redirection.php',
158
- ),
159
- ));
160
  }
161
  }
39
  if ( ! is_null( self::$plugins ) ) {
40
  return self::$plugins;
41
  }
42
+ self::$plugins = [];
43
 
44
  $plugins = $this->get();
45
  foreach ( $plugins as $slug => $plugin ) {
46
+ if ( $this->is_plugin_detectable( $plugin, $plugins ) ) {
 
 
 
 
 
 
 
47
  continue;
48
  }
49
 
50
  $importer = new $plugin['class']( $plugin['file'] );
51
  if ( $this->run( $importer, 'detect' ) ) {
52
+ self::$plugins[ $slug ] = [
53
  'name' => $importer->get_plugin_name(),
54
  'file' => $importer->get_plugin_file(),
55
  'choices' => $importer->get_choices(),
56
+ ];
57
  }
58
  }
59
 
60
  return self::$plugins;
61
  }
62
 
63
+ /**
64
+ * Check if plugin is detectable.
65
+ *
66
+ * @param array $check Plugin to check.
67
+ * @param array $plugins Plugins data.
68
+ *
69
+ * @return bool
70
+ */
71
+ private function is_plugin_detectable( $check, $plugins ) {
72
+ // Check if parent is set.
73
+ if ( isset( $check['parent'] ) && isset( self::$plugins[ $check['parent'] ] ) ) {
74
+ return true;
75
+ }
76
+
77
+ // Check if plugin has premium and it is active.
78
+ if ( isset( $check['premium'] ) && is_plugin_active( $plugins[ $check['premium'] ]['file'] ) ) {
79
+ return true;
80
+ }
81
+
82
+ return false;
83
+ }
84
+
85
  /**
86
  * Detects active plugins
87
  *
88
  * @return array
89
  */
90
  public function active_plugins() {
91
+ $plugins = [];
92
  if ( is_null( self::$plugins ) ) {
93
  foreach ( $this->get() as $slug => $data ) {
94
  if ( is_plugin_active( $data['file'] ) ) {
144
  * @return array Available importers
145
  */
146
  public function get() {
147
+ return $this->do_filter( 'importers/detect_plugins', [
148
+ 'yoast' => [
149
  'class' => '\\RankMath\\Admin\\Importers\\Yoast',
150
  'file' => 'wordpress-seo/wp-seo.php',
151
  'premium' => 'yoast-premium',
152
+ ],
153
+ 'yoast-premium' => [
154
  'class' => '\\RankMath\\Admin\\Importers\\Yoast',
155
  'file' => 'wordpress-seo-premium/wp-seo-premium.php',
156
  'parent' => 'yoast',
157
+ ],
158
+ 'aioseo' => [
159
  'class' => '\\RankMath\\Admin\\Importers\\AIOSEO',
160
  'file' => 'all-in-one-seo-pack/all_in_one_seo_pack.php',
161
+ ],
162
+ 'aio-rich-snippet' => [
163
  'class' => '\\RankMath\\Admin\\Importers\\AIO_Rich_Snippet',
164
  'file' => 'all-in-one-schemaorg-rich-snippets/index.php',
165
+ ],
166
+ 'wp-schema-pro' => [
167
  'class' => '\\RankMath\\Admin\\Importers\\WP_Schema_Pro',
168
  'file' => 'wp-schema-pro/wp-schema-pro.php',
169
+ ],
170
+ 'redirections' => [
171
  'class' => '\\RankMath\\Admin\\Importers\\Redirections',
172
  'file' => 'redirection/redirection.php',
173
+ ],
174
+ ]);
175
  }
176
  }
includes/admin/importers/class-redirections.php CHANGED
File without changes
includes/admin/importers/class-wp-schema-pro.php CHANGED
@@ -39,14 +39,14 @@ class WP_Schema_Pro extends Plugin_Importer {
39
  *
40
  * @var array
41
  */
42
- protected $option_keys = array( 'wp-schema-pro-general-settings', 'wp-schema-pro-social-profiles', 'wp-schema-pro-global-schemas' );
43
 
44
  /**
45
  * Array of choices keys to import
46
  *
47
  * @var array
48
  */
49
- protected $choices = array( 'settings', 'postmeta' );
50
 
51
  /**
52
  * Import settings of plugin.
@@ -69,9 +69,7 @@ class WP_Schema_Pro extends Plugin_Importer {
69
  }
70
 
71
  // General.
72
- $hash = array(
73
- 'site-represent' => 'knowledgegraph_type',
74
- );
75
 
76
  $has_key = 'person' === $schema_general['site-represent'] ? 'person-name' : 'site-name';
77
  $hash[ $has_key ] = 'knowledgegraph_name';
@@ -80,7 +78,7 @@ class WP_Schema_Pro extends Plugin_Importer {
80
  $titles['local_seo'] = isset( $schema_general['site-represent'] ) && ! empty( $yoast_titles['site-represent'] ) ? 'on' : 'off';
81
 
82
  // Social.
83
- $hash = array(
84
  'facebook' => 'social_url_facebook',
85
  'twitter' => 'twitter_author_names',
86
  'instagram' => 'social_url_instagram',
@@ -88,14 +86,14 @@ class WP_Schema_Pro extends Plugin_Importer {
88
  'youtube' => 'social_url_youtube',
89
  'google-plus' => 'social_url_gplus',
90
  'pinterest' => 'social_url_pinterest',
91
- );
92
  $this->replace( $hash, $schema_social, $titles );
93
 
94
  // About & Contact Page.
95
- $hash = array(
96
  'about-page' => 'local_seo_about_page',
97
  'contact-page' => 'local_seo_contact_page',
98
- );
99
  $this->replace( $hash, $schema_global, $titles );
100
 
101
  Helper::update_all_settings( '', $titles, '' );
@@ -170,11 +168,11 @@ class WP_Schema_Pro extends Plugin_Importer {
170
  * @return string
171
  */
172
  private function sanitize_schema_type( $type ) {
173
- $hash = array(
174
  'job-posting' => 'jobposting',
175
  'video-object' => 'video',
176
  'software-application' => 'software',
177
- );
178
 
179
  return isset( $hash[ $type ] ) ? $hash[ $type ] : $type;
180
  }
@@ -206,15 +204,15 @@ class WP_Schema_Pro extends Plugin_Importer {
206
  return false;
207
  }
208
 
209
- $current_page_data = array();
210
  foreach ( $local_posts as $local_post ) {
211
  $snippet_type = get_post_meta( $local_post, 'bsf-aiosrs-schema-type', true );
212
 
213
- return array(
214
  'id' => $local_post,
215
  'type' => $snippet_type,
216
  'details' => get_post_meta( $local_post, 'bsf-aiosrs-' . $snippet_type, true ),
217
- );
218
  }
219
  }
220
 
@@ -224,10 +222,10 @@ class WP_Schema_Pro extends Plugin_Importer {
224
  * @return array
225
  */
226
  public function get_choices() {
227
- return array(
228
  'settings' => esc_html__( 'Import Settings', 'rank-math' ) . Admin_Helper::get_tooltip( esc_html__( 'Plugin settings and site-wide meta data.', 'rank-math' ) ),
229
  'postmeta' => esc_html__( 'Import Rich Snippets', 'rank-math' ) . Admin_Helper::get_tooltip( esc_html__( 'Import all Schema data for Posts, Pages, and custom post types.', 'rank-math' ) ),
230
- );
231
  }
232
 
233
  /**
@@ -236,24 +234,24 @@ class WP_Schema_Pro extends Plugin_Importer {
236
  * @return array
237
  */
238
  private function get_schema_types() {
239
- return array(
240
- 'article' => array(
241
  'name' => 'name',
242
  'description' => 'desc',
243
  'schema-type' => 'article_type',
244
- ),
245
- 'book' => array(
246
  'name' => 'name',
247
  'url' => 'url',
248
  'author' => 'author',
249
  'work-example' => 'book_editions',
250
- ),
251
- 'course' => array(
252
  'name' => 'name',
253
  'description' => 'desc',
254
  'orgnization-name' => 'provider',
255
- ),
256
- 'event' => array(
257
  'name' => 'name',
258
  'description' => 'desc',
259
  'ticket-buy-url' => 'event_ticketurl',
@@ -263,8 +261,8 @@ class WP_Schema_Pro extends Plugin_Importer {
263
  'price' => 'event_price',
264
  'currency' => 'event_currency',
265
  'avail' => 'event_availability',
266
- ),
267
- 'job-posting' => array(
268
  'title' => 'name',
269
  'description' => 'desc',
270
  'salary' => 'jobposting_salary',
@@ -273,15 +271,15 @@ class WP_Schema_Pro extends Plugin_Importer {
273
  'job-type' => 'jobposting_employment_type',
274
  'jobposting_organization' => 'orgnization-name',
275
  'jobposting_url' => 'jobposting_url',
276
- ),
277
- 'product' => array(
278
  'brand-name' => 'product_brand',
279
  'name' => 'name',
280
  'price' => 'product_currency',
281
  'currency' => 'product_price',
282
  'avail' => 'product_instock',
283
- ),
284
- 'recipe' => array(
285
  'name' => 'name',
286
  'description' => 'desc',
287
  'recipe-category' => 'recipe_type',
@@ -292,35 +290,35 @@ class WP_Schema_Pro extends Plugin_Importer {
292
  'cook-time' => 'recipe_cooktime',
293
  'recipes_totaltime' => 'recipe_totaltime',
294
  'ingredients' => 'recipe_ingredients',
295
- ),
296
- 'video-object' => array(
297
  'name' => 'name',
298
  'description' => 'desc',
299
  'content-url' => 'video_url',
300
  'embed-url' => 'video_embed_url',
301
  'duration' => 'video_duration',
302
  'interaction-count' => 'video_views',
303
- ),
304
- 'review' => array(
305
  'item' => 'name',
306
  'description' => 'desc',
307
  'rating' => 'review_rating_value',
308
- ),
309
- 'person' => array(
310
  'name' => 'name',
311
  'email' => 'person_email',
312
  'gender' => 'person_gender',
313
  'job-title' => 'job_title',
314
- ),
315
- 'service' => array(
316
  'name' => 'name',
317
  'description' => 'desc',
318
  'type' => 'service_type',
319
  'price-range' => 'price',
320
  'rating' => 'service_rating_value',
321
  'review-count' => 'service_rating_count',
322
- ),
323
- 'software-application' => array(
324
  'name' => 'name',
325
  'rating' => 'software_rating_value',
326
  'review-count' => 'software_rating_count',
@@ -328,7 +326,7 @@ class WP_Schema_Pro extends Plugin_Importer {
328
  'currency' => 'software_price_currency',
329
  'operating-system' => 'software_operating_system',
330
  'category' => 'software_application_category',
331
- ),
332
- );
333
  }
334
  }
39
  *
40
  * @var array
41
  */
42
+ protected $option_keys = [ 'wp-schema-pro-general-settings', 'wp-schema-pro-social-profiles', 'wp-schema-pro-global-schemas' ];
43
 
44
  /**
45
  * Array of choices keys to import
46
  *
47
  * @var array
48
  */
49
+ protected $choices = [ 'settings', 'postmeta' ];
50
 
51
  /**
52
  * Import settings of plugin.
69
  }
70
 
71
  // General.
72
+ $hash = [ 'site-represent' => 'knowledgegraph_type' ];
 
 
73
 
74
  $has_key = 'person' === $schema_general['site-represent'] ? 'person-name' : 'site-name';
75
  $hash[ $has_key ] = 'knowledgegraph_name';
78
  $titles['local_seo'] = isset( $schema_general['site-represent'] ) && ! empty( $yoast_titles['site-represent'] ) ? 'on' : 'off';
79
 
80
  // Social.
81
+ $hash = [
82
  'facebook' => 'social_url_facebook',
83
  'twitter' => 'twitter_author_names',
84
  'instagram' => 'social_url_instagram',
86
  'youtube' => 'social_url_youtube',
87
  'google-plus' => 'social_url_gplus',
88
  'pinterest' => 'social_url_pinterest',
89
+ ];
90
  $this->replace( $hash, $schema_social, $titles );
91
 
92
  // About & Contact Page.
93
+ $hash = [
94
  'about-page' => 'local_seo_about_page',
95
  'contact-page' => 'local_seo_contact_page',
96
+ ];
97
  $this->replace( $hash, $schema_global, $titles );
98
 
99
  Helper::update_all_settings( '', $titles, '' );
168
  * @return string
169
  */
170
  private function sanitize_schema_type( $type ) {
171
+ $hash = [
172
  'job-posting' => 'jobposting',
173
  'video-object' => 'video',
174
  'software-application' => 'software',
175
+ ];
176
 
177
  return isset( $hash[ $type ] ) ? $hash[ $type ] : $type;
178
  }
204
  return false;
205
  }
206
 
207
+ $current_page_data = [];
208
  foreach ( $local_posts as $local_post ) {
209
  $snippet_type = get_post_meta( $local_post, 'bsf-aiosrs-schema-type', true );
210
 
211
+ return [
212
  'id' => $local_post,
213
  'type' => $snippet_type,
214
  'details' => get_post_meta( $local_post, 'bsf-aiosrs-' . $snippet_type, true ),
215
+ ];
216
  }
217
  }
218
 
222
  * @return array
223
  */
224
  public function get_choices() {
225
+ return [
226
  'settings' => esc_html__( 'Import Settings', 'rank-math' ) . Admin_Helper::get_tooltip( esc_html__( 'Plugin settings and site-wide meta data.', 'rank-math' ) ),
227
  'postmeta' => esc_html__( 'Import Rich Snippets', 'rank-math' ) . Admin_Helper::get_tooltip( esc_html__( 'Import all Schema data for Posts, Pages, and custom post types.', 'rank-math' ) ),
228
+ ];
229
  }
230
 
231
  /**
234
  * @return array
235
  */
236
  private function get_schema_types() {
237
+ return [
238
+ 'article' => [
239
  'name' => 'name',
240
  'description' => 'desc',
241
  'schema-type' => 'article_type',
242
+ ],
243
+ 'book' => [
244
  'name' => 'name',
245
  'url' => 'url',
246
  'author' => 'author',
247
  'work-example' => 'book_editions',
248
+ ],
249
+ 'course' => [
250
  'name' => 'name',
251
  'description' => 'desc',
252
  'orgnization-name' => 'provider',
253
+ ],
254
+ 'event' => [
255
  'name' => 'name',
256
  'description' => 'desc',
257
  'ticket-buy-url' => 'event_ticketurl',
261
  'price' => 'event_price',
262
  'currency' => 'event_currency',
263
  'avail' => 'event_availability',
264
+ ],
265
+ 'job-posting' => [
266
  'title' => 'name',
267
  'description' => 'desc',
268
  'salary' => 'jobposting_salary',
271
  'job-type' => 'jobposting_employment_type',
272
  'jobposting_organization' => 'orgnization-name',
273
  'jobposting_url' => 'jobposting_url',
274
+ ],
275
+ 'product' => [
276
  'brand-name' => 'product_brand',
277
  'name' => 'name',
278
  'price' => 'product_currency',
279
  'currency' => 'product_price',
280
  'avail' => 'product_instock',
281
+ ],
282
+ 'recipe' => [
283
  'name' => 'name',
284
  'description' => 'desc',
285
  'recipe-category' => 'recipe_type',
290
  'cook-time' => 'recipe_cooktime',
291
  'recipes_totaltime' => 'recipe_totaltime',
292
  'ingredients' => 'recipe_ingredients',
293
+ ],
294
+ 'video-object' => [
295
  'name' => 'name',
296
  'description' => 'desc',
297
  'content-url' => 'video_url',
298
  'embed-url' => 'video_embed_url',
299
  'duration' => 'video_duration',
300
  'interaction-count' => 'video_views',
301
+ ],
302
+ 'review' => [
303
  'item' => 'name',
304
  'description' => 'desc',
305
  'rating' => 'review_rating_value',
306
+ ],
307
+ 'person' => [
308
  'name' => 'name',
309
  'email' => 'person_email',
310
  'gender' => 'person_gender',
311
  'job-title' => 'job_title',
312
+ ],
313
+ 'service' => [
314
  'name' => 'name',
315
  'description' => 'desc',
316
  'type' => 'service_type',
317
  'price-range' => 'price',
318
  'rating' => 'service_rating_value',
319
  'review-count' => 'service_rating_count',
320
+ ],
321
+ 'software-application' => [
322
  'name' => 'name',
323
  'rating' => 'software_rating_value',
324
  'review-count' => 'software_rating_count',
326
  'currency' => 'software_price_currency',
327
  'operating-system' => 'software_operating_system',
328
  'category' => 'software_application_category',
329
+ ],
330
+ ];
331
  }
332
  }
includes/admin/importers/class-yoast.php CHANGED
File without changes
includes/admin/importers/index.php CHANGED
File without changes
includes/admin/index.php CHANGED
File without changes
includes/admin/views/dashboard-help.php CHANGED
@@ -35,7 +35,7 @@ include_once 'plugin-activation.php';
35
  <span class="dashicons-before dashicons-admin-settings"></span>
36
  <div>
37
  <strong><?php esc_html_e( 'Setup Rank Math', 'rank-math' ); ?></strong>
38
- <p><a href="<?php echo KB::get( 'how-to-setup' ); ?>" target="_blank"><?php esc_html_e( 'How to Properly Setup Rank Math', 'rank-math' ); ?></a></p>
39
  </div>
40
  </li>
41
 
@@ -43,7 +43,7 @@ include_once 'plugin-activation.php';
43
  <span class="dashicons-before dashicons-share-alt2"></span>
44
  <div>
45
  <strong><?php esc_html_e( 'Import', 'rank-math' ); ?></strong>
46
- <p><a href="<?php echo KB::get( 'seo-import' ); ?>" target="_blank"><?php esc_html_e( 'How to Import Data from Your Previous SEO Plugin', 'rank-math' ); ?></a></p>
47
  </div>
48
  </li>
49
 
@@ -51,13 +51,13 @@ include_once 'plugin-activation.php';
51
  <span class="dashicons-before dashicons-editor-spellcheck"></span>
52
  <div>
53
  <strong><?php esc_html_e( 'Post Screen', 'rank-math' ); ?></strong>
54
- <p><a href="<?php echo KB::get( 'score-100' ); ?>" target="_blank"><?php esc_html_e( 'How to Make Your Posts Pass All the Tests', 'rank-math' ); ?></a></p>
55
  </div>
56
  </li>
57
 
58
  </ul>
59
 
60
- <a class="button button-primary button-xlarge" href="<?php echo KB::get( 'rm-kb' ); ?>" target="_blank"><?php esc_html_e( 'Visit Knowledge Base', 'rank-math' ); ?></a>
61
 
62
  </div>
63
 
@@ -83,7 +83,7 @@ include_once 'plugin-activation.php';
83
  <span class="dashicons-before dashicons-book"></span>
84
  <div>
85
  <strong><?php esc_html_e( 'Online Documentation', 'rank-math' ); ?></strong>
86
- <p><a href="<?php echo KB::get( 'rm-kb' ); ?>" target="_blank"><?php esc_html_e( 'Understand all the capabilities of Rank Math', 'rank-math' ); ?></a></p>
87
  </div>
88
  </li>
89
 
@@ -99,13 +99,13 @@ include_once 'plugin-activation.php';
99
  <span class="dashicons-before dashicons-sos"></span>
100
  <div>
101
  <strong><?php esc_html_e( 'Ticket Support', 'rank-math' ); ?></strong>
102
- <p><a href="<?php echo KB::get( 'rm-support' ); ?>" target="_blank"><?php esc_html_e( 'Direct help from our qualified support team', 'rank-math' ); ?></a></p>
103
  </div>
104
  </li>
105
 
106
  </ul>
107
 
108
- <a class="button button-primary button-xlarge" href="<?php echo KB::get( 'rm-support' ); ?>" target="_blank"><?php esc_html_e( 'Visit Support Center', 'rank-math' ); ?></a>
109
 
110
  </div>
111
 
35
  <span class="dashicons-before dashicons-admin-settings"></span>
36
  <div>
37
  <strong><?php esc_html_e( 'Setup Rank Math', 'rank-math' ); ?></strong>
38
+ <p><a href="<?php KB::the( 'how-to-setup' ); ?>" target="_blank"><?php esc_html_e( 'How to Properly Setup Rank Math', 'rank-math' ); ?></a></p>
39
  </div>
40
  </li>
41
 
43
  <span class="dashicons-before dashicons-share-alt2"></span>
44
  <div>
45
  <strong><?php esc_html_e( 'Import', 'rank-math' ); ?></strong>
46
+ <p><a href="<?php KB::the( 'seo-import' ); ?>" target="_blank"><?php esc_html_e( 'How to Import Data from Your Previous SEO Plugin', 'rank-math' ); ?></a></p>
47
  </div>
48
  </li>
49
 
51
  <span class="dashicons-before dashicons-editor-spellcheck"></span>
52
  <div>
53
  <strong><?php esc_html_e( 'Post Screen', 'rank-math' ); ?></strong>
54
+ <p><a href="<?php KB::the( 'score-100' ); ?>" target="_blank"><?php esc_html_e( 'How to Make Your Posts Pass All the Tests', 'rank-math' ); ?></a></p>
55
  </div>
56
  </li>
57
 
58
  </ul>
59
 
60
+ <a class="button button-primary button-xlarge" href="<?php KB::the( 'rm-kb' ); ?>" target="_blank"><?php esc_html_e( 'Visit Knowledge Base', 'rank-math' ); ?></a>
61
 
62
  </div>
63
 
83
  <span class="dashicons-before dashicons-book"></span>
84
  <div>
85
  <strong><?php esc_html_e( 'Online Documentation', 'rank-math' ); ?></strong>
86
+ <p><a href="<?php KB::the( 'rm-kb' ); ?>" target="_blank"><?php esc_html_e( 'Understand all the capabilities of Rank Math', 'rank-math' ); ?></a></p>
87
  </div>
88
  </li>
89
 
99
  <span class="dashicons-before dashicons-sos"></span>
100
  <div>
101
  <strong><?php esc_html_e( 'Ticket Support', 'rank-math' ); ?></strong>
102
+ <p><a href="<?php KB::the( 'rm-support' ); ?>" target="_blank"><?php esc_html_e( 'Direct help from our qualified support team', 'rank-math' ); ?></a></p>
103
  </div>
104
  </li>
105
 
106
  </ul>
107
 
108
+ <a class="button button-primary button-xlarge" href="<?php KB::the( 'rm-support' ); ?>" target="_blank"><?php esc_html_e( 'Visit Support Center', 'rank-math' ); ?></a>
109
 
110
  </div>
111
 
includes/admin/views/dashboard.php CHANGED
@@ -13,7 +13,7 @@ $is_network_admin = is_network_admin();
13
  $is_network_active = RankMath\Helper::is_plugin_active_for_network();
14
  $current_tab = $is_network_active && $is_network_admin ? 'help' : ( isset( $_GET['view'] ) ? $_GET['view'] : 'modules' );
15
  ?>
16
- <div class="wrap rank-math-wrap limit-wrap">
17
 
18
  <span class="wp-header-end"></span>
19
 
13
  $is_network_active = RankMath\Helper::is_plugin_active_for_network();
14
  $current_tab = $is_network_active && $is_network_admin ? 'help' : ( isset( $_GET['view'] ) ? $_GET['view'] : 'modules' );
15
  ?>
16
+ <div class="wrap rank-math-wrap">
17
 
18
  <span class="wp-header-end"></span>
19
 
includes/admin/views/help-manager.php CHANGED
@@ -26,7 +26,7 @@ $tabs = apply_filters( 'rank_math/help/tabs', array(
26
  ),
27
  ));
28
  ?>
29
- <div class="wrap rank-math-wrap limit-wrap">
30
 
31
  <span class="wp-header-end"></span>
32
 
26
  ),
27
  ));
28
  ?>
29
+ <div class="wrap rank-math-wrap">
30
 
31
  <span class="wp-header-end"></span>
32
 
includes/admin/views/help/amp.php CHANGED
@@ -9,30 +9,36 @@
9
  use RankMath\Helper;
10
  use RankMath\KB;
11
  ?>
12
- <h3>AMP</h3>
13
  <p>
14
- Accelerated Mobile Pages, or AMP for short, is a way for you to create fast loading pages that load blazing fast on mobile browsers. AMPs deliver consistent performance across multiple mobile devices.
15
  </p>
16
  <p>
17
- Because they work so well and help pages load fast, Google has come to love the AMP enabled websites over their counterparts when it comes to rankings in the SERPs.
18
  </p>
19
  <p>
20
- That is why having an AMP enabled website is so essential these days. But, having an AMP website brings its challenges with regards to the SEO. When you create AMPs, there are two versions of your site - one for the regular desktop browsers and one for the mobile browsers. If not handled properly, AMPs can backfire and create duplicate content issues which lead to de-ranked or worse, de-indexing of your posts.
21
  </p>
22
  <p>
23
- Thankfully, we have thought this through and equipped Rank Math with the right tools to make sure your AMPS help your SEO, not ruin it.
24
  </p>
25
  <p>
26
- To get the most out of AMP along with Rank Math - simply install any of the below AMP plugin and then <a href="<?php echo Helper::get_admin_url(); ?>" target="_blank">enable the AMP module of Rank Math</a>.
 
 
 
 
 
 
27
  </p>
28
  <ol>
29
- <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-plugin' ); ?>">AMP for WordPress</a> </li>
30
- <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-wp' ); ?>">AMP for WP</a></li>
31
- <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-ninja' ); ?>">WP AMP Ninja</a></li>
32
- <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-weeblramp' ); ?>">AMP on WordPress – weeblrAMP CE</a></li>
33
- <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-woocommerce' ); ?>">AMP for WooCommerce</a></li>
34
- <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'wp-amp' ); ?>">WP AMP</a></li>
35
  </ol>
36
  <p>
37
- If you face any issues with it, simply <a rel="nofollow noopener noreferrer" href="https://support.rankmath.com/" target="_blank">open a support ticket here</a>.
38
  </p>
9
  use RankMath\Helper;
10
  use RankMath\KB;
11
  ?>
12
+ <h3><?php esc_html_e( 'AMP', 'rank-math' ); ?></h3>
13
  <p>
14
+ <?php esc_html_e( 'Accelerated Mobile Pages, or AMP for short, is a way for you to create fast loading pages that load blazing fast on mobile browsers. AMPs deliver consistent performance across multiple mobile devices.', 'rank-math' ); ?>
15
  </p>
16
  <p>
17
+ <?php esc_html_e( 'Because they work so well and help pages load fast, Google has come to love the AMP enabled websites over their counterparts when it comes to rankings in the SERPs.', 'rank-math' ); ?>
18
  </p>
19
  <p>
20
+ <?php esc_html_e( 'That is why having an AMP enabled website is so essential these days. But, having an AMP website brings its challenges with regards to the SEO. When you create AMPs, there are two versions of your site - one for the regular desktop browsers and one for the mobile browsers. If not handled properly, AMPs can backfire and create duplicate content issues which lead to de-ranked or worse, de-indexing of your posts.', 'rank-math' ); ?>
21
  </p>
22
  <p>
23
+ <?php esc_html_e( 'Thankfully, we have thought this through and equipped Rank Math with the right tools to make sure your AMPS help your SEO, not ruin it.', 'rank-math' ); ?>
24
  </p>
25
  <p>
26
+ <?php
27
+ printf(
28
+ /* translators: link to module dashboard */
29
+ __( 'To get the most out of AMP along with Rank Math - simply install any of the below AMP plugin and then <a href="%1$s" target="_blank">enable the AMP module of Rank Math</a>.', 'rank-math' ),
30
+ Helper::get_admin_url()
31
+ );
32
+ ?>
33
  </p>
34
  <ol>
35
+ <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-plugin' ); ?>"><?php esc_html_e( 'AMP for WordPress', 'rank-math' ); ?></a> </li>
36
+ <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-wp' ); ?>"><?php esc_html_e( 'AMP for WP', 'rank-math' ); ?></a></li>
37
+ <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-ninja' ); ?>"><?php esc_html_e( 'WP AMP Ninja', 'rank-math' ); ?></a></li>
38
+ <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-weeblramp' ); ?>"><?php esc_html_e( 'AMP on WordPress – weeblrAMP CE', 'rank-math' ); ?></a></li>
39
+ <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'amp-woocommerce' ); ?>"><?php esc_html_e( 'AMP for WooCommerce', 'rank-math' ); ?></a></li>
40
+ <li><a target="_blank" rel="nofollow noopener noreferrer" href="<?php KB::the( 'wp-amp' ); ?>"><?php esc_html_e( 'WP AMP', 'rank-math' ); ?></a></li>
41
  </ol>
42
  <p>
43
+ <?php _e( 'If you face any issues with it, simply <a rel="nofollow noopener noreferrer" href="https://support.rankmath.com/" target="_blank">open a support ticket here</a>.', 'rank-math' ); ?>
44
  </p>
includes/admin/views/help/getting-started.php CHANGED
@@ -6,20 +6,27 @@
6
  * @subpackage RankMath\Admin\Help
7
  */
8
 
 
9
  ?>
10
- <h3>Getting started</h3>
11
  <p>
12
- Congratulations on installing Rank Math. We hope that you've had no issues with installing Rank Math on your website. After the installation, the next step is to run the setup wizard and configure Rank Math.
13
  </p>
14
  <p>
15
- While Rank Math automatically initiates the setup wizard once you install it, it is possible to skip it accidentally. If you’ve also skipped Rank Math’s setup wizard, then you can rerun the setup wizard by going to Rank Math’s dashboard, and then clicking the Setup Wizard tab.
16
  </p>
17
  <p>
18
- <img src="https://rankmath.com/wp-content/uploads/2018/08/rank-math-setup-wizard-tab.jpg" alt="Rank Math Setup Wizard Tab" style="max-width: 100%; height: auto;" width="900" height="535" class="aligncenter size-full wp-image-327302" />
19
  </p>
20
  <p>
21
- <a href="<?php echo \RankMath\KB::get( 'how-to-setup' ); ?>" target="_blank">Click here to read full setup tutorial</a>
22
  </p>
23
  <p>
24
- If you have any questions about the setup process or are facing difficulties in setting up Rank Math for your website, then get in touch with our support staff by <a href="https://support.rankmath.com/" target="_blank">opening a support ticket</a>. The support staff is available 24x7x365 and will help you out with any issues that you have.
 
 
 
 
 
 
25
  </p>
6
  * @subpackage RankMath\Admin\Help
7
  */
8
 
9
+ use RankMath\KB;
10
  ?>
11
+ <h3><?php esc_html_e( 'Getting started', 'rank-math' ); ?></h3>
12
  <p>
13
+ <?php esc_html_e( 'Congratulations on installing Rank Math. We hope that you\'ve had no issues with installing Rank Math on your website. After the installation, the next step is to run the setup wizard and configure Rank Math.', 'rank-math' ); ?>
14
  </p>
15
  <p>
16
+ <?php esc_html_e( 'While Rank Math automatically initiates the setup wizard once you install it, it is possible to skip it accidentally. If you’ve also skipped Rank Math’s setup wizard, then you can rerun the setup wizard by going to Rank Math’s dashboard, and then clicking the Setup Wizard tab.', 'rank-math' ); ?>
17
  </p>
18
  <p>
19
+ <img src="https://rankmath.com/wp-content/uploads/2018/08/rank-math-setup-wizard-tab.jpg" alt="<?php esc_attr_e( 'Rank Math Setup Wizard Tab', 'rank-math' ); ?>" style="max-width: 100%; height: auto;" width="900" height="535" class="aligncenter size-full wp-image-327302" />
20
  </p>
21
  <p>
22
+ <a href="<?php KB::the( 'how-to-setup' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full setup tutorial', 'rank-math' ); ?></a>
23
  </p>
24
  <p>
25
+ <?php
26
+ printf(
27
+ /* translators: link to support */
28
+ __( 'If you have any questions about the setup process or are facing difficulties in setting up Rank Math for your website, then get in touch with our support staff by <a href="%1$s" target="_blank">opening a support ticket</a>. The support staff is available 24x7x365 and will help you out with any issues that you have.', 'rank-math' ),
29
+ 'https://support.rankmath.com/'
30
+ );
31
+ ?>
32
  </p>
includes/admin/views/help/index.php CHANGED
File without changes
includes/admin/views/help/local-seo.php CHANGED
@@ -6,25 +6,43 @@
6
  * @subpackage RankMath\Admin\Help
7
  */
8
 
9
- use RankMath\Helper;
10
  use RankMath\KB;
 
11
  ?>
12
- <h3>Local SEO</h3>
13
  <p>
14
- Local SEO is a way for you to rank better for searches made by your people in the area where you operate. It is the best way for you to get your products and services in front of the local customers.
15
  </p>
16
  <p>
17
- There are various methods for optimizing your website for local SEO but the easiest method is built right inside the Rank Math plugin.
18
  </p>
19
  <p>
20
- Simply <a rel="nofollow noopener noreferrer" href="<?php KB::the( 'local-seo' ); ?>" target="_blank">setup your business as Local Business</a> during the setup wizard.
 
 
 
 
 
 
21
  </p>
22
  <p>
23
- Make sure the Local SEO & Google Knowledge Graph module is enabled.
24
  </p>
25
  <p>
26
- Then, head over to <a href="<?php echo Helper::get_admin_url( 'options-titles#setting-panel-local' ); ?>">Rank Math > Titles and Meta > Local SEO</a> and add more information about your Local Business like your Company Name, Logo, Email ID, Phone number, Address, And Contact/About pages.
 
 
 
 
 
 
27
  </p>
28
  <p>
29
- If you face any sort of issue, <a href="<?php KB::the( 'rm-support' ); ?>" target="_blank">open a new ticket here</a> so that we can help.
 
 
 
 
 
 
30
  </p>
6
  * @subpackage RankMath\Admin\Help
7
  */
8
 
 
9
  use RankMath\KB;
10
+ use RankMath\Helper;
11
  ?>
12
+ <h3><?php esc_html_e( 'Local SEO', 'rank-math' ); ?></h3>
13
  <p>
14
+ <?php esc_html_e( 'Local SEO is a way for you to rank better for searches made by your people in the area where you operate. It is the best way for you to get your products and services in front of the local customers.', 'rank-math' ); ?>
15
  </p>
16
  <p>
17
+ <?php esc_html_e( 'There are various methods for optimizing your website for local SEO but the easiest method is built right inside the Rank Math plugin.', 'rank-math' ); ?>
18
  </p>
19
  <p>
20
+ <?php
21
+ printf(
22
+ /* translators: link to local-seo */
23
+ __( 'Simply <a rel="nofollow noopener noreferrer" href="%1$s" target="_blank">setup your business as Local Business</a> during the setup wizard.', 'rank-math' ),
24
+ KB::get( 'local-seo' )
25
+ );
26
+ ?>
27
  </p>
28
  <p>
29
+ <?php esc_html_e( 'Make sure the Local SEO & Google Knowledge Graph module is enabled.', 'rank-math' ); ?>
30
  </p>
31
  <p>
32
+ <?php
33
+ printf(
34
+ /* translators: link to local seo settings */
35
+ __( 'Then, head over to <a href="%1$s">Rank Math > Titles and Meta > Local SEO</a> and add more information about your Local Business like your Company Name, Logo, Email ID, Phone number, Address, And Contact/About pages.', 'rank-math' ),
36
+ Helper::get_admin_url( 'options-titles#setting-panel-local' )
37
+ );
38
+ ?>
39
  </p>
40
  <p>
41
+ <?php
42
+ printf(
43
+ /* translators: link to support */
44
+ __( 'If you face any sort of issue, <a href="%1$s" target="_blank">open a new ticket here</a> so that we can help.', 'rank-math' ),
45
+ KB::get( 'rm-support' )
46
+ );
47
+ ?>
48
  </p>
includes/admin/views/import-export/backup-panel.php CHANGED
@@ -25,7 +25,7 @@ $backups = get_option( 'rank_math_backups', array() );
25
  printf( esc_html__( 'Backup: %s', 'rank-math' ), date( 'M jS Y, H:i a', $key ) );
26
  ?>
27
  </th>
28
- <td>
29
  <button type="button" class="button button-primary rank-math-action" data-action="restoreBackup" data-key="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Restore', 'rank-math' ); ?></button>
30
  <button type="button" class="button button-link-delete rank-math-action" data-action="deleteBackup" data-key="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Delete', 'rank-math' ); ?></button>
31
  </td>
@@ -35,7 +35,7 @@ $backups = get_option( 'rank_math_backups', array() );
35
  <tr class="hidden">
36
  <th>
37
  </th>
38
- <td>
39
  <button type="button" class="button button-primary rank-math-action" data-action="restoreBackup" data-key=""><?php esc_html_e( 'Restore', 'rank-math' ); ?></button>
40
  <button type="button" class="button button-link-delete rank-math-action" data-action="deleteBackup" data-key=""><?php esc_html_e( 'Delete', 'rank-math' ); ?></button>
41
  </td>
25
  printf( esc_html__( 'Backup: %s', 'rank-math' ), date( 'M jS Y, H:i a', $key ) );
26
  ?>
27
  </th>
28
+ <td style="width:195px;padding-left:0;">
29
  <button type="button" class="button button-primary rank-math-action" data-action="restoreBackup" data-key="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Restore', 'rank-math' ); ?></button>
30
  <button type="button" class="button button-link-delete rank-math-action" data-action="deleteBackup" data-key="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Delete', 'rank-math' ); ?></button>
31
  </td>
35
  <tr class="hidden">
36
  <th>
37
  </th>
38
+ <td style="width:195px;padding-left:0;">
39
  <button type="button" class="button button-primary rank-math-action" data-action="restoreBackup" data-key=""><?php esc_html_e( 'Restore', 'rank-math' ); ?></button>
40
  <button type="button" class="button button-link-delete rank-math-action" data-action="deleteBackup" data-key=""><?php esc_html_e( 'Delete', 'rank-math' ); ?></button>
41
  </td>
includes/admin/views/import-export/export-panel.php CHANGED
File without changes
includes/admin/views/import-export/import-panel.php CHANGED
File without changes
includes/admin/views/import-export/index.php CHANGED
File without changes
includes/admin/views/import-export/main.php CHANGED
File without changes
includes/admin/views/import-export/plugins-panel.php CHANGED
File without changes
includes/admin/views/index.php CHANGED
File without changes
includes/admin/views/plugin-activation.php CHANGED
File without changes
includes/admin/views/plugin-updates.php CHANGED
File without changes
includes/admin/views/wizard/import.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
- /**
3
- * Setup wizard import step.
4
- *
5
- * @package RankMath
6
- * @subpackage RankMath\Admin\Wizard
7
- */
8
-
9
- ?>
10
- <header>
11
- <h1><?php esc_html_e( 'Import SEO Settings', 'rank-math' ); ?></h1>
12
- <p><?php esc_html_e( 'You can import SEO settings from the following plugins:', 'rank-math' ); ?></p>
13
- </header>
14
-
15
- <?php $this->cmb->show_form(); ?>
16
-
17
-
18
- <div id="import-progress-bar">
19
- <div id="importProgress">
20
- <div id="importBar"></div>
21
- </div>
22
- <span class="left"><strong><?php echo esc_html__( 'Importing: ', 'rank-math' ); ?></strong><span class="plugin-from"></span></span>
23
- <span class="right"><span class="number">0</span>% <?php echo esc_html__( 'Completed', 'rank-math' ); ?></span>
24
- </div>
25
- <textarea id="import-progress" class="import-progress-area large-text" disabled="disabled" rows="8"></textarea>
26
- <footer class="form-footer wp-core-ui rank-math-ui">
27
- <button type="submit" class="button button-secondary button-deactivate-plugins" data-deactivate-message="<?php esc_html_e( 'Deactivating Plugins...', 'rank-math' ); ?>"><?php esc_html_e( 'Skip, Don\'t Import Now', 'rank-math' ); ?></button>
28
- <button type="submit" class="button button-primary button-continue" style="display:none"><?php esc_html_e( 'Continue', 'rank-math' ); ?></button>
29
- <button type="submit" class="button button-primary button-import"><?php esc_html_e( 'Start Import', 'rank-math' ); ?></button>
30
- </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/views/wizard/optimization.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- /**
3
- * Setup wizard optimization step.
4
- *
5
- * @package RankMath
6
- * @subpackage RankMath\Admin\Wizard
7
- */
8
-
9
- use RankMath\KB;
10
- ?>
11
- <header>
12
- <h1><?php esc_html_e( 'SEO Tweaks', 'rank-math' ); ?> </h1>
13
- <p>
14
- <?php
15
- /* translators: Link to How to Optimization KB article */
16
- printf( esc_html__( 'Automate some of your SEO tasks like making external links nofollow, redirecting attachment pages, etc.. %s', 'rank-math' ), '<a href="' . KB::get( 'seo-tweaks' ) . '" target="_blank">' . esc_html__( 'Learn More', 'rank-math' ) . '</a>' );
17
- ?>
18
- </p>
19
- </header>
20
-
21
- <?php $this->cmb->show_form(); ?>
22
-
23
- <footer class="form-footer wp-core-ui rank-math-ui">
24
- <?php $this->skip_link(); ?>
25
- <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
26
- </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/views/wizard/search-console.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- /**
3
- * Setup wizard search console step.
4
- *
5
- * @package RankMath
6
- * @subpackage RankMath\Admin\Wizard
7
- */
8
-
9
- use RankMath\KB;
10
- ?>
11
- <header>
12
- <h1><?php esc_html_e( 'Google&trade; Search Console', 'rank-math' ); ?> </h1>
13
- <p>
14
- <?php
15
- /* translators: Link to How to Setup Google Search Console KB article */
16
- printf( esc_html__( 'Verify your site on Google Search Console and connect it here to see crawl error notifications, keyword statistics and other important information right in your WordPress dashboard. %s', 'rank-math' ), '<a href="' . KB::get( 'search-console' ) . '" target="_blank">' . esc_html__( 'Read more about it here.', 'rank-math' ) . '</a>' );
17
- ?>
18
- </p>
19
- </header>
20
-
21
- <?php $this->cmb->show_form(); ?>
22
-
23
- <footer class="form-footer wp-core-ui rank-math-ui">
24
- <?php $this->skip_link(); ?>
25
- <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
26
- </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/views/wizard/sitemaps.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- /**
3
- * Setup wizard sitemap step.
4
- *
5
- * @package RankMath
6
- * @subpackage RankMath\Admin\Wizard
7
- */
8
-
9
- use RankMath\KB;
10
- ?>
11
- <header>
12
- <h1><?php esc_html_e( 'Sitemap', 'rank-math' ); ?> </h1>
13
- <p>
14
- <?php
15
- /* translators: Link to How to Setup Sitemap KB article */
16
- printf( esc_html__( 'Choose your Sitemap configuration and select which type of posts or pages you want to include in your Sitemaps. %s', 'rank-math' ), '<a href="' . KB::get( 'configure-sitemaps' ) . '" target="_blank">' . esc_html__( 'Learn more.', 'rank-math' ) . '</a>' );
17
- ?>
18
- </p>
19
- </header>
20
-
21
- <?php $this->cmb->show_form(); ?>
22
-
23
- <footer class="form-footer wp-core-ui rank-math-ui">
24
- <?php $this->skip_link(); ?>
25
- <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
26
- </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/watcher/class-watcher.php CHANGED
File without changes
includes/admin/wizard/class-compatibility.php ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Compatibility wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\Helper;
14
+
15
+ defined( 'ABSPATH' ) || exit;
16
+
17
+ /**
18
+ * Step class.
19
+ */
20
+ class Compatibility implements Wizard_Step {
21
+
22
+ /**
23
+ * Render step body.
24
+ *
25
+ * @param object $wizard Wizard class instance.
26
+ *
27
+ * @return void
28
+ */
29
+ public function render( $wizard ) {
30
+ include_once $wizard->get_view( 'compatibility' );
31
+ }
32
+
33
+ /**
34
+ * Render form for step.
35
+ *
36
+ * @param object $wizard Wizard class instance.
37
+ *
38
+ * @return void
39
+ */
40
+ public function form( $wizard ) {
41
+ }
42
+
43
+ /**
44
+ * Save handler for step.
45
+ *
46
+ * @param array $values Values to save.
47
+ * @param object $wizard Wizard class instance.
48
+ *
49
+ * @return bool
50
+ */
51
+ public function save( $values, $wizard ) {
52
+ return true;
53
+ }
54
+
55
+ /**
56
+ * Get conflicting plugins.
57
+ *
58
+ * @return array
59
+ */
60
+ private function get_conflicting_plugins() {
61
+ $plugins_found = [];
62
+ $active_plugins = get_option( 'active_plugins' );
63
+ $conflicting_plugins = $this->get_conflicting_plugins_list();
64
+ foreach ( $conflicting_plugins as $plugin_slug => $plugin_name ) {
65
+ if ( in_array( $plugin_slug, $active_plugins ) !== false ) {
66
+ $plugins_found[ $plugin_slug ] = $plugin_name;
67
+ }
68
+ }
69
+
70
+ return $plugins_found;
71
+ }
72
+
73
+ /**
74
+ * Return list of possibly conflicting plugins.
75
+ * Used in SEO Analysis & Setup Wizard.
76
+ *
77
+ * @return array List of plugins in path => name format
78
+ */
79
+ private function get_conflicting_plugins_list() {
80
+
81
+ $plugins = [
82
+ '2-click-socialmedia-buttons/2-click-socialmedia-buttons.php' => '2 Click Social Media Buttons.',
83
+ 'add-link-to-facebook/add-link-to-facebook.php' => 'Add Link to Facebook.',
84
+ 'extended-wp-reset/extended-wp-reset.php' => 'Extended WP Reset.',
85
+ 'add-meta-tags/add-meta-tags.php' => 'Add Meta Tags.',
86
+ 'all-in-one-seo-pack/all_in_one_seo_pack.php' => 'All In One SEO Pack',
87
+ 'easy-facebook-share-thumbnails/esft.php' => 'Easy Facebook Share Thumbnail.',
88
+ 'facebook/facebook.php' => 'Facebook (official plugin).',
89
+ 'facebook-awd/AWD_facebook.php' => 'Facebook AWD All in one.',
90
+ 'facebook-featured-image-and-open-graph-meta-tags/fb-featured-image.php' => 'Facebook Featured Image & OG Meta Tags.',
91
+ 'facebook-meta-tags/facebook-metatags.php' => 'Facebook Meta Tags.',
92
+ 'wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php' => 'Facebook Open Graph Meta Tags for WordPress.',
93
+ 'facebook-revised-open-graph-meta-tag/index.php' => 'Facebook Revised Open Graph Meta Tag.',
94
+ 'facebook-thumb-fixer/_facebook-thumb-fixer.php' => 'Facebook Thumb Fixer.',
95
+ 'facebook-and-digg-thumbnail-generator/facebook-and-digg-thumbnail-generator.php' => 'Fedmich\'s Facebook Open Graph Meta.',
96
+ 'header-footer/plugin.php' => 'Header and Footer.',
97
+ 'network-publisher/networkpub.php' => 'Network Publisher.',
98
+ 'nextgen-facebook/nextgen-facebook.php' => 'NextGEN Facebook OG.',
99
+ 'opengraph/opengraph.php' => 'Open Graph.',
100
+ 'open-graph-protocol-framework/open-graph-protocol-framework.php' => 'Open Graph Protocol Framework.',
101
+ 'seo-facebook-comments/seofacebook.php' => 'SEO Facebook Comments.',
102
+ 'seo-ultimate/seo-ultimate.php' => 'SEO Ultimate.',
103
+ 'sexybookmarks/sexy-bookmarks.php' => 'Shareaholic.',
104
+ 'shareaholic/sexy-bookmarks.php' => 'Shareaholic.',
105
+ 'sharepress/sharepress.php' => 'SharePress.',
106
+ 'simple-facebook-connect/sfc.php' => 'Simple Facebook Connect.',
107
+ 'social-discussions/social-discussions.php' => 'Social Discussions.',
108
+ 'social-sharing-toolkit/social_sharing_toolkit.php' => 'Social Sharing Toolkit.',
109
+ 'socialize/socialize.php' => 'Socialize.',
110
+ 'only-tweet-like-share-and-google-1/tweet-like-plusone.php' => 'Tweet, Like, Google +1 and Share.',
111
+ 'wordbooker/wordbooker.php' => 'Wordbooker.',
112
+ 'wordpress-seo/wp-seo.php' => 'Yoast SEO',
113
+ 'wordpress-seo-premium/wp-seo-premium.php' => 'Yoast SEO Premium',
114
+ 'wpsso/wpsso.php' => 'WordPress Social Sharing Optimization.',
115
+ 'wp-caregiver/wp-caregiver.php' => 'WP Caregiver.',
116
+ 'wp-facebook-like-send-open-graph-meta/wp-facebook-like-send-open-graph-meta.php' => 'WP Facebook Like Send & Open Graph Meta.',
117
+ 'wp-facebook-open-graph-protocol/wp-facebook-ogp.php' => 'WP Facebook Open Graph protocol.',
118
+ 'wp-ogp/wp-ogp.php' => 'WP-OGP.',
119
+ 'zoltonorg-social-plugin/zosp.php' => 'Zolton.org Social Plugin.',
120
+ 'all-in-one-schemaorg-rich-snippets/index.php' => 'All In One Schema Rich Snippets.',
121
+ 'wp-schema-pro/wp-schema-pro.php' => 'Schema Pro',
122
+ 'no-category-base-wpml/no-category-base-wpml.php' => 'No Category Base (WPML)',
123
+ 'all-404-redirect-to-homepage/all-404-redirect-to-homepage.php' => 'All 404 Redirect to Homepage',
124
+ 'remove-category-url/remove-category-url.php' => 'Remove Category URL',
125
+ ];
126
+
127
+ $plugins = Helper::is_module_active( 'redirections' ) ? array_merge( $plugins, $this->get_redirection_conflicting_plugins() ) : $plugins;
128
+ $plugins = Helper::is_module_active( 'sitemap' ) ? array_merge( $plugins, $this->get_sitemap_conflicting_plugins() ) : $plugins;
129
+
130
+ return $plugins;
131
+ }
132
+
133
+ /**
134
+ * Redirection conflicting plugins
135
+ *
136
+ * @return array
137
+ */
138
+ private function get_redirection_conflicting_plugins() {
139
+ return [
140
+ 'redirection/redirection.php' => 'Redirection',
141
+ ];
142
+ }
143
+
144
+ /**
145
+ * Sitemap conflicting plugins
146
+ *
147
+ * @return array
148
+ */
149
+ private function get_sitemap_conflicting_plugins() {
150
+ return [
151
+ 'google-sitemap-plugin/google-sitemap-plugin.php' => 'Google Sitemap (BestWebSoft).',
152
+ 'xml-sitemaps/xml-sitemaps.php' => 'XML Sitemaps (Denis de Bernardy and Mike Koepke).',
153
+ 'bwp-google-xml-sitemaps/bwp-simple-gxs.php' => 'Better WordPress Google XML Sitemaps (Khang Minh).',
154
+ 'google-sitemap-generator/sitemap.php' => 'Google XML Sitemaps (Arne Brachhold).',
155
+ 'xml-sitemap-feed/xml-sitemap.php' => 'XML Sitemap & Google News feeds (RavanH).',
156
+ 'google-monthly-xml-sitemap/monthly-xml-sitemap.php' => 'Google Monthly XML Sitemap (Andrea Pernici).',
157
+ 'simple-google-sitemap-xml/simple-google-sitemap-xml.php' => 'Simple Google Sitemap XML (iTx Technologies).',
158
+ 'another-simple-xml-sitemap/another-simple-xml-sitemap.php' => 'Another Simple XML Sitemap.',
159
+ 'xml-maps/google-sitemap.php' => 'Xml Sitemap (Jason Martens).',
160
+ 'google-xml-sitemap-generator-by-anton-dachauer/adachauer-google-xml-sitemap.php' => 'Google XML Sitemap Generator by Anton Dachauer (Anton Dachauer).',
161
+ 'wp-xml-sitemap/wp-xml-sitemap.php' => 'WP XML Sitemap (Team Vivacity).',
162
+ 'sitemap-generator-for-webmasters/sitemap.php' => 'Sitemap Generator for Webmasters (iwebslogtech).',
163
+ 'xml-sitemap-xml-sitemapcouk/xmls.php' => 'XML Sitemap - XML-Sitemap.co.uk (Simon Hancox).',
164
+ 'sewn-in-xml-sitemap/sewn-xml-sitemap.php' => 'Sewn In XML Sitemap (jcow).',
165
+ 'rps-sitemap-generator/rps-sitemap-generator.php' => 'RPS Sitemap Generator (redpixelstudios).',
166
+ ];
167
+ }
168
+ }
includes/admin/wizard/class-import.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Import wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Admin\Importers\Detector;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Import implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( 'Import SEO Settings', 'rank-math' ); ?></h1>
34
+ <p><?php esc_html_e( 'You can import SEO settings from the following plugins:', 'rank-math' ); ?></p>
35
+ </header>
36
+
37
+ <?php $wizard->cmb->show_form(); ?>
38
+
39
+
40
+ <div id="import-progress-bar">
41
+ <div id="importProgress">
42
+ <div id="importBar"></div>
43
+ </div>
44
+ <span class="left"><strong><?php echo esc_html__( 'Importing: ', 'rank-math' ); ?></strong><span class="plugin-from"></span></span>
45
+ <span class="right"><span class="number">0</span>% <?php echo esc_html__( 'Completed', 'rank-math' ); ?></span>
46
+ </div>
47
+ <textarea id="import-progress" class="import-progress-area large-text" disabled="disabled" rows="8"></textarea>
48
+ <footer class="form-footer wp-core-ui rank-math-ui">
49
+ <button type="submit" class="button button-secondary button-deactivate-plugins" data-deactivate-message="<?php esc_html_e( 'Deactivating Plugins...', 'rank-math' ); ?>"><?php esc_html_e( 'Skip, Don\'t Import Now', 'rank-math' ); ?></button>
50
+ <button type="submit" class="button button-primary button-continue" style="display:none"><?php esc_html_e( 'Continue', 'rank-math' ); ?></button>
51
+ <button type="submit" class="button button-primary button-import"><?php esc_html_e( 'Start Import', 'rank-math' ); ?></button>
52
+ </footer>
53
+ <?php
54
+ }
55
+
56
+ /**
57
+ * Render form for step.
58
+ *
59
+ * @param object $wizard Wizard class instance.
60
+ *
61
+ * @return void
62
+ */
63
+ public function form( $wizard ) {
64
+ $detector = new Detector;
65
+ $plugins = $detector->detect();
66
+
67
+ $count = 0;
68
+ foreach ( $plugins as $slug => $plugin ) {
69
+ $checked = 'checked';
70
+ $multi_checked = 'multicheck-checked';
71
+ $choices = array_keys( $plugin['choices'] );
72
+
73
+ if ( ( array_key_exists( 'yoast', $plugins ) || array_key_exists( 'yoast-premium', $plugins ) ) && 'aioseo' === $slug ) {
74
+ $checked = '';
75
+ $multi_checked = '';
76
+ $choices = [];
77
+ }
78
+
79
+ $field_args = [
80
+ 'id' => 'import_from_' . $slug,
81
+ 'type' => 'group',
82
+ 'description' => '<input type="checkbox" class="import-data" name="import[]" value="' . $slug . '" ' . $checked . ' data-plugin="' . $plugin['name'] . '" />',
83
+ 'before_group' => 0 === $count ? '<h3 class="import-label">' . esc_html__( 'Input Data From:', 'rank-math' ) . '</h3>' : '',
84
+ 'repeatable' => false,
85
+ 'options' => [
86
+ 'group_title' => $plugin['name'],
87
+ 'sortable' => false,
88
+ 'closed' => true,
89
+ ],
90
+ ];
91
+
92
+ $group_id = $wizard->cmb->add_field( $field_args );
93
+
94
+ if ( ! function_exists( 'is_plugin_active' ) ) {
95
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
96
+ }
97
+
98
+ $is_active = is_plugin_active( $plugin['file'] );
99
+ $wizard->cmb->add_group_field( $group_id, [
100
+ 'id' => $slug . '_meta',
101
+ 'type' => 'multicheck',
102
+ 'repeatable' => false,
103
+ 'desc' => $this->get_choice_description( $slug, $plugin, $is_active ),
104
+ 'options' => $plugin['choices'],
105
+ 'default' => $choices,
106
+ 'dep' => [ [ 'import_from', $slug ] ],
107
+ 'classes' => 'nob nopb cmb-multicheck-inline with-description ' . $multi_checked . ' ' . $is_active,
108
+ 'attributes' => [ 'data-active' => $is_active ],
109
+ ]);
110
+
111
+ $count++;
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Save handler for step.
117
+ *
118
+ * @param array $values Values to save.
119
+ * @param object $wizard Wizard class instance.
120
+ *
121
+ * @return bool
122
+ */
123
+ public function save( $values, $wizard ) {
124
+ return true;
125
+ }
126
+
127
+ /**
128
+ * Get description for choice field.
129
+ *
130
+ * @param string $slug Plugin slug.
131
+ * @param array $plugin Plugin info array.
132
+ * @param boolean $is_active Is plugin active.
133
+ *
134
+ * @return string
135
+ */
136
+ private function get_choice_description( $slug, $plugin, $is_active ) {
137
+ /* translators: 1 is plugin name */
138
+ $desc = 'aio-rich-snippet' === $slug ? esc_html__( 'Import meta data from the %1$s plugin.', 'rank-math' ) : esc_html__( 'Import settings and meta data from the %1$s plugin.', 'rank-math' );
139
+
140
+ /* translators: 2 is link to Knowledge Base article */
141
+ $desc .= __( 'The process may take a few minutes if you have a large number of posts or pages <a href="%2$s" target="_blank">Learn more about the import process here.</a>', 'rank-math' );
142
+
143
+ if ( $is_active ) {
144
+ /* translators: 1 is plugin name */
145
+ $desc .= '<br>' . __( ' %1$s plugin will be disabled automatically moving forward to avoid conflicts. <strong>It is thus recommended to import the data you need now.</strong>', 'rank-math' );
146
+ }
147
+
148
+ return sprintf( wp_kses_post( $desc ), $plugin['name'], KB::get( 'seo-import' ) );
149
+ }
150
+ }
includes/admin/wizard/class-misc.php ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Misc wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Helper;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Misc implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( 'Miscellaneous ', 'rank-math' ); ?> </h1>
34
+ <p><?php esc_html_e( 'Control different settings for important aspects of your website here.', 'rank-math' ); ?></p>
35
+ </header>
36
+
37
+ <?php $wizard->cmb->show_form(); ?>
38
+
39
+ <footer class="form-footer wp-core-ui rank-math-ui">
40
+ <a href="<?php echo esc_url( Helper::get_admin_url() ); ?>" class="button button-secondary button-skip"><?php esc_html_e( 'Skip step', 'rank-math' ); ?></a>
41
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
42
+ </footer>
43
+ <?php
44
+ }
45
+
46
+ /**
47
+ * Render form for step.
48
+ *
49
+ * @param object $wizard Wizard class instance.
50
+ *
51
+ * @return void
52
+ */
53
+ public function form( $wizard ) {
54
+ $wizard->cmb->add_field([
55
+ 'id' => 'add_img_alt',
56
+ 'type' => 'switch',
57
+ 'name' => esc_html__( 'Add missing ALT attributes', 'rank-math' ),
58
+ /* translators: Link to setting screen */
59
+ 'desc' => sprintf( wp_kses_post( __( 'Add missing <code>alt</code> attribute for <code>img</code> tags in your post contents and featured images. This option will not change the stored content of the post, it adds the attribute on the fly when the content is displayed. You can see %s.', 'rank-math' ) ), '<a href="' . Helper::get_admin_url( 'options-general#setting-panel-images' ) . '" target="_blank">' . esc_html__( 'all options we offer here', 'rank-math' ) . '</a>' ),
60
+ 'default' => Helper::get_settings( 'general.add_img_alt' ) ? 'on' : 'off',
61
+ ]);
62
+
63
+ $wizard->cmb->add_field([
64
+ 'id' => 'rich_snippet',
65
+ 'type' => 'switch',
66
+ 'name' => esc_html__( 'Rich Snippet', 'rank-math' ),
67
+ 'desc' => esc_html__( 'Use automatic structured data to mark up content, to help Google better understand your content\'s context for display in Search. You can set different defaults for your posts here.', 'rank-math' ),
68
+ 'default' => Helper::is_module_active( 'rich-snippet' ) ? 'on' : 'off',
69
+ ]);
70
+
71
+ foreach ( Helper::get_accessible_post_types() as $post_type ) {
72
+ if ( 'attachment' === $post_type ) {
73
+ continue;
74
+ }
75
+
76
+ $wizard->cmb->add_field( $this->get_field_args( $post_type ) );
77
+
78
+ // Article fields.
79
+ $article_dep = [ 'relation' => 'and' ] + [ [ 'rich_snippet', 'on' ] ];
80
+ $article_dep[] = [ 'pt_' . $post_type . '_default_rich_snippet', 'article' ];
81
+ /* translators: Google article snippet doc link */
82
+ $article_desc = 'person' === Helper::get_settings( 'titles.knowledgegraph_type' ) ? '<div class="notice notice-warning inline" style="margin-left:0;"><p>' . sprintf( __( 'Google does not allow Person as the Publisher for articles. Organization will be used instead. You can read more about this <a href="%s" target="_blank">here</a>.', 'rank-math' ), KB::get( 'article' ) ) . '</p></div>' : '';
83
+ $wizard->cmb->add_field([
84
+ 'id' => 'pt_' . $post_type . '_default_article_type',
85
+ 'type' => 'radio_inline',
86
+ 'name' => esc_html__( 'Article Type', 'rank-math' ),
87
+ 'options' => [
88
+ 'Article' => esc_html__( 'Article', 'rank-math' ),
89
+ 'BlogPosting' => esc_html__( 'Blog Post', 'rank-math' ),
90
+ 'NewsArticle' => esc_html__( 'News Article', 'rank-math' ),
91
+ ],
92
+ 'default' => 'post' === $post_type ? 'BlogPosting' : 'Article',
93
+ 'dep' => $article_dep,
94
+ 'desc' => $article_desc,
95
+ ]);
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Save handler for step.
101
+ *
102
+ * @param array $values Values to save.
103
+ * @param object $wizard Wizard class instance.
104
+ *
105
+ * @return bool
106
+ */
107
+ public function save( $values, $wizard ) {
108
+ $settings = rank_math()->settings->all_raw();
109
+ Helper::update_modules( [ 'rich-snippet' => $values['rich_snippet'] ] );
110
+
111
+ // General.
112
+ $settings['general']['add_img_alt'] = $values['add_img_alt'];
113
+
114
+ // Rich Snippet.
115
+ if ( 'on' === $values['rich_snippet'] ) {
116
+ foreach ( Helper::get_accessible_post_types() as $post_type ) {
117
+ if ( 'attachment' === $post_type ) {
118
+ continue;
119
+ }
120
+
121
+ $id = 'pt_' . $post_type . '_default_rich_snippet';
122
+ $article_type = 'pt_' . $post_type . '_default_article_type';
123
+
124
+ $settings['titles'][ $id ] = $values[ $id ];
125
+ $settings['titles'][ $article_type ] = $values[ $article_type ];
126
+ }
127
+ }
128
+ Helper::update_all_settings( $settings['general'], $settings['titles'], null );
129
+
130
+ return Helper::get_admin_url();
131
+ }
132
+
133
+ /**
134
+ * Get field arguments.
135
+ *
136
+ * @param string $post_type Post type.
137
+ *
138
+ * @return array
139
+ */
140
+ private function get_field_args( $post_type ) {
141
+ $object = get_post_type_object( $post_type );
142
+ $field_id = 'pt_' . $post_type . '_default_rich_snippet';
143
+
144
+ /* translators: Post type name */
145
+ $field_name = sprintf( esc_html__( 'Rich Snippet Type for %s', 'rank-math' ), $object->label );
146
+
147
+ $richsnp_default = [
148
+ 'post' => 'article',
149
+ 'product' => 'product',
150
+ ];
151
+
152
+ if ( 'product' === $post_type ) {
153
+ return [
154
+ 'id' => $field_id,
155
+ 'type' => 'radio_inline',
156
+ 'name' => $field_name,
157
+ 'desc' => __( 'Default rich snippet selected when creating a new product.', 'rank-math' ),
158
+ 'options' => [
159
+ 'off' => esc_html__( 'None', 'rank-math' ),
160
+ 'product' => esc_html__( 'Product', 'rank-math' ),
161
+ ],
162
+ 'default' => Helper::get_settings( 'titles.pt_' . $post_type . '_default_rich_snippet', ( isset( $richsnp_default[ $post_type ] ) ? $richsnp_default[ $post_type ] : 'product' ) ),
163
+ ];
164
+
165
+ }
166
+
167
+ return [
168
+ 'id' => $field_id,
169
+ 'type' => 'select',
170
+ 'name' => $field_name,
171
+ 'desc' => esc_html__( 'Default rich snippet selected when creating a new post of this type. ', 'rank-math' ),
172
+ 'options' => Helper::choices_rich_snippet_types( esc_html__( 'None (Click here to set one)', 'rank-math' ) ),
173
+ 'dep' => [ [ 'rich_snippet', 'on' ] ],
174
+ 'default' => Helper::get_settings( 'titles.pt_' . $post_type . '_default_rich_snippet', ( isset( $richsnp_default[ $post_type ] ) ? $richsnp_default[ $post_type ] : 'none' ) ),
175
+ ];
176
+ }
177
+ }
includes/admin/wizard/class-monitor-redirection.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Monitor Redirection wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Helper;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Monitor_Redirection implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( '404 Monitor', 'rank-math' ); ?> </h1>
34
+ <p><?php esc_html_e( 'Set default values for the 404 error monitor here.', 'rank-math' ); ?> <a href="<?php KB::the( '404-monitor' ); ?>" target="_blank"><?php esc_html_e( 'Learn about the options here.', 'rank-math' ); ?></a></p>
35
+ </header>
36
+
37
+ <?php $wizard->cmb->show_form(); ?>
38
+
39
+ <footer class="form-footer wp-core-ui rank-math-ui">
40
+ <?php $wizard->get_skip_link(); ?>
41
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
42
+ </footer>
43
+ <?php
44
+ }
45
+
46
+ /**
47
+ * Render form for step.
48
+ *
49
+ * @param object $wizard Wizard class instance.
50
+ *
51
+ * @return void
52
+ */
53
+ public function form( $wizard ) {
54
+
55
+ // 404 Monitor.
56
+ $wizard->cmb->add_field([
57
+ 'id' => '404_monitor',
58
+ 'type' => 'switch',
59
+ 'name' => esc_html__( '404 Monitor', 'rank-math' ),
60
+ /* translators: Link to kb article */
61
+ 'desc' => __( 'The 404 monitor will let you see if visitors or search engines bump into any <code>404 Not Found</code> error while browsing your site.', 'rank-math' ),
62
+ 'default' => Helper::is_module_active( '404-monitor' ) ? 'on' : 'off',
63
+ ]);
64
+
65
+ // Redirections.
66
+ $wizard->cmb->add_field([
67
+ 'id' => 'redirection_title',
68
+ 'type' => 'raw',
69
+ 'content' => sprintf( '<br><header class="redirections-header"><h1 class="text-center">%1$s</h1><p class="text-center redirections-desc">%2$s %3$s</p>', esc_html__( 'Redirections', 'rank-math' ), esc_html__( 'Set default values for the redirection module from here.', 'rank-math' ), '<a href="' . KB::get( 'redirections' ) . '" target="_blank">' . esc_html__( 'Learn more about Redirections.', 'rank-math' ) . '</a></header>' ),
70
+ ]);
71
+
72
+ $wizard->cmb->add_field([
73
+ 'id' => 'redirections',
74
+ 'type' => 'switch',
75
+ 'name' => esc_html__( 'Redirections', 'rank-math' ),
76
+ 'desc' => esc_html__( 'Set up temporary or permanent redirections. Combined with the 404 monitor, you can easily redirect faulty URLs on your site, or add custom redirections.', 'rank-math' ),
77
+ 'default' => Helper::is_module_active( 'redirections' ) ? 'on' : 'off',
78
+ ]);
79
+ }
80
+
81
+ /**
82
+ * Save handler for step.
83
+ *
84
+ * @param array $values Values to save.
85
+ * @param object $wizard Wizard class instance.
86
+ *
87
+ * @return bool
88
+ */
89
+ public function save( $values, $wizard ) {
90
+ Helper::update_modules([
91
+ '404-monitor' => $values['404_monitor'],
92
+ 'redirections' => $values['redirections'],
93
+ ]);
94
+
95
+ return true;
96
+ }
97
+ }
includes/admin/wizard/class-optimization.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Optimization wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Helper;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Optimization implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( 'SEO Tweaks', 'rank-math' ); ?> </h1>
34
+ <p>
35
+ <?php
36
+ /* translators: Link to How to Optimization KB article */
37
+ printf( esc_html__( 'Automate some of your SEO tasks like making external links nofollow, redirecting attachment pages, etc.. %s', 'rank-math' ), '<a href="' . KB::get( 'seo-tweaks' ) . '" target="_blank">' . esc_html__( 'Learn More', 'rank-math' ) . '</a>' );
38
+ ?>
39
+ </p>
40
+ </header>
41
+
42
+ <?php $wizard->cmb->show_form(); ?>
43
+
44
+ <footer class="form-footer wp-core-ui rank-math-ui">
45
+ <?php $wizard->get_skip_link(); ?>
46
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
47
+ </footer>
48
+ <?php
49
+ }
50
+
51
+ /**
52
+ * Render form for step.
53
+ *
54
+ * @param object $wizard Wizard class instance.
55
+ *
56
+ * @return void
57
+ */
58
+ public function form( $wizard ) {
59
+ $wizard->cmb->add_field([
60
+ 'id' => 'noindex_empty_taxonomies',
61
+ 'type' => 'switch',
62
+ 'name' => esc_html__( 'Noindex Empty Category and Tag Archives', 'rank-math' ),
63
+ 'desc' => wp_kses_post( __( 'Setting empty archives to <code>noindex</code> is useful for avoiding indexation of thin content pages and dilution of page rank. As soon as a post is added, the page is updated to <code>index</code>.', 'rank-math' ) ),
64
+ 'default' => Helper::get_settings( 'titles.noindex_empty_taxonomies' ) ? 'on' : 'off',
65
+ ]);
66
+
67
+ $wizard->cmb->add_field([
68
+ 'id' => 'nofollow_image_links',
69
+ 'type' => 'switch',
70
+ 'name' => esc_html__( 'Nofollow Image File Links', 'rank-math' ),
71
+ 'desc' => wp_kses_post( __( 'Automatically add <code>rel="nofollow"</code> attribute for links pointing to external image files. The attribute is dynamically applied when the content is displayed, and the stored content is not changed.', 'rank-math' ) ),
72
+ 'default' => Helper::get_settings( 'general.nofollow_image_links' ) ? 'on' : 'off',
73
+ ]);
74
+
75
+ $wizard->cmb->add_field([
76
+ 'id' => 'nofollow_external_links',
77
+ 'type' => 'switch',
78
+ 'name' => esc_html__( 'Nofollow External Links', 'rank-math' ),
79
+ 'desc' => wp_kses_post( __( 'Automatically add <code>rel="nofollow"</code> attribute for external links appearing in your posts, pages, and other post types. The attribute is dynamically applied when the content is displayed, and the stored content is not changed.', 'rank-math' ) ),
80
+ 'default' => Helper::get_settings( 'general.nofollow_external_links' ) ? 'on' : 'off',
81
+ ]);
82
+
83
+ $wizard->cmb->add_field([
84
+ 'id' => 'new_window_external_links',
85
+ 'type' => 'switch',
86
+ 'name' => esc_html__( 'Open External Links in New Tab/Window', 'rank-math' ),
87
+ 'desc' => wp_kses_post( __( 'Automatically add a <code>target="_blank"</code> attribute to external links appearing in your posts, pages, and other post types. The attributes are applied when the content is displayed, which does not change the stored content.', 'rank-math' ) ),
88
+ 'default' => Helper::get_settings( 'general.new_window_external_links' ) ? 'on' : 'off',
89
+ ]);
90
+
91
+ $wizard->cmb->add_field([
92
+ 'id' => 'strip_category_base',
93
+ 'type' => 'switch',
94
+ 'name' => esc_html__( 'Strip Category Base', 'rank-math' ),
95
+ /* translators: Link to kb article */
96
+ 'desc' => sprintf( wp_kses_post( __( 'Remove /category/ from category archive URLs. <a href="%s" target="_blank">Why do this?</a><br>E.g. <code>example.com/category/my-category/</code> becomes <code>example.com/my-category</code>', 'rank-math' ) ), KB::get( 'remove-category-base' ) ),
97
+ 'default' => Helper::get_settings( 'general.strip_category_base' ) ? 'on' : 'off',
98
+ ]);
99
+ }
100
+
101
+ /**
102
+ * Save handler for step.
103
+ *
104
+ * @param array $values Values to save.
105
+ * @param object $wizard Wizard class instance.
106
+ *
107
+ * @return bool
108
+ */
109
+ public function save( $values, $wizard ) {
110
+ $settings = rank_math()->settings->all_raw();
111
+
112
+ $settings['general']['strip_category_base'] = $values['strip_category_base'];
113
+ $settings['titles']['noindex_empty_taxonomies'] = $values['noindex_empty_taxonomies'];
114
+
115
+ if ( isset( $values['attachment_redirect_urls'] ) && 'on' === $values['attachment_redirect_urls'] ) {
116
+ $settings['general']['attachment_redirect_urls'] = $values['attachment_redirect_urls'];
117
+ $settings['general']['attachment_redirect_default'] = $values['attachment_redirect_default'];
118
+ }
119
+
120
+ $settings['general']['nofollow_image_links'] = $values['nofollow_image_links'];
121
+ $settings['general']['nofollow_external_links'] = $values['nofollow_external_links'];
122
+ $settings['general']['new_window_external_links'] = $values['new_window_external_links'];
123
+
124
+ Helper::is_configured( true );
125
+ Helper::update_all_settings( $settings['general'], $settings['titles'], null );
126
+ Helper::schedule_flush_rewrite();
127
+
128
+ return true;
129
+ }
130
+ }
includes/admin/wizard/class-ready.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Ready wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ defined( 'ABSPATH' ) || exit;
14
+
15
+ /**
16
+ * Step class.
17
+ */
18
+ class Ready implements Wizard_Step {
19
+
20
+ /**
21
+ * Render step body.
22
+ *
23
+ * @param object $wizard Wizard class instance.
24
+ *
25
+ * @return void
26
+ */
27
+ public function render( $wizard ) {
28
+ include_once $wizard->get_view( 'ready' );
29
+ }
30
+
31
+ /**
32
+ * Render form for step.
33
+ *
34
+ * @param object $wizard Wizard class instance.
35
+ *
36
+ * @return void
37
+ */
38
+ public function form( $wizard ) {
39
+ }
40
+
41
+ /**
42
+ * Save handler for step.
43
+ *
44
+ * @param array $values Values to save.
45
+ * @param object $wizard Wizard class instance.
46
+ *
47
+ * @return bool
48
+ */
49
+ public function save( $values, $wizard ) {
50
+ return true;
51
+ }
52
+ }
includes/admin/wizard/class-role.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Role wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\Helper;
14
+ use MyThemeShop\Helpers\WordPress;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Role implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( 'Role Manager', 'rank-math' ); ?></h1>
34
+ <p><?php esc_html_e( 'Set capabilities here.', 'rank-math' ); ?></p>
35
+ </header>
36
+
37
+ <?php $wizard->cmb->show_form(); ?>
38
+
39
+ <footer class="form-footer wp-core-ui rank-math-ui">
40
+ <?php $wizard->get_skip_link(); ?>
41
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
42
+ </footer>
43
+ <?php
44
+ }
45
+
46
+ /**
47
+ * Render form for step.
48
+ *
49
+ * @param object $wizard Wizard class instance.
50
+ *
51
+ * @return void
52
+ */
53
+ public function form( $wizard ) {
54
+ $defaults = Helper::get_roles_capabilities();
55
+ $cap_count = count( Helper::get_capabilities() );
56
+
57
+ foreach ( WordPress::get_roles() as $role => $label ) {
58
+ $default = isset( $defaults[ $role ] ) ? $defaults[ $role ] : [];
59
+ $wizard->cmb->add_field([
60
+ 'id' => esc_attr( $role ),
61
+ 'type' => 'multicheck_inline',
62
+ 'name' => translate_user_role( $label ),
63
+ 'options' => Helper::get_capabilities(),
64
+ 'default' => $default,
65
+ 'classes' => 'cmb-big-labels' . ( count( $default ) === $cap_count ? ' multicheck-checked' : '' ),
66
+ ]);
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Save handler for step.
72
+ *
73
+ * @param array $values Values to save.
74
+ * @param object $wizard Wizard class instance.
75
+ *
76
+ * @return bool
77
+ */
78
+ public function save( $values, $wizard ) {
79
+ if ( empty( $values ) ) {
80
+ return false;
81
+ }
82
+
83
+ Helper::set_capabilities( $values );
84
+ return true;
85
+ }
86
+ }
includes/admin/wizard/class-search-console.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Search Console wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Helper;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Search_Console implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( 'Google&trade; Search Console', 'rank-math' ); ?> </h1>
34
+ <p>
35
+ <?php
36
+ /* translators: Link to How to Setup Google Search Console KB article */
37
+ printf( esc_html__( 'Verify your site on Google Search Console and connect it here to see crawl error notifications, keyword statistics and other important information right in your WordPress dashboard. %s', 'rank-math' ), '<a href="' . KB::get( 'search-console' ) . '" target="_blank">' . esc_html__( 'Read more about it here.', 'rank-math' ) . '</a>' );
38
+ ?>
39
+ </p>
40
+ </header>
41
+
42
+ <?php $wizard->cmb->show_form(); ?>
43
+
44
+ <footer class="form-footer wp-core-ui rank-math-ui">
45
+ <?php $wizard->get_skip_link(); ?>
46
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
47
+ </footer>
48
+ <?php
49
+ }
50
+
51
+ /**
52
+ * Render form for step.
53
+ *
54
+ * @param object $wizard Wizard class instance.
55
+ *
56
+ * @return void
57
+ */
58
+ public function form( $wizard ) {
59
+ $dep = '';
60
+ $data = Helper::search_console_data();
61
+
62
+ if ( ! Helper::is_module_active( 'search-console' ) ) {
63
+ $wizard->cmb->add_field([
64
+ 'id' => 'search-console',
65
+ 'type' => 'switch',
66
+ 'name' => esc_html__( 'Search Console', 'rank-math' ),
67
+ 'desc' => esc_html__( 'Connect Rank Math with Google Search Console to see the most important information from Google directly in your WordPress dashboard.', 'rank-math' ),
68
+ 'default' => 'off',
69
+ ]);
70
+ $dep = [ [ 'search-console', 'on' ] ];
71
+ }
72
+
73
+ $wizard->cmb->add_field([
74
+ 'id' => 'rank_math_sc_step2',
75
+ 'type' => 'raw',
76
+ /* translators: count */
77
+ 'content' => '<br>',
78
+ ]);
79
+
80
+ $wizard->cmb->add_field([
81
+ 'id' => 'console_authorization_code',
82
+ 'type' => 'text',
83
+ 'name' => esc_html__( 'Search Console', 'rank-math' ),
84
+ 'desc' => esc_html__( 'Authorize Rank Math to access data from the Google Search Console.', 'rank-math' ),
85
+ 'attributes' => [ 'data-authorized' => $data['authorized'] ? 'true' : 'false' ],
86
+ 'after' => $this->get_buttons(),
87
+ 'dep' => $dep,
88
+ ]);
89
+
90
+ $profile = Helper::get_settings( 'general.console_profile' );
91
+ $profile_label = str_replace( 'sc-domain:', __( 'Domain Property: ', 'rank-math' ), $profile );
92
+ foreach ( $data['profiles'] as $key => $value ) {
93
+ $data['profiles'][ $key ] = str_replace( 'sc-domain:', __( 'Domain Property: ', 'rank-math' ), $value );
94
+ }
95
+
96
+ $wizard->cmb->add_field([
97
+ 'id' => 'console_profile',
98
+ 'type' => 'select',
99
+ 'name' => esc_html__( 'Search Console Profile', 'rank-math' ),
100
+ 'desc' => esc_html__( 'After authenticating with Google Search Console, select your website from the dropdown list.', 'rank-math' ) .
101
+ ' <span id="gsc-dp-info" class="hidden">' . __( 'Please note that the Sitemaps overview in the Search Console module will not be available when using a Domain Property.', 'rank-math' ) . '</span>' .
102
+ /* translators: Link to setting screen */
103
+ '<br><br><span style="color: orange;">' . sprintf( __( 'Is your site not listed? <a href="%1$s" target="_blank">Click here</a> to get your website verified.', 'rank-math' ), Helper::get_admin_url( 'options-general#setting-panel-webmaster' ) ) . '</span>',
104
+ 'options' => $profile ? [ $profile => $profile_label ] : $data['profiles'],
105
+ 'default' => $profile,
106
+ 'after' => '<button class="button button-primary hidden" ' . ( $data['authorized'] ? '' : 'disabled="disabled"' ) . '>' . esc_html__( 'Refresh Sites', 'rank-math' ) . '</button>',
107
+ 'attributes' => $data['authorized'] ? [ 'data-s2' => '' ] : [
108
+ 'disabled' => 'disabled',
109
+ 'data-s2' => '',
110
+ ],
111
+ 'dep' => $dep,
112
+ ]);
113
+ }
114
+
115
+ /**
116
+ * Save handler for step.
117
+ *
118
+ * @param array $values Values to save.
119
+ * @param object $wizard Wizard class instance.
120
+ *
121
+ * @return bool
122
+ */
123
+ public function save( $values, $wizard ) {
124
+ $module = 'off';
125
+ $settings = rank_math()->settings->all_raw();
126
+
127
+ if ( isset( $values['console_profile'] ) ) {
128
+ $module = 'on';
129
+ $settings['general']['console_profile'] = $values['console_profile'];
130
+ }
131
+
132
+ Helper::update_modules( [ 'search-console' => $module ] );
133
+ Helper::update_all_settings( $settings['general'], null, null );
134
+
135
+ return true;
136
+ }
137
+
138
+ /**
139
+ * Get buttons html.
140
+ *
141
+ * @return string
142
+ */
143
+ private function get_buttons() {
144
+ $data = Helper::search_console_data();
145
+ $primary = '<button class="button button-primary">' . ( $data['authorized'] ? esc_html__( 'De-authorize Account', 'rank-math' ) : esc_html__( 'Authorize', 'rank-math' ) ) . '</button>';
146
+ $secondary = '<a href="' . esc_url( Helper::get_console_auth_url() ) . '" class="button button-secondary custom"' . ( $data['authorized'] ? ' style="display:none;"' : '' ) . '>' . esc_html__( 'Get Authorization Code', 'rank-math' ) . '</a><br />';
147
+
148
+ return $primary . $secondary;
149
+ }
150
+ }
includes/admin/wizard/class-sitemap.php ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Sitemap wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Helper;
15
+
16
+ defined( 'ABSPATH' ) || exit;
17
+
18
+ /**
19
+ * Step class.
20
+ */
21
+ class Sitemap implements Wizard_Step {
22
+
23
+ /**
24
+ * Render step body.
25
+ *
26
+ * @param object $wizard Wizard class instance.
27
+ *
28
+ * @return void
29
+ */
30
+ public function render( $wizard ) {
31
+ ?>
32
+ <header>
33
+ <h1><?php esc_html_e( 'Sitemap', 'rank-math' ); ?> </h1>
34
+ <p>
35
+ <?php
36
+ /* translators: Link to How to Setup Sitemap KB article */
37
+ printf( esc_html__( 'Choose your Sitemap configuration and select which type of posts or pages you want to include in your Sitemaps. %s', 'rank-math' ), '<a href="' . KB::get( 'configure-sitemaps' ) . '" target="_blank">' . esc_html__( 'Learn more.', 'rank-math' ) . '</a>' );
38
+ ?>
39
+ </p>
40
+ </header>
41
+
42
+ <?php $wizard->cmb->show_form(); ?>
43
+
44
+ <footer class="form-footer wp-core-ui rank-math-ui">
45
+ <?php $wizard->get_skip_link(); ?>
46
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
47
+ </footer>
48
+ <?php
49
+ }
50
+
51
+ /**
52
+ * Render form for step.
53
+ *
54
+ * @param object $wizard Wizard class instance.
55
+ *
56
+ * @return void
57
+ */
58
+ public function form( $wizard ) {
59
+ $wizard->cmb->add_field([
60
+ 'id' => 'sitemap',
61
+ 'type' => 'switch',
62
+ 'name' => esc_html__( 'Sitemaps', 'rank-math' ),
63
+ 'desc' => esc_html__( 'XML Sitemaps help search engines index your website&#039;s content more effectively.', 'rank-math' ),
64
+ 'default' => Helper::is_module_active( 'sitemap' ) ? 'on' : 'off',
65
+ ]);
66
+
67
+ $wizard->cmb->add_field([
68
+ 'id' => 'include_images',
69
+ 'type' => 'switch',
70
+ 'name' => esc_html__( 'Include Images', 'rank-math' ),
71
+ 'desc' => esc_html__( 'Include reference to images from the post content in sitemaps. This helps search engines index your images better.', 'rank-math' ),
72
+ 'default' => Helper::get_settings( 'sitemap.include_images' ) ? 'on' : 'off',
73
+ 'classes' => 'features-child',
74
+ 'dep' => [ [ 'sitemap', 'on' ] ],
75
+ ]);
76
+
77
+ // Post Types.
78
+ $post_types = $this->get_post_types();
79
+ $wizard->cmb->add_field([
80
+ 'id' => 'sitemap_post_types',
81
+ 'type' => 'multicheck',
82
+ 'name' => esc_html__( 'Public Post Types', 'rank-math' ),
83
+ 'desc' => esc_html__( 'Select post types to enable SEO options for them and include them in the sitemap.', 'rank-math' ),
84
+ 'options' => $post_types['post_types'],
85
+ 'default' => $post_types['defaults'],
86
+ 'classes' => 'features-child cmb-multicheck-inline' . ( count( $post_types['post_types'] ) === count( $post_types['defaults'] ) ? ' multicheck-checked' : '' ),
87
+ 'dep' => [ [ 'sitemap', 'on' ] ],
88
+ ]);
89
+
90
+ // Taxonomies.
91
+ $taxonomies = $this->get_taxonomies();
92
+ $wizard->cmb->add_field([
93
+ 'id' => 'sitemap_taxonomies',
94
+ 'type' => 'multicheck',
95
+ 'name' => esc_html__( 'Public Taxonomies', 'rank-math' ),
96
+ 'desc' => esc_html__( 'Select taxonomies to enable SEO options for them and include them in the sitemap.', 'rank-math' ),
97
+ 'options' => $taxonomies['taxonomies'],
98
+ 'default' => $taxonomies['defaults'],
99
+ 'classes' => 'features-child cmb-multicheck-inline' . ( count( $taxonomies['taxonomies'] ) === count( $taxonomies['defaults'] ) ? ' multicheck-checked' : '' ),
100
+ 'dep' => [ [ 'sitemap', 'on' ] ],
101
+ ]);
102
+ }
103
+
104
+ /**
105
+ * Save handler for step.
106
+ *
107
+ * @param array $values Values to save.
108
+ * @param object $wizard Wizard class instance.
109
+ *
110
+ * @return bool
111
+ */
112
+ public function save( $values, $wizard ) {
113
+ $settings = rank_math()->settings->all_raw();
114
+ Helper::update_modules( [ 'sitemap' => $values['sitemap'] ] );
115
+
116
+ if ( 'on' === $values['sitemap'] ) {
117
+ $settings['sitemap']['include_images'] = $values['include_images'];
118
+
119
+ $settings = $this->save_post_types( $settings, $values );
120
+ $settings = $this->save_taxonomies( $settings, $values );
121
+ Helper::update_all_settings( null, null, $settings['sitemap'] );
122
+ }
123
+
124
+ Helper::schedule_flush_rewrite();
125
+ return true;
126
+ }
127
+
128
+ /**
129
+ * Get post type data.
130
+ *
131
+ * @return array
132
+ */
133
+ private function get_post_types() {
134
+ $p_defaults = [];
135
+ $post_types = Helper::choices_post_types();
136
+ unset( $post_types['attachment'] );
137
+
138
+ foreach ( $post_types as $post_type => $object ) {
139
+ if ( true === Helper::get_settings( "sitemap.pt_{$post_type}_sitemap" ) ) {
140
+ $p_defaults[] = $post_type;
141
+ }
142
+ }
143
+
144
+ return [
145
+ 'defaults' => $p_defaults,
146
+ 'post_types' => $post_types,
147
+ ];
148
+ }
149
+
150
+ /**
151
+ * Get taxonomies data.
152
+ *
153
+ * @return array
154
+ */
155
+ private function get_taxonomies() {
156
+ $t_defaults = [];
157
+ $taxonomies = Helper::get_accessible_taxonomies();
158
+ unset( $taxonomies['post_tag'], $taxonomies['post_format'], $taxonomies['product_tag'] );
159
+ $taxonomies = wp_list_pluck( $taxonomies, 'label', 'name' );
160
+ foreach ( $taxonomies as $taxonomy => $label ) {
161
+ if ( true === Helper::get_settings( "sitemap.tax_{$taxonomy}_sitemap" ) ) {
162
+ $t_defaults[] = $taxonomy;
163
+ }
164
+ }
165
+ $t_defaults = ! empty( $t_defaults ) ? $t_defaults : [ 'category' ];
166
+
167
+ return [
168
+ 'defaults' => $t_defaults,
169
+ 'taxonomies' => $taxonomies,
170
+ ];
171
+ }
172
+
173
+ /**
174
+ * Save Post Types
175
+ *
176
+ * @param array $settings Array of all settings.
177
+ * @param array $values Array of posted values.
178
+ *
179
+ * @return array
180
+ */
181
+ private function save_post_types( $settings, $values ) {
182
+ $post_types = Helper::choices_post_types();
183
+ if ( ! isset( $values['sitemap_post_types'] ) ) {
184
+ $values['sitemap_post_types'] = [];
185
+ }
186
+
187
+ foreach ( $post_types as $post_type => $object ) {
188
+ $settings['sitemap'][ "pt_{$post_type}_sitemap" ] = in_array( $post_type, $values['sitemap_post_types'] ) ? 'on' : 'off';
189
+ }
190
+
191
+ return $settings;
192
+ }
193
+
194
+ /**
195
+ * Save Taxonomies
196
+ *
197
+ * @param array $settings Array of all settings.
198
+ * @param array $values Array of posted values.
199
+ *
200
+ * @return array
201
+ */
202
+ private function save_taxonomies( $settings, $values ) {
203
+ $taxonomies = Helper::get_accessible_taxonomies();
204
+ $taxonomies = wp_list_pluck( $taxonomies, 'label', 'name' );
205
+ if ( ! isset( $values['sitemap_taxonomies'] ) ) {
206
+ $values['sitemap_taxonomies'] = [];
207
+ }
208
+
209
+ foreach ( $taxonomies as $taxonomy => $label ) {
210
+ $settings['sitemap'][ "tax_{$taxonomy}_sitemap" ] = in_array( $taxonomy, $values['sitemap_taxonomies'] ) ? 'on' : 'off';
211
+ }
212
+
213
+ return $settings;
214
+ }
215
+ }
includes/admin/wizard/class-your-site.php ADDED
@@ -0,0 +1,298 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Your Site wizard step
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ use RankMath\KB;
14
+ use RankMath\Helper;
15
+ use RankMath\Admin\Admin_Helper;
16
+
17
+ defined( 'ABSPATH' ) || exit;
18
+
19
+ /**
20
+ * Step class.
21
+ */
22
+ class Your_Site implements Wizard_Step {
23
+
24
+ /**
25
+ * Render step body.
26
+ *
27
+ * @param object $wizard Wizard class instance.
28
+ *
29
+ * @return void
30
+ */
31
+ public function render( $wizard ) {
32
+ include_once $wizard->get_view( 'your-site' );
33
+ }
34
+
35
+ /**
36
+ * Render form for step.
37
+ *
38
+ * @param object $wizard Wizard class instance.
39
+ *
40
+ * @return void
41
+ */
42
+ public function form( $wizard ) {
43
+ $displayname = $this->get_site_display_name();
44
+ $wizard->cmb->add_field([
45
+ 'id' => 'site_type',
46
+ 'type' => 'select',
47
+ /* translators: sitename */
48
+ 'name' => sprintf( esc_html__( '%1$s is a&hellip;', 'rank-math' ), $displayname ),
49
+ 'options' => $this->get_type_choices(),
50
+ 'default' => $this->get_default_site_type(),
51
+ ]);
52
+
53
+ $wizard->cmb->add_field([
54
+ 'id' => 'business_type',
55
+ 'type' => 'select',
56
+ 'name' => esc_html__( 'Business Type', 'rank-math' ),
57
+ 'desc' => esc_html__( 'Select the type that best describes your business. If you can\'t find one that applies exactly, use the generic "Organization" or "Local Business" types.', 'rank-math' ),
58
+ 'options' => Helper::choices_business_types(),
59
+ 'attributes' => [
60
+ 'data-s2' => '',
61
+ 'data-default' => Helper::get_settings( 'titles.local_business_type' ) ? '0' : '1',
62
+ ],
63
+ 'default' => Helper::get_settings( 'titles.local_business_type' ),
64
+ 'dep' => $this->get_type_dependency(),
65
+ ]);
66
+
67
+ $wizard->cmb->add_field([
68
+ 'id' => 'company_name',
69
+ 'type' => 'text',
70
+ 'name' => esc_html__( 'Company Name', 'rank-math' ),
71
+ 'default' => Helper::get_settings( 'titles.knowledgegraph_name', $displayname ),
72
+ 'dep' => $this->get_type_dependency(),
73
+ ]);
74
+
75
+ $wizard->cmb->add_field([
76
+ 'id' => 'company_logo',
77
+ 'type' => 'file',
78
+ 'name' => esc_html__( 'Logo for Google', 'rank-math' ),
79
+ 'default' => $this->get_default_logo(),
80
+ 'desc' => __( '<strong>Min Size: 160Χ90px, Max Size: 1920X1080px</strong>.<br />A squared image is preferred by the search engines.', 'rank-math' ),
81
+ 'options' => [ 'url' => false ],
82
+ ]);
83
+
84
+ $wizard->cmb->add_field([
85
+ 'id' => 'open_graph_image',
86
+ 'type' => 'file',
87
+ 'name' => esc_html__( 'Default Social Share Image', 'rank-math' ),
88
+ 'desc' => __( 'When a featured image is not set, this image will be used as a thumbnail when your post is shared on Facebook. <strong>Recommended image size 1200 x 630 pixels.</strong>', 'rank-math' ),
89
+ 'options' => [ 'url' => false ],
90
+ 'default' => Helper::get_settings( 'titles.open_graph_image' ),
91
+ ]);
92
+ }
93
+
94
+ /**
95
+ * Save handler for step.
96
+ *
97
+ * @param array $values Values to save.
98
+ * @param object $wizard Wizard class instance.
99
+ *
100
+ * @return bool
101
+ */
102
+ public function save( $values, $wizard ) {
103
+ $settings = wp_parse_args( rank_math()->settings->all_raw(), [
104
+ 'titles' => '',
105
+ 'sitemap' => '',
106
+ ]);
107
+ $current_user = wp_get_current_user();
108
+ $values = wp_parse_args( $values, [
109
+ 'author_name' => $current_user->display_name,
110
+ 'company_logo' => '',
111
+ 'company_logo_id' => '',
112
+ 'open_graph_image' => '',
113
+ 'open_graph_image_id' => '',
114
+ ]);
115
+
116
+ // Save these settings.
117
+ $functions = [ 'save_local_seo', 'save_post_types', 'save_taxonomies' ];
118
+ foreach ( $functions as $function ) {
119
+ $settings = $this->$function( $settings, $values );
120
+ }
121
+
122
+ $business_type = [ 'news', 'business', 'webshop', 'otherbusiness' ];
123
+ $modules = [ 'local-seo' => in_array( $values['site_type'], $business_type ) ? 'on' : 'off' ];
124
+ $users = get_users( [ 'role__in' => [ 'administrator', 'editor', 'author', 'contributor' ] ] );
125
+
126
+ if ( count( $users ) > 1 && ! is_plugin_active( 'members/members.php' ) ) {
127
+ $modules['role-manager'] = 'on';
128
+ }
129
+
130
+ set_transient( '_rank_math_site_type', $values['site_type'] );
131
+ Helper::update_modules( $modules );
132
+ Helper::update_all_settings( null, $settings['titles'], null );
133
+
134
+ return true;
135
+ }
136
+
137
+ /**
138
+ * Save Local Seo
139
+ *
140
+ * @param array $settings Array of all settings.
141
+ * @param array $values Array of posted values.
142
+ *
143
+ * @return array
144
+ */
145
+ private function save_local_seo( $settings, $values ) {
146
+ switch ( $values['site_type'] ) {
147
+ case 'blog':
148
+ case 'portfolio':
149
+ $settings['titles']['knowledgegraph_type'] = 'person';
150
+ $settings['titles']['knowledgegraph_name'] = $values['author_name'];
151
+ $settings['titles']['knowledgegraph_logo'] = $values['company_logo'];
152
+ $settings['titles']['knowledgegraph_logo_id'] = $values['company_logo_id'];
153
+ break;
154
+
155
+ case 'news':
156
+ case 'webshop':
157
+ case 'business':
158
+ case 'otherbusiness':
159
+ $settings['titles']['knowledgegraph_type'] = 'company';
160
+ $settings['titles']['knowledgegraph_name'] = $values['company_name'];
161
+ $settings['titles']['knowledgegraph_logo'] = $values['company_logo'];
162
+ $settings['titles']['local_business_type'] = $values['business_type'];
163
+ $settings['titles']['knowledgegraph_logo_id'] = $values['company_logo_id'];
164
+ break;
165
+
166
+ case 'otherpersonal':
167
+ $settings['titles']['knowledgegraph_type'] = 'person';
168
+ $settings['titles']['knowledgegraph_name'] = $values['author_name'];
169
+ break;
170
+ }
171
+
172
+ $settings['titles']['open_graph_image'] = $values['open_graph_image'];
173
+ $settings['titles']['open_graph_image_id'] = $values['open_graph_image_id'];
174
+
175
+ // Check and delete.
176
+ if ( empty( $values['open_graph_image_id'] ) ) {
177
+ unset( $settings['titles']['open_graph_image'] );
178
+ unset( $settings['titles']['open_graph_image_id'] );
179
+ }
180
+ if ( empty( $values['company_logo_id'] ) ) {
181
+ unset( $settings['titles']['knowledgegraph_logo'] );
182
+ unset( $settings['titles']['knowledgegraph_logo_id'] );
183
+ }
184
+
185
+ return $settings;
186
+ }
187
+
188
+ /**
189
+ * Save Post Types
190
+ *
191
+ * @param array $settings Array of all settings.
192
+ * @param array $values Array of posted values.
193
+ *
194
+ * @return array
195
+ */
196
+ private function save_post_types( $settings, $values ) {
197
+ foreach ( Helper::get_accessible_post_types() as $post_type => $label ) {
198
+ if ( 'attachment' === $post_type ) {
199
+ continue;
200
+ }
201
+
202
+ $settings['titles'][ "pt_{$post_type}_add_meta_box" ] = 'on';
203
+ }
204
+
205
+ return $settings;
206
+ }
207
+
208
+ /**
209
+ * Save Taxonomies
210
+ *
211
+ * @param array $settings Array of all settings.
212
+ * @param array $values Array of posted values.
213
+ *
214
+ * @return array
215
+ */
216
+ private function save_taxonomies( $settings, $values ) {
217
+ $taxonomies = Admin_Helper::get_taxonomies_options();
218
+ array_shift( $taxonomies );
219
+ foreach ( $taxonomies as $taxonomy => $label ) {
220
+ $settings['titles'][ "tax_{$taxonomy}_add_meta_box" ] = 'on';
221
+ }
222
+
223
+ return $settings;
224
+ }
225
+
226
+ /**
227
+ * Get site display name.
228
+ *
229
+ * @return string
230
+ */
231
+ protected function get_site_display_name() {
232
+ $siteurl = get_bloginfo( 'url' );
233
+ $sitename = get_bloginfo( 'title' );
234
+
235
+ return $sitename ? $sitename : $siteurl;
236
+ }
237
+
238
+ /**
239
+ * Get default logo.
240
+ *
241
+ * @return string
242
+ */
243
+ private function get_default_logo() {
244
+ if ( defined( 'MTS_THEME_NAME' ) && MTS_THEME_NAME ) {
245
+ $theme_options = get_option( MTS_THEME_NAME );
246
+ if ( isset( $theme_options['mts_logo'] ) ) {
247
+ return wp_get_attachment_url( $theme_options['mts_logo'] );
248
+ }
249
+ }
250
+
251
+ if ( current_theme_supports( 'custom-logo' ) && ! empty( get_theme_mod( 'custom_logo' ) ) ) {
252
+ return wp_get_attachment_url( get_theme_mod( 'custom_logo' ) );
253
+ }
254
+
255
+ return Helper::get_settings( 'titles.knowledgegraph_logo' );
256
+ }
257
+
258
+ /**
259
+ * Get default site type.
260
+ *
261
+ * @return string
262
+ */
263
+ private function get_default_site_type() {
264
+ $default_type = get_transient( '_rank_math_site_type' );
265
+ return $default_type ? $default_type : ( class_exists( 'Easy_Digital_Downloads' ) || class_exists( 'WooCommerce' ) ? 'webshop' : 'blog' );
266
+ }
267
+
268
+ /**
269
+ * Get type dependecy.
270
+ *
271
+ * @return array
272
+ */
273
+ private function get_type_dependency() {
274
+ return [
275
+ [ 'site_type', 'news' ],
276
+ [ 'site_type', 'business' ],
277
+ [ 'site_type', 'webshop' ],
278
+ [ 'site_type', 'otherbusiness' ],
279
+ ];
280
+ }
281
+
282
+ /**
283
+ * Get type choices.
284
+ *
285
+ * @return array
286
+ */
287
+ private function get_type_choices() {
288
+ return [
289
+ 'blog' => esc_html__( 'Personal Blog', 'rank-math' ),
290
+ 'news' => esc_html__( 'Community Blog/News Site', 'rank-math' ),
291
+ 'portfolio' => esc_html__( 'Personal Portfolio', 'rank-math' ),
292
+ 'business' => esc_html__( 'Small Business Site', 'rank-math' ),
293
+ 'webshop' => esc_html__( 'Webshop', 'rank-math' ),
294
+ 'otherpersonal' => esc_html__( 'Other Personal Website', 'rank-math' ),
295
+ 'otherbusiness' => esc_html__( 'Other Business Website', 'rank-math' ),
296
+ ];
297
+ }
298
+ }
includes/admin/wizard/interface-wizard-step.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The wizard step contract.
4
+ *
5
+ * @since 0.9.0
6
+ * @package RankMath
7
+ * @subpackage RankMath\Wizard
8
+ * @author Rank Math <support@rankmath.com>
9
+ */
10
+
11
+ namespace RankMath\Wizard;
12
+
13
+ defined( 'ABSPATH' ) || exit;
14
+
15
+ /**
16
+ * Wizard step contract.
17
+ */
18
+ interface Wizard_Step {
19
+
20
+ /**
21
+ * Render step body.
22
+ *
23
+ * @param object $wizard Wizard class instance.
24
+ *
25
+ * @return void
26
+ */
27
+ public function render( $wizard );
28
+
29
+ /**
30
+ * Render form for step.
31
+ *
32
+ * @param object $wizard Wizard class instance.
33
+ *
34
+ * @return void
35
+ */
36
+ public function form( $wizard );
37
+
38
+ /**
39
+ * Save handler for step.
40
+ *
41
+ * @param array $values Values to save.
42
+ * @param object $wizard Wizard class instance.
43
+ *
44
+ * @return bool
45
+ */
46
+ public function save( $values, $wizard );
47
+ }
includes/admin/{views/wizard → wizard/views}/compatibility.php RENAMED
@@ -130,7 +130,7 @@ if ( $all_good ) :
130
  <?php foreach ( $conflicting_plugins as $pk => $plugin ) { ?>
131
  <tr>
132
  <td><span class="dashicons dashicons-warning"></span></td>
133
- <td><?php echo $plugin . ( in_array( $pk, array( 'all-in-one-schemaorg-rich-snippets/index.php', 'wordpress-seo/wp-seo.php', 'wordpress-seo-premium/wp-seo-premium.php', 'all-in-one-seo-pack/all_in_one_seo_pack.php' ) ) ? '<span class="import-info">' . esc_html__( 'You can import settings in the next step.', 'rank-math' ) . '</span>' : '' ); ?></td>
134
  <td><a href="#" class="button button-small wizard-deactivate-plugin" data-plugin="<?php echo esc_attr( $pk ); ?>"><?php esc_html_e( 'Deactivate Plugin', 'rank-math' ); ?></a></td>
135
  </tr>
136
  <?php } ?>
130
  <?php foreach ( $conflicting_plugins as $pk => $plugin ) { ?>
131
  <tr>
132
  <td><span class="dashicons dashicons-warning"></span></td>
133
+ <td><?php echo $plugin . ( in_array( $pk, [ 'all-in-one-schemaorg-rich-snippets/index.php', 'wordpress-seo/wp-seo.php', 'wordpress-seo-premium/wp-seo-premium.php', 'all-in-one-seo-pack/all_in_one_seo_pack.php' ] ) ? '<span class="import-info">' . esc_html__( 'You can import settings in the next step.', 'rank-math' ) . '</span>' : '' ); ?></td>
134
  <td><a href="#" class="button button-small wizard-deactivate-plugin" data-plugin="<?php echo esc_attr( $pk ); ?>"><?php esc_html_e( 'Deactivate Plugin', 'rank-math' ); ?></a></td>
135
  </tr>
136
  <?php } ?>
includes/admin/{views/wizard → wizard/views}/content.php RENAMED
@@ -19,7 +19,7 @@ use RankMath\KB;
19
  <div class="main-content wizard-content--<?php echo esc_attr( $this->step_slug ); ?>">
20
 
21
  <form class="cmb-form" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post">
22
- <input type="hidden" name="action" value="rank_math_save_wizard">
23
  <input type="hidden" name="step" value="<?php echo $this->step; ?>">
24
  <?php wp_nonce_field( 'rank-math-wizard', 'security' ); ?>
25
 
@@ -33,6 +33,6 @@ use RankMath\KB;
33
 
34
  <?php
35
  if ( 'ready' !== $this->step_slug ) :
36
- echo sprintf( '<div class="return-to-dashboard"><a href="%s"><i class="dashicons dashicons-arrow-left-alt2"></i> %s</a></div>', esc_url( 'rank-math-registration' === $_GET['page'] ? admin_url( '/' ) : RankMath\Helper::get_dashboard_url() ), esc_html( $this->strings['return-to-dashboard'] ) );
37
  endif;
38
  ?>
19
  <div class="main-content wizard-content--<?php echo esc_attr( $this->step_slug ); ?>">
20
 
21
  <form class="cmb-form" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post">
22
+ <input type="hidden" name="action" value="<?php echo 'rank-math-registration' === $this->slug ? 'rank_math_save_registration' : 'rank_math_save_wizard'; ?>">
23
  <input type="hidden" name="step" value="<?php echo $this->step; ?>">
24
  <?php wp_nonce_field( 'rank-math-wizard', 'security' ); ?>
25
 
33
 
34
  <?php
35
  if ( 'ready' !== $this->step_slug ) :
36
+ echo sprintf( '<div class="return-to-dashboard"><a href="%s"><i class="dashicons dashicons-arrow-left-alt2"></i> %s</a></div>', esc_url( 'rank-math-registration' === $_GET['page'] ? admin_url( '/' ) : RankMath\Helper::get_dashboard_url() ), esc_html__( 'Return to dashboard', 'rank-math' ) );
37
  endif;
38
  ?>
includes/admin/{views/wizard → wizard/views}/footer.php RENAMED
File without changes
includes/admin/{views/wizard → wizard/views}/header.php RENAMED
@@ -12,7 +12,7 @@
12
  <head>
13
  <meta name="viewport" content="width=device-width"/>
14
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
15
- <?php echo '<title>' . $this->strings['title'] . '</title>'; ?>
16
  <?php wp_print_head_scripts(); ?>
17
  <?php wp_print_styles( 'rank-math-wizard' ); ?>
18
  </head>
12
  <head>
13
  <meta name="viewport" content="width=device-width"/>
14
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
15
+ <title><?php esc_html_e( 'Setup Wizard - Rank Math', 'rank-math' ); ?></title>
16
  <?php wp_print_head_scripts(); ?>
17
  <?php wp_print_styles( 'rank-math-wizard' ); ?>
18
  </head>
includes/admin/{views/wizard → wizard/views}/index.php RENAMED
File without changes
includes/admin/{views/wizard → wizard/views}/navigation.php RENAMED
@@ -18,7 +18,7 @@ $current_step = array_search( $this->step, $array_keys, true );
18
  <?php
19
  foreach ( $output_steps as $step_key => $step ) :
20
 
21
- if ( isset( $step['nav_hide'] ) && $step['nav_hide'] ) {
22
  continue;
23
  }
24
 
@@ -32,7 +32,7 @@ $current_step = array_search( $this->step, $array_keys, true );
32
  }
33
  ?>
34
 
35
- <a class="<?php echo esc_attr( $class_attr ); ?>" href="<?php echo esc_url( $this->step_link( $step_key ) ); ?>" title="<?php echo esc_attr( $step['name'] ); ?>"><span><?php echo $counter; ?></span></a>
36
 
37
  <?php endforeach; ?>
38
 
18
  <?php
19
  foreach ( $output_steps as $step_key => $step ) :
20
 
21
+ if ( $this->is_nav_item_hidden( $step_key ) ) {
22
  continue;
23
  }
24
 
32
  }
33
  ?>
34
 
35
+ <a class="<?php echo esc_attr( $class_attr ); ?>" href="<?php echo esc_url( $this->get_step_link( $step_key ) ); ?>" title="<?php echo esc_attr( $step['name'] ); ?>"><span><?php echo $counter; ?></span></a>
36
 
37
  <?php endforeach; ?>
38
 
includes/admin/{views/wizard → wizard/views}/no-navigation.php RENAMED
File without changes
includes/admin/{views/wizard → wizard/views}/ready.php RENAMED
@@ -56,10 +56,10 @@ use RankMath\KB;
56
  </div>
57
 
58
  <footer class="form-footer wp-core-ui rank-math-ui">
59
- <a href="<?php echo esc_url( Helper::get_dashboard_url() ); ?>" class="button button-secondary"><?php echo esc_html( $this->strings['return-to-dashboard'] ); ?></a>
60
  <a href="<?php echo esc_url( Helper::get_admin_url( 'help' ) ); ?>" class="button button-secondary"><?php esc_html_e( 'Proceed to Help Page', 'rank-math' ); ?></a>
61
- <a href="<?php echo esc_url( $this->step_next_link() ); ?>" class="button button-primary"><?php esc_html_e( 'Setup Advanced Options', 'rank-math' ); ?></a>
62
- <?php do_action( 'rank_math/wizard/ready_footer', $this ); ?>
63
  </footer>
64
  <?php else : ?>
65
  <p><?php esc_html_e( 'Your site is now optimized.', 'rank-math' ); ?></p>
56
  </div>
57
 
58
  <footer class="form-footer wp-core-ui rank-math-ui">
59
+ <a href="<?php echo esc_url( Helper::get_dashboard_url() ); ?>" class="button button-secondary"><?php esc_html_e( 'Return to dashboard', 'rank-math' ); ?></a>
60
  <a href="<?php echo esc_url( Helper::get_admin_url( 'help' ) ); ?>" class="button button-secondary"><?php esc_html_e( 'Proceed to Help Page', 'rank-math' ); ?></a>
61
+ <a href="<?php echo esc_url( $wizard->step_next_link() ); ?>" class="button button-primary"><?php esc_html_e( 'Setup Advanced Options', 'rank-math' ); ?></a>
62
+ <?php do_action( 'rank_math/wizard/ready_footer', $wizard ); ?>
63
  </footer>
64
  <?php else : ?>
65
  <p><?php esc_html_e( 'Your site is now optimized.', 'rank-math' ); ?></p>
includes/admin/{views/wizard → wizard/views}/your-site.php RENAMED
@@ -23,15 +23,15 @@ use RankMath\KB;
23
  <div class="rank-math-wizard-tutorial">
24
  <header>
25
  <?php
26
- $allowed_html = array(
27
- 'a' => array(
28
- 'href' => array(),
29
- 'class' => array(),
30
- 'data-target' => array(),
31
- ),
32
- );
33
- /* translators: help link */
34
- printf( wp_kses( __( 'If you are new to Rank Math, <a href="%s" data-target="rank-math-wizard-tabs" class="rank-math-collapsible-trigger">click here</a> to learn more.', 'rank-math' ), $allowed_html ), KB::get( 'your-site' ) );
35
  ?>
36
  </header>
37
 
@@ -59,9 +59,9 @@ use RankMath\KB;
59
  </div>
60
  <?php endif; ?>
61
 
62
- <?php $this->cmb->show_form(); ?>
63
 
64
  <footer class="form-footer wp-core-ui rank-math-ui">
65
- <?php $this->skip_link(); ?>
66
  <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
67
  </footer>
23
  <div class="rank-math-wizard-tutorial">
24
  <header>
25
  <?php
26
+ $allowed_html = [
27
+ 'a' => [
28
+ 'href' => [],
29
+ 'class' => [],
30
+ 'data-target' => [],
31
+ ],
32
+ ];
33
+ /* translators: help link */
34
+ printf( wp_kses( __( 'If you are new to Rank Math, <a href="%s" data-target="rank-math-wizard-tabs" class="rank-math-collapsible-trigger">click here</a> to learn more.', 'rank-math' ), $allowed_html ), KB::get( 'your-site' ) );
35
  ?>
36
  </header>
37
 
59
  </div>
60
  <?php endif; ?>
61
 
62
+ <?php $wizard->cmb->show_form(); ?>
63
 
64
  <footer class="form-footer wp-core-ui rank-math-ui">
65
+ <?php $wizard->get_skip_link(); ?>
66
  <button type="submit" class="button button-primary"><?php esc_html_e( 'Save and Continue', 'rank-math' ); ?></button>
67
  </footer>
includes/class-cmb2.php CHANGED
File without changes
includes/class-common.php CHANGED
@@ -31,7 +31,6 @@ class Common {
31
  */
32
  public function __construct() {
33
  $this->action( 'admin_bar_menu', 'admin_bar_menu', 100 );
34
- $this->action( 'after_setup_theme', 'add_image_sizes' );
35
  $this->action( 'loginout', 'nofollow_link' );
36
  $this->filter( 'register', 'nofollow_link' );
37
  $this->filter( 'rank_math/excluded_taxonomies', 'default_excluded_taxonomies' );
@@ -191,14 +190,6 @@ class Common {
191
  return $taxonomies;
192
  }
193
 
194
- /**.
195
- * Add image size for Facebook thumbnails
196
- */
197
- public function add_image_sizes() {
198
- add_image_size( 'rank-math-facebook-thumbnail', 560, 292, true );
199
- add_image_size( 'rank-math-knowledgegraph-logo', null, 60, true );
200
- }
201
-
202
  /**
203
  * Adds rel="nofollow" to a link, only used for login / registration links.
204
  *
@@ -523,9 +514,7 @@ class Common {
523
  $thumbnail_id = ! empty( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
524
  $type = $_REQUEST['type'] ? $_REQUEST['type'] : 'play';
525
  $overlay_image = Helper::choices_overlay_images()[ $type ]['url'];
526
- if ( ! $image = wp_get_attachment_image_src( $thumbnail_id, 'rank-math-facebook-thumbnail' ) ) { // phpcs:ignore
527
- $image = wp_get_attachment_image_src( $thumbnail_id, 'full' );
528
- }
529
 
530
  if ( ! empty( $image ) ) {
531
  $this->create_overlay_image( $image[0], $overlay_image );
31
  */
32
  public function __construct() {
33
  $this->action( 'admin_bar_menu', 'admin_bar_menu', 100 );
 
34
  $this->action( 'loginout', 'nofollow_link' );
35
  $this->filter( 'register', 'nofollow_link' );
36
  $this->filter( 'rank_math/excluded_taxonomies', 'default_excluded_taxonomies' );
190
  return $taxonomies;
191
  }
192
 
 
 
 
 
 
 
 
 
193
  /**
194
  * Adds rel="nofollow" to a link, only used for login / registration links.
195
  *
514
  $thumbnail_id = ! empty( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
515
  $type = $_REQUEST['type'] ? $_REQUEST['type'] : 'play';
516
  $overlay_image = Helper::choices_overlay_images()[ $type ]['url'];
517
+ $image = wp_get_attachment_image_src( $thumbnail_id, 'full' );
 
 
518
 
519
  if ( ! empty( $image ) ) {
520
  $this->create_overlay_image( $image[0], $overlay_image );
includes/class-compatibility.php CHANGED
File without changes
includes/class-helper.php CHANGED
File without changes
includes/class-installer.php CHANGED
@@ -295,6 +295,11 @@ class Installer {
295
  $modules[] = 'amp';
296
  }
297
 
 
 
 
 
 
298
  add_option( 'rank_math_modules', $modules );
299
  }
300
 
@@ -340,6 +345,7 @@ class Installer {
340
  'rss_after_content' => '',
341
  'usage_tracking' => 'on',
342
  'wc_remove_generator' => 'on',
 
343
  ]));
344
  }
345
 
295
  $modules[] = 'amp';
296
  }
297
 
298
+ // If 404-monitor is active as plugin.
299
+ if ( false !== get_option( 'rank_math_monitor_version', false ) ) {
300
+ $modules[] = '404-monitor';
301
+ }
302
+
303
  add_option( 'rank_math_modules', $modules );
304
  }
305
 
345
  'rss_after_content' => '',
346
  'usage_tracking' => 'on',
347
  'wc_remove_generator' => 'on',
348
+ 'remove_shop_snippet_data' => 'on',
349
  ]));
350
  }
351
 
includes/class-kb.php CHANGED
File without changes
includes/class-metadata.php CHANGED
File without changes
includes/class-module-manager.php CHANGED
File without changes
includes/class-module.php CHANGED
File without changes
includes/class-post.php CHANGED
@@ -11,6 +11,7 @@
11
  namespace RankMath;
12
 
13
  use WP_Post;
 
14
 
15
  defined( 'ABSPATH' ) || exit;
16
 
@@ -167,7 +168,7 @@ class Post extends Metadata {
167
  * @return bool Whether the current page is the WooCommerce Cart/Account/Checkout page.
168
  */
169
  public static function is_woocommerce_page() {
170
- if ( function_exists( 'is_cart' ) ) {
171
  return is_cart() || is_checkout() || is_account_page();
172
  }
173
 
11
  namespace RankMath;
12
 
13
  use WP_Post;
14
+ use MyThemeShop\Helpers\Conditional;
15
 
16
  defined( 'ABSPATH' ) || exit;
17
 
168
  * @return bool Whether the current page is the WooCommerce Cart/Account/Checkout page.
169
  */
170
  public static function is_woocommerce_page() {
171
+ if ( Conditional::is_woocommerce_active() ) {
172
  return is_cart() || is_checkout() || is_account_page();
173
  }
174
 
includes/class-replace-vars.php CHANGED
File without changes
includes/class-rewrite.php CHANGED
File without changes
includes/class-rollbar.php CHANGED
File without changes
includes/class-settings.php CHANGED
File without changes
includes/class-shortcodes.php CHANGED
File without changes
includes/class-term.php CHANGED
File without changes
includes/class-tracking.php CHANGED
File without changes
includes/class-updates.php CHANGED
File without changes
includes/class-user.php CHANGED
File without changes
includes/cli/class-commands.php CHANGED
File without changes
includes/frontend/class-add-attributes.php CHANGED
File without changes
includes/frontend/class-breadcrumbs.php CHANGED
File without changes
includes/frontend/class-frontend.php CHANGED
@@ -79,7 +79,7 @@ class Frontend {
79
  }
80
 
81
  // Custom robots text.
82
- if ( Helper::get_settings( 'titles.robots_txt_content' ) ) {
83
  $this->action( 'robots_txt', 'robots_txt', 10, 2 );
84
  }
85
  }
@@ -170,7 +170,7 @@ class Frontend {
170
  return $content;
171
  }
172
 
173
- return '0' == $public ? $content : Helper::get_settings( 'titles.robots_txt_content' );
174
  }
175
 
176
  /**
79
  }
80
 
81
  // Custom robots text.
82
+ if ( Helper::get_settings( 'general.robots_txt_content' ) ) {
83
  $this->action( 'robots_txt', 'robots_txt', 10, 2 );
84
  }
85
  }
170
  return $content;
171
  }
172
 
173
+ return '0' == $public ? $content : Helper::get_settings( 'general.robots_txt_content' );
174
  }
175
 
176
  /**
includes/frontend/class-generate.php CHANGED
File without changes
includes/frontend/class-head.php CHANGED
@@ -41,6 +41,7 @@ class Head {
41
  $this->action( 'amphtml_template_head', 'head', 1 );
42
  $this->action( 'weeblramp_print_meta_data', 'head', 1 );
43
  $this->action( 'better-amp/template/head', 'head', 99 );
 
44
  remove_action( 'better-amp/template/head', 'better_amp_print_rel_canonical' );
45
  }
46
 
@@ -143,7 +144,10 @@ class Head {
143
  remove_action( 'wp_head', 'start_post_rel_link' );
144
  remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
145
  remove_action( 'wp_head', 'noindex', 1 );
146
-
 
 
 
147
  /**
148
  * Allow other plugins to output inside the Rank Math section of the head tag.
149
  */
41
  $this->action( 'amphtml_template_head', 'head', 1 );
42
  $this->action( 'weeblramp_print_meta_data', 'head', 1 );
43
  $this->action( 'better-amp/template/head', 'head', 99 );
44
+ $this->action( 'amp_post_template_head', 'head', 9 );
45
  remove_action( 'better-amp/template/head', 'better_amp_print_rel_canonical' );
46
  }
47
 
144
  remove_action( 'wp_head', 'start_post_rel_link' );
145
  remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
146
  remove_action( 'wp_head', 'noindex', 1 );
147
+ if ( Helper::is_module_active( 'amp' ) ) {
148
+ remove_action( 'amp_post_template_head', 'amp_post_template_add_title' );
149
+ remove_action( 'amp_post_template_head', 'amp_post_template_add_canonical' );
150
+ }
151
  /**
152
  * Allow other plugins to output inside the Rank Math section of the head tag.
153
  */
includes/frontend/class-remove-reply-to-com.php CHANGED
File without changes
includes/helpers/class-api.php CHANGED
File without changes
includes/helpers/class-attachment.php CHANGED
File without changes
includes/helpers/class-choices.php CHANGED
@@ -125,7 +125,7 @@ trait Choices {
125
  $post_types = self::choices_post_types();
126
  unset( $post_types['attachment'] );
127
 
128
- return array( 'any' => esc_html__( 'Any', 'rank-math' ) ) + $post_types + array( 'comments' => esc_html__( 'Comments' ) ); // phpcs:ignore
129
  }
130
 
131
  /**
125
  $post_types = self::choices_post_types();
126
  unset( $post_types['attachment'] );
127
 
128
+ return array( 'any' => esc_html__( 'Any', 'rank-math' ) ) + $post_types + array( 'comments' => esc_html( translate( 'Comments' ) ) ); // phpcs:ignore
129
  }
130
 
131
  /**
includes/helpers/class-conditional.php CHANGED
File without changes
includes/helpers/class-options.php CHANGED
File without changes
includes/helpers/class-post-type.php CHANGED
File without changes
includes/helpers/class-taxonomy.php CHANGED
File without changes
includes/helpers/class-wordpress.php CHANGED
@@ -14,6 +14,7 @@ use RankMath\Post;
14
  use RankMath\Term;
15
  use RankMath\User;
16
  use RankMath\Helper;
 
17
  use MyThemeShop\Helpers\WordPress as WP_Helper;
18
 
19
  defined( 'ABSPATH' ) || exit;
@@ -97,11 +98,11 @@ trait WordPress {
97
  * @param array $args Pass arguments to query string.
98
  * @return string
99
  */
100
- public static function get_admin_url( $page = '', $args = array() ) {
101
  $page = $page ? 'rank-math-' . $page : 'rank-math';
102
- $args = wp_parse_args( $args, array( 'page' => $page ) );
103
 
104
- return add_query_arg( $args, network_admin_url( 'admin.php' ) );
105
  }
106
 
107
  /**
@@ -111,10 +112,10 @@ trait WordPress {
111
  * @return string
112
  */
113
  public static function get_connect_url() {
114
- $args = array(
115
  'page' => 'rank-math',
116
  'view' => 'help',
117
- );
118
  if ( ! is_multisite() ) {
119
  return add_query_arg( $args, admin_url( 'admin.php' ) );
120
  }
@@ -136,7 +137,7 @@ trait WordPress {
136
  */
137
  public static function get_dashboard_url() {
138
  $site_type = get_transient( '_rank_math_site_type' );
139
- $business_type = array( 'news', 'business', 'webshop', 'otherbusiness' );
140
 
141
  if ( in_array( $site_type, $business_type ) ) {
142
  return self::get_admin_url( 'options-titles#setting-panel-local' );
@@ -152,7 +153,7 @@ trait WordPress {
152
  * @return array
153
  */
154
  public static function get_capabilities() {
155
- $caps = array(
156
  'rank_math_titles' => esc_html__( 'Titles & Meta Settings', 'rank-math' ),
157
  'rank_math_general' => esc_html__( 'General Settings', 'rank-math' ),
158
  'rank_math_sitemap' => esc_html__( 'Sitemap Settings', 'rank-math' ),
@@ -168,7 +169,7 @@ trait WordPress {
168
  'rank_math_onpage_snippet' => esc_html__( 'On-Page Rich Snippet Settings', 'rank-math' ),
169
  'rank_math_onpage_social' => esc_html__( 'On-Page Social Settings', 'rank-math' ),
170
  'rank_math_admin_bar' => esc_html__( 'Top Admin Bar', 'rank-math' ),
171
- );
172
 
173
  if ( ! function_exists( 'rank_math_load_premium' ) ) {
174
  unset( $caps['rank_math_link_builder'] );
@@ -185,7 +186,7 @@ trait WordPress {
185
  * @return array
186
  */
187
  public static function get_roles_capabilities() {
188
- $data = array();
189
  $caps = array_keys( self::get_capabilities() );
190
 
191
  foreach ( WP_Helper::get_roles() as $slug => $role ) {
@@ -221,7 +222,7 @@ trait WordPress {
221
  continue;
222
  }
223
 
224
- $roles[ $slug ] = isset( $roles[ $slug ] ) && is_array( $roles[ $slug ] ) ? array_flip( $roles[ $slug ] ) : array();
225
  foreach ( $caps as $cap ) {
226
  if ( isset( $roles[ $slug ], $roles[ $slug ][ $cap ] ) ) {
227
  $role->add_cap( $cap );
@@ -263,7 +264,7 @@ trait WordPress {
263
  preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches );
264
  $matches = array_filter( $matches );
265
  if ( ! empty( $matches ) ) {
266
- return array( $matches[1][0], 200, 200 );
267
  }
268
 
269
  $fb_image = Helper::get_post_meta( 'facebook_image_id', $post_id );
@@ -301,4 +302,22 @@ trait WordPress {
301
 
302
  return true;
303
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  }
14
  use RankMath\Term;
15
  use RankMath\User;
16
  use RankMath\Helper;
17
+ use MyThemeShop\Helpers\Str;
18
  use MyThemeShop\Helpers\WordPress as WP_Helper;
19
 
20
  defined( 'ABSPATH' ) || exit;
98
  * @param array $args Pass arguments to query string.
99
  * @return string
100
  */
101
+ public static function get_admin_url( $page = '', $args = [] ) {
102
  $page = $page ? 'rank-math-' . $page : 'rank-math';
103
+ $args = wp_parse_args( $args, [ 'page' => $page ] );
104
 
105
+ return add_query_arg( $args, admin_url( 'admin.php' ) );
106
  }
107
 
108
  /**
112
  * @return string
113
  */
114
  public static function get_connect_url() {
115
+ $args = [
116
  'page' => 'rank-math',
117
  'view' => 'help',
118
+ ];
119
  if ( ! is_multisite() ) {
120
  return add_query_arg( $args, admin_url( 'admin.php' ) );
121
  }
137
  */
138
  public static function get_dashboard_url() {
139
  $site_type = get_transient( '_rank_math_site_type' );
140
+ $business_type = [ 'news', 'business', 'webshop', 'otherbusiness' ];
141
 
142
  if ( in_array( $site_type, $business_type ) ) {
143
  return self::get_admin_url( 'options-titles#setting-panel-local' );
153
  * @return array
154
  */
155
  public static function get_capabilities() {
156
+ $caps = [
157
  'rank_math_titles' => esc_html__( 'Titles & Meta Settings', 'rank-math' ),
158
  'rank_math_general' => esc_html__( 'General Settings', 'rank-math' ),
159
  'rank_math_sitemap' => esc_html__( 'Sitemap Settings', 'rank-math' ),
169
  'rank_math_onpage_snippet' => esc_html__( 'On-Page Rich Snippet Settings', 'rank-math' ),
170
  'rank_math_onpage_social' => esc_html__( 'On-Page Social Settings', 'rank-math' ),
171
  'rank_math_admin_bar' => esc_html__( 'Top Admin Bar', 'rank-math' ),
172
+ ];
173
 
174
  if ( ! function_exists( 'rank_math_load_premium' ) ) {
175
  unset( $caps['rank_math_link_builder'] );
186
  * @return array
187
  */
188
  public static function get_roles_capabilities() {
189
+ $data = [];
190
  $caps = array_keys( self::get_capabilities() );
191
 
192
  foreach ( WP_Helper::get_roles() as $slug => $role ) {
222
  continue;
223
  }
224
 
225
+ $roles[ $slug ] = isset( $roles[ $slug ] ) && is_array( $roles[ $slug ] ) ? array_flip( $roles[ $slug ] ) : [];
226
  foreach ( $caps as $cap ) {
227
  if ( isset( $roles[ $slug ], $roles[ $slug ][ $cap ] ) ) {
228
  $role->add_cap( $cap );
264
  preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches );
265
  $matches = array_filter( $matches );
266
  if ( ! empty( $matches ) ) {
267
+ return [ $matches[1][0], 200, 200 ];
268
  }
269
 
270
  $fb_image = Helper::get_post_meta( 'facebook_image_id', $post_id );
302
 
303
  return true;
304
  }
305
+
306
+ /**
307
+ * Helper function to validate & format ISO 8601 duration.
308
+ *
309
+ * @param string $iso8601 Duration which need to be converted to seconds.
310
+ * @return string
311
+ *
312
+ * @since 1.0.21
313
+ */
314
+ public static function get_formatted_duration( $iso8601 ) {
315
+ $end = substr( $iso8601, -1 );
316
+ if ( ! in_array( $end, [ 'D', 'H', 'M', 'S' ] ) ) {
317
+ return '';
318
+ }
319
+
320
+ // The format starts with the letter P, for "period".
321
+ return ( ! Str::starts_with( 'P', $iso8601 ) ) ? 'PT' . $iso8601 : $iso8601;
322
+ }
323
  }
includes/helpers/index.php CHANGED
File without changes
includes/index.php CHANGED
File without changes
includes/interface-runner.php CHANGED
File without changes
includes/metaboxes/advanced.php CHANGED
File without changes
includes/metaboxes/general.php CHANGED
@@ -55,9 +55,14 @@ $cmb->add_field( array(
55
  /* translators: Link to kb article */
56
  'desc' => sprintf( wp_kses_post( __( 'Insert keywords you want to rank for. Try to <a href="%s" target="_blank">attain 100/100 points</a> for better chances of ranking.', 'rank-math' ) ), \RankMath\KB::get( 'score-100' ) ),
57
  'classes' => 'nob',
58
- 'after_field' => Helper::is_mythemeshop_connected() ? '' : '<div class="notice notice-warning inline"><p>Get keyword suggestions from Google & optimize upto 5 Focus Keywords by <a href="' . Helper::get_connect_url() . '" target="_blank">linking your Rank Math account</a>.</p></div>',
 
 
 
 
 
59
  'attributes' => array(
60
- 'placeholder' => esc_html__( 'Example: MyThemeShop Themes', 'rank-math' ),
61
  ),
62
  ) );
63
 
55
  /* translators: Link to kb article */
56
  'desc' => sprintf( wp_kses_post( __( 'Insert keywords you want to rank for. Try to <a href="%s" target="_blank">attain 100/100 points</a> for better chances of ranking.', 'rank-math' ) ), \RankMath\KB::get( 'score-100' ) ),
57
  'classes' => 'nob',
58
+ 'after_field' => Helper::is_mythemeshop_connected() ? '' :
59
+ '<div class="notice notice-warning inline"><p>' . sprintf(
60
+ /* translators: link to connect page. */
61
+ __( 'Get keyword suggestions from Google & optimize upto 5 Focus Keywords by <a href="%s" target="_blank">linking your Rank Math account</a>.', 'rank-math' ),
62
+ Helper::get_connect_url()
63
+ ) . '</p></div>',
64
  'attributes' => array(
65
+ 'placeholder' => esc_html__( 'Example: Rank Math SEO', 'rank-math' ),
66
  ),
67
  ) );
68
 
includes/metaboxes/index.php CHANGED
File without changes
includes/metaboxes/link-suggestions.php CHANGED
File without changes
includes/metaboxes/serp-checklist.php CHANGED
File without changes
includes/metaboxes/serp-preview.php CHANGED
File without changes
includes/metaboxes/social-preview.php CHANGED
@@ -26,7 +26,7 @@ if ( Admin_Helper::is_post_edit() ) {
26
  }
27
  $fb_thumbnail = $fb_thumbnail ? absint( $fb_thumbnail ) : $thumbnail;
28
  if ( ! is_string( $fb_thumbnail ) ) {
29
- $image_src = wp_get_attachment_image_src( $fb_thumbnail, 'rank-math-facebook-thumbnail' );
30
  $fb_thumbnail = $image_src[0];
31
  }
32
 
@@ -43,7 +43,7 @@ if ( Admin_Helper::is_post_edit() ) {
43
  }
44
  $tw_thumbnail = $tw_thumbnail ? absint( $tw_thumbnail ) : $thumbnail;
45
  if ( ! is_string( $tw_thumbnail ) ) {
46
- $image_src = wp_get_attachment_image_src( $tw_thumbnail, 'rank-math-facebook-thumbnail' );
47
  $tw_thumbnail = $image_src[0];
48
  }
49
 
@@ -87,7 +87,7 @@ $twitter_username = $twitter_username ? $twitter_username : esc_html( 'username'
87
  <div class="rank-math-social-preview-item-wrapper">
88
 
89
  <div class="rank-math-social-preview-image">
90
- <?php the_post_thumbnail( 'rank-math-facebook-thumbnail', 'id=rank_math_post_thumbnail' ); ?>
91
  <img class="facebook-thumbnail" src="<?php echo $fb_thumbnail; ?>" width="526" height="275" />
92
  <img class="twitter-thumbnail" src="<?php echo $tw_thumbnail; ?>" width="526" height="275" />
93
  <img src="" class="rank-math-social-preview-image-overlay">
@@ -101,7 +101,14 @@ $twitter_username = $twitter_username ? $twitter_username : esc_html( 'username'
101
  </div>
102
 
103
  </div>
104
- <div class="error-msg">Set your default image for Facebook & Twitter by adding <a href="<?php echo Helper::get_admin_url( 'options-titles#setting-panel-global' ); ?>" target="_blank">OpenGraph Thumbnail</a></div>
 
 
 
 
 
 
 
105
  </div>
106
 
107
  </div>
26
  }
27
  $fb_thumbnail = $fb_thumbnail ? absint( $fb_thumbnail ) : $thumbnail;
28
  if ( ! is_string( $fb_thumbnail ) ) {
29
+ $image_src = wp_get_attachment_image_src( $fb_thumbnail, 'full' );
30
  $fb_thumbnail = $image_src[0];
31
  }
32
 
43
  }
44
  $tw_thumbnail = $tw_thumbnail ? absint( $tw_thumbnail ) : $thumbnail;
45
  if ( ! is_string( $tw_thumbnail ) ) {
46
+ $image_src = wp_get_attachment_image_src( $tw_thumbnail, 'full' );
47
  $tw_thumbnail = $image_src[0];
48
  }
49
 
87
  <div class="rank-math-social-preview-item-wrapper">
88
 
89
  <div class="rank-math-social-preview-image">
90
+ <?php the_post_thumbnail( 'full', 'id=rank_math_post_thumbnail' ); ?>
91
  <img class="facebook-thumbnail" src="<?php echo $fb_thumbnail; ?>" width="526" height="275" />
92
  <img class="twitter-thumbnail" src="<?php echo $tw_thumbnail; ?>" width="526" height="275" />
93
  <img src="" class="rank-math-social-preview-image-overlay">
101
  </div>
102
 
103
  </div>
104
+ <div class="error-msg">
105
+ <?php
106
+ printf(
107
+ __( 'Set your default image for Facebook & Twitter by adding <a href="%s" target="_blank">OpenGraph Thumbnail</a>', 'rank-math' ),
108
+ Helper::get_admin_url( 'options-titles#setting-panel-global' )
109
+ );
110
+ ?>
111
+ </div>
112
  </div>
113
 
114
  </div>
includes/metaboxes/social.php CHANGED
File without changes
includes/modules/404-monitor/assets/404-monitor.js CHANGED
File without changes
includes/modules/404-monitor/class-admin.php CHANGED
File without changes
includes/modules/404-monitor/class-db.php CHANGED
File without changes
includes/modules/404-monitor/class-monitor.php CHANGED
File without changes
includes/modules/404-monitor/class-table.php CHANGED
File without changes
includes/modules/404-monitor/index.php CHANGED
File without changes
includes/modules/404-monitor/views/help-tab-actions.php CHANGED
File without changes
includes/modules/404-monitor/views/help-tab-bulk.php CHANGED
File without changes
includes/modules/404-monitor/views/help-tab-overview.php CHANGED
File without changes
includes/modules/404-monitor/views/help-tab-screen-content.php CHANGED
File without changes
includes/modules/404-monitor/views/help.php CHANGED
@@ -6,28 +6,29 @@
6
  * @subpackage RankMath\Monitor
7
  */
8
 
 
9
  ?>
10
- <h3>404 Monitor</h3>
11
- <p>404 errors happen when someone requests a page or file that doesn't exist - actually, it's more accurate to say the web server can't find the file.</p>
12
 
13
- <h4>404s happen when:</h4>
14
 
15
  <ol>
16
- <li>Someone types the wrong address</li>
17
- <li>Someone links to the wrong address</li>
18
- <li>The file or page moves to a different address</li>
19
- <li>The page or file is deleted</li>
20
- <li>The page or file never existed</li>
21
  </ol>
22
 
23
- <p>They're actually very common on the web. And they're never a good thing.</p>
24
 
25
- <p>If you visit a site, you probably want to read or view content on that site. You won't stay on the site if the content is missing. Serving 404 errors to your visitors is a good way to lose them.</p>
26
 
27
- <p>It doesn't matter if it's your fault, their fault, or someone else's. Maybe they clicked on a broken link caused by a typing mistake on another website. Maybe they cut-and-pasted a URL wrong. Or possibly they made a spelling mistake when they typed a URL manually.</p>
28
 
29
- <p>Maybe you changed the URL of an article to make it more appealing to the search engines.</p>
30
 
31
- <p>Whatever the cause, the result is a disappointed reader. So fixing 404 errors is a usability issue. Patching them up will result in more useful traffic to your site, and for many sites, that means more revenue.</p>
32
 
33
- <p><a href="<?php echo \RankMath\KB::get( '404-monitor' ); ?>" target="_blank">Click here to read full 404 Monitor tutorial</a></p>
6
  * @subpackage RankMath\Monitor
7
  */
8
 
9
+ use RankMath\KB;
10
  ?>
11
+ <h3><?php esc_html_e( '404 Monitor', 'rank-math' ); ?></h3>
12
+ <p><?php esc_html_e( '404 errors happen when someone requests a page or file that doesn\'t exist - actually, it\'s more accurate to say the web server can\'t find the file.', 'rank-math' ); ?></p>
13
 
14
+ <h4><?php esc_html_e( '404s happen when:', 'rank-math' ); ?></h4>
15
 
16
  <ol>
17
+ <li><?php esc_html_e( 'Someone types the wrong address', 'rank-math' ); ?></li>
18
+ <li><?php esc_html_e( 'Someone links to the wrong address', 'rank-math' ); ?></li>
19
+ <li><?php esc_html_e( 'The file or page moves to a different address', 'rank-math' ); ?></li>
20
+ <li><?php esc_html_e( 'The page or file is deleted', 'rank-math' ); ?></li>
21
+ <li><?php esc_html_e( 'The page or file never existed', 'rank-math' ); ?></li>
22
  </ol>
23
 
24
+ <p><?php esc_html_e( 'They\'re actually very common on the web. And they\'re never a good thing.', 'rank-math' ); ?></p>
25
 
26
+ <p><?php esc_html_e( 'If you visit a site, you probably want to read or view content on that site. You won\'t stay on the site if the content is missing. Serving 404 errors to your visitors is a good way to lose them.', 'rank-math' ); ?></p>
27
 
28
+ <p><?php esc_html_e( 'It doesn\'t matter if it\'s your fault, their fault, or someone else\'s. Maybe they clicked on a broken link caused by a typing mistake on another website. Maybe they cut-and-pasted a URL wrong. Or possibly they made a spelling mistake when they typed a URL manually.', 'rank-math' ); ?></p>
29
 
30
+ <p><?php esc_html_e( 'Maybe you changed the URL of an article to make it more appealing to the search engines.', 'rank-math' ); ?></p>
31
 
32
+ <p><?php esc_html_e( 'Whatever the cause, the result is a disappointed reader. So fixing 404 errors is a usability issue. Patching them up will result in more useful traffic to your site, and for many sites, that means more revenue.', 'rank-math' ); ?></p>
33
 
34
+ <p><a href="<?php KB::the( '404-monitor' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full 404 Monitor tutorial', 'rank-math' ); ?></a></p>
includes/modules/404-monitor/views/index.php CHANGED
File without changes
includes/modules/404-monitor/views/main.php CHANGED
File without changes
includes/modules/404-monitor/views/options.php CHANGED
File without changes
includes/modules/index.php CHANGED
File without changes
includes/modules/links/class-contentprocessor.php CHANGED
File without changes
includes/modules/links/class-link.php CHANGED
File without changes
includes/modules/links/class-links.php CHANGED
File without changes
includes/modules/links/class-storage.php CHANGED
File without changes
includes/modules/local-seo/class-local-seo.php CHANGED
File without changes
includes/modules/local-seo/index.php CHANGED
File without changes
includes/modules/local-seo/views/index.php CHANGED
File without changes
includes/modules/local-seo/views/titles-options.php CHANGED
File without changes
includes/modules/redirections/assets/loader.svg CHANGED
File without changes
includes/modules/redirections/assets/redirections.css CHANGED
File without changes
includes/modules/redirections/assets/redirections.js CHANGED
@@ -110,7 +110,6 @@
110
 
111
  $( '[name=header_code]' ).on( 'change', function() {
112
  var value = $( this ).val()
113
- console.log( value )
114
  if ( 410 == value || 451 == value ) {
115
  $( '#url_to' ).addClass( 'exclude' )
116
  } else {
@@ -143,8 +142,8 @@
143
  input.closest( '.cmb-field-list' ).find( 'select' ).val( comparisonValue )
144
  if ( index < items.length - 1 ) {
145
 
146
- // Process 100 items max.
147
- if ( 99 <= index ) {
148
  return false
149
  }
150
 
110
 
111
  $( '[name=header_code]' ).on( 'change', function() {
112
  var value = $( this ).val()
 
113
  if ( 410 == value || 451 == value ) {
114
  $( '#url_to' ).addClass( 'exclude' )
115
  } else {
142
  input.closest( '.cmb-field-list' ).find( 'select' ).val( comparisonValue )
143
  if ( index < items.length - 1 ) {
144
 
145
+ // Number of items to process.
146
+ if ( ( rankMath.redirectionPastedContent - 1 ) <= index ) {
147
  return false
148
  }
149
 
includes/modules/redirections/class-admin.php CHANGED
@@ -137,6 +137,13 @@ class Admin extends Module {
137
  */
138
  public function add_settings( $tabs ) {
139
 
 
 
 
 
 
 
 
140
  Arr::insert( $tabs, [
141
  'redirections' => [
142
  'icon' => 'dashicons dashicons-controls-forward',
137
  */
138
  public function add_settings( $tabs ) {
139
 
140
+ /**
141
+ * Allow developers to change number of redirections to process at once.
142
+ *
143
+ * @param int $number
144
+ */
145
+ Helper::add_json( 'redirectionPastedContent', $this->do_filter( 'redirections/pastedContent', 100 ) );
146
+
147
  Arr::insert( $tabs, [
148
  'redirections' => [
149
  'icon' => 'dashicons dashicons-controls-forward',
includes/modules/redirections/class-cache.php CHANGED
File without changes
includes/modules/redirections/class-db.php CHANGED
File without changes
includes/modules/redirections/class-export.php CHANGED
File without changes
includes/modules/redirections/class-form.php CHANGED
File without changes
includes/modules/redirections/class-metabox.php CHANGED
File without changes
includes/modules/redirections/class-redirection.php CHANGED
@@ -159,7 +159,7 @@ class Redirection {
159
  *
160
  * @param bool $nocache Can save cache or not.
161
  */
162
- public function set_cache( $nocache ) {
163
  $this->nocache = $nocache;
164
  }
165
 
@@ -320,7 +320,7 @@ class Redirection {
320
  return false;
321
  }
322
 
323
- return urldecode( untrailingslashit( $url ) );
324
  }
325
 
326
  /**
@@ -415,4 +415,20 @@ class Redirection {
415
 
416
  return $this->domain;
417
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
418
  }
159
  *
160
  * @param bool $nocache Can save cache or not.
161
  */
162
+ public function set_nocache( $nocache ) {
163
  $this->nocache = $nocache;
164
  }
165
 
320
  return false;
321
  }
322
 
323
+ return urldecode( untrailingslashit( Redirection::strip_subdirectory( $url ) ) );
324
  }
325
 
326
  /**
415
 
416
  return $this->domain;
417
  }
418
+
419
+ /**
420
+ * Strip home directory when WP is installed in subdirectory
421
+ *
422
+ * @param string $url Url to strip from.
423
+ *
424
+ * @return string
425
+ */
426
+ public static function strip_subdirectory( $url ) {
427
+ $home_dir = ltrim( site_url( '', 'relative' ), '/' );
428
+ if ( $home_dir ) {
429
+ $url = str_replace( trailingslashit( $home_dir ), '', $url );
430
+ }
431
+
432
+ return $url;
433
+ }
434
  }
includes/modules/redirections/class-redirections.php CHANGED
File without changes
includes/modules/redirections/class-redirector.php CHANGED
@@ -75,15 +75,7 @@ class Redirector {
75
  $this->uri = str_replace( site_url( '/' ), '', $_SERVER['REQUEST_URI'] );
76
  $this->uri = trim( $this->uri, '/' );
77
  $this->uri = urldecode( $this->uri );
78
-
79
- // Strip home directory when WP is installed in subdirectory.
80
- $home_dir = ltrim( site_url( '', 'relative' ), '/' );
81
- if ( $home_dir ) {
82
- $home_dir = trailingslashit( $home_dir );
83
- $this->uri = str_replace( $home_dir, '', $this->uri );
84
- }
85
-
86
- $this->uri = trim( $this->uri, '/' );
87
  }
88
 
89
  /**
75
  $this->uri = str_replace( site_url( '/' ), '', $_SERVER['REQUEST_URI'] );
76
  $this->uri = trim( $this->uri, '/' );
77
  $this->uri = urldecode( $this->uri );
78
+ $this->uri = trim( Redirection::strip_subdirectory( $this->uri ), '/' );
 
 
 
 
 
 
 
 
79
  }
80
 
81
  /**
includes/modules/redirections/class-table.php CHANGED
File without changes
includes/modules/redirections/class-watcher.php CHANGED
@@ -133,7 +133,7 @@ class Watcher {
133
  ]);
134
  }
135
 
136
- $redirection->set_cache( true );
137
  $redirection->add_source( $from_url, 'exact' );
138
  $redirection->save();
139
 
@@ -141,6 +141,7 @@ class Watcher {
141
  Cache::purge_by_object_id( $object->ID, 'post' );
142
  if ( $from_url ) {
143
  $from_url = parse_url( $from_url, PHP_URL_PATH );
 
144
  Cache::add([
145
  'from_url' => $from_url,
146
  'redirection_id' => $redirection->get_id(),
133
  ]);
134
  }
135
 
136
+ $redirection->set_nocache( true );
137
  $redirection->add_source( $from_url, 'exact' );
138
  $redirection->save();
139
 
141
  Cache::purge_by_object_id( $object->ID, 'post' );
142
  if ( $from_url ) {
143
  $from_url = parse_url( $from_url, PHP_URL_PATH );
144
+ $from_url = Redirection::strip_subdirectory( $from_url );
145
  Cache::add([
146
  'from_url' => $from_url,
147
  'redirection_id' => $redirection->get_id(),
includes/modules/redirections/views/debugging.php CHANGED
File without changes
includes/modules/redirections/views/help-tab-actions.php CHANGED
File without changes
includes/modules/redirections/views/help-tab-bulk.php CHANGED
File without changes
includes/modules/redirections/views/help-tab-overview.php CHANGED
File without changes
includes/modules/redirections/views/help-tab-screen-content.php CHANGED
File without changes
includes/modules/redirections/views/help.php CHANGED
@@ -6,14 +6,16 @@
6
  * @subpackage RankMath\Redirections
7
  */
8
 
 
9
  ?>
10
- <h3>Redirections</h3>
11
- <p>An HTTP redirection is a magical thing. When you visit a URL with a redirection, your browser automatically jumps to a new address.</p>
12
 
13
- <p>You’ve seen this before with URL shortener services like bit.ly instead of typing a long address, you type a short one. Your browser is automatically redirected to a different site, and it happens faster than you can blink.</p>
14
 
15
- <p>HTTP redirections are powerful tools in SEO, and they have lots of other uses, too. You can read about why that’s a good idea in this article.</p>
16
 
17
- <p>Rank Math makes it easy to set up HTTP redirects in this article, we show you how.</p>
18
 
19
- <p><a href="<?php echo \RankMath\KB::get( 'redirections' ); ?>" target="_blank">Click here to read full Redirection tutorial</a></p>
 
 
6
  * @subpackage RankMath\Redirections
7
  */
8
 
9
+ use RankMath\KB;
10
  ?>
11
+ <h3><?php esc_html_e( 'Redirections', 'rank-math' ); ?></h3>
 
12
 
13
+ <p><?php esc_html_e( 'An HTTP redirection is a magical thing. When you visit a URL with a redirection, your browser automatically jumps to a new address.', 'rank-math' ); ?></p>
14
 
15
+ <p><?php esc_html_e( 'You’ve seen this before with URL shortener services like bit.ly – instead of typing a long address, you type a short one. Your browser is automatically redirected to a different site, and it happens faster than you can blink.', 'rank-math' ); ?></p>
16
 
17
+ <p><?php esc_html_e( 'HTTP redirections are powerful tools in SEO, and they have lots of other uses, too. You can read about why that’s a good idea in this article.', 'rank-math' ); ?></p>
18
 
19
+ <p><?php esc_html_e( 'Rank Math makes it easy to set up HTTP redirects – in this article, we show you how.', 'rank-math' ); ?></p>
20
+
21
+ <p><a href="<?php KB::the( 'redirections' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full Redirection tutorial', 'rank-math' ); ?></a></p>
includes/modules/redirections/views/main.php CHANGED
@@ -6,6 +6,7 @@
6
  * @subpackage RankMath\Redirections
7
  */
8
 
 
9
  use RankMath\Helper;
10
 
11
  $is_new = isset( $_GET['new'] );
@@ -19,7 +20,7 @@ $is_editing = ! empty( $_GET['url'] ) || ! empty( $_REQUEST['log'] ) || ! empt
19
  <a class="rank-math-add-new-redirection<?php echo $is_editing ? '-refresh' : ''; ?> page-title-action" href="<?php echo Helper::get_admin_url( 'redirections', 'new=1' ); ?>"><?php esc_html_e( 'Add New', 'rank-math' ); ?></a>
20
  <a class="page-title-action" href="<?php echo Helper::get_admin_url( 'redirections', 'export=apache' ); ?>"><?php esc_html_e( 'Export to .htaccess', 'rank-math' ); ?></a>
21
  <a class="page-title-action" href="<?php echo Helper::get_admin_url( 'redirections', 'export=nginx' ); ?>"><?php esc_html_e( 'Export to Nginx config file', 'rank-math' ); ?></a>
22
- <a class="page-title-action" href="<?php echo \RankMath\KB::get( 'redirections' ); ?>" target="_blank"><?php esc_html_e( 'Learn More', 'rank-math' ); ?></a>
23
  <a class="page-title-action" href="<?php echo Helper::get_admin_url( 'options-general#setting-panel-redirections' ); ?>"><?php esc_html_e( 'Settings', 'rank-math' ); ?></a>
24
  </h1>
25
 
6
  * @subpackage RankMath\Redirections
7
  */
8
 
9
+ use RankMath\KB;
10
  use RankMath\Helper;
11
 
12
  $is_new = isset( $_GET['new'] );
20
  <a class="rank-math-add-new-redirection<?php echo $is_editing ? '-refresh' : ''; ?> page-title-action" href="<?php echo Helper::get_admin_url( 'redirections', 'new=1' ); ?>"><?php esc_html_e( 'Add New', 'rank-math' ); ?></a>
21
  <a class="page-title-action" href="<?php echo Helper::get_admin_url( 'redirections', 'export=apache' ); ?>"><?php esc_html_e( 'Export to .htaccess', 'rank-math' ); ?></a>
22
  <a class="page-title-action" href="<?php echo Helper::get_admin_url( 'redirections', 'export=nginx' ); ?>"><?php esc_html_e( 'Export to Nginx config file', 'rank-math' ); ?></a>
23
+ <a class="page-title-action" href="<?php KB::the( 'redirections' ); ?>" target="_blank"><?php esc_html_e( 'Learn More', 'rank-math' ); ?></a>
24
  <a class="page-title-action" href="<?php echo Helper::get_admin_url( 'options-general#setting-panel-redirections' ); ?>"><?php esc_html_e( 'Settings', 'rank-math' ); ?></a>
25
  </h1>
26
 
includes/modules/redirections/views/options.php CHANGED
File without changes
includes/modules/rich-snippet/class-admin.php CHANGED
File without changes
includes/modules/rich-snippet/class-jsonld.php CHANGED
File without changes
includes/modules/rich-snippet/class-richsnippet.php CHANGED
File without changes
includes/modules/rich-snippet/index.php CHANGED
File without changes
includes/modules/rich-snippet/interface-snippet.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-article.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-author.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-blog.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-book.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-breadcrumbs.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-collection-page.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-course.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-event.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-jobposting.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-local.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-music.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-person.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-product-edd.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-product-woocommerce.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-product.php CHANGED
@@ -70,6 +70,7 @@ class Product implements Snippet {
70
  remove_action( 'wp_footer', [ WC()->structured_data, 'output_structured_data' ], 10 );
71
  remove_action( 'woocommerce_email_order_details', [ WC()->structured_data, 'output_email_structured_data' ], 30 );
72
  $product = new Product_WooCommerce;
 
73
  $product->set_product( $entity, $jsonld );
74
  }
75
 
70
  remove_action( 'wp_footer', [ WC()->structured_data, 'output_structured_data' ], 10 );
71
  remove_action( 'woocommerce_email_order_details', [ WC()->structured_data, 'output_email_structured_data' ], 30 );
72
  $product = new Product_WooCommerce;
73
+ unset( $entity['offers'] );
74
  $product->set_product( $entity, $jsonld );
75
  }
76
 
includes/modules/rich-snippet/snippets/class-products-page.php CHANGED
@@ -30,6 +30,27 @@ class Products_Page implements Snippet {
30
  * @return array
31
  */
32
  public function process( $data, $jsonld ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  $data['ProductsPage'] = [
34
  '@context' => 'https://schema.org/',
35
  '@graph' => [],
30
  * @return array
31
  */
32
  public function process( $data, $jsonld ) {
33
+ $queried_object = get_queried_object();
34
+
35
+ /**
36
+ * Allow developer to remove snippet data.
37
+ *
38
+ * @param bool $unsigned Default: false
39
+ * @param string $unsigned Taxonomy Name
40
+ */
41
+ if ( ! is_shop() && ( true === Helper::get_settings( 'titles.remove_' . $queried_object->taxonomy . '_snippet_data' ) || true === apply_filters( 'rank_math/snippet/remove_taxonomy_data', false, $queried_object->taxonomy ) ) ) {
42
+ return $data;
43
+ }
44
+
45
+ /**
46
+ * Allow developer to remove snippet data from Shop page.
47
+ *
48
+ * @param bool $unsigned Default: false
49
+ */
50
+ if ( is_shop() && ( true === Helper::get_settings( 'general.remove_shop_snippet_data' ) || true === apply_filters( 'rank_math/snippet/remove_shop_data', false ) ) ) {
51
+ return $data;
52
+ }
53
+
54
  $data['ProductsPage'] = [
55
  '@context' => 'https://schema.org/',
56
  '@graph' => [],
includes/modules/rich-snippet/snippets/class-recipe.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-restaurant.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-review.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-search-results.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-service.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-singular.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-software.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-video.php CHANGED
@@ -34,9 +34,12 @@ class Video implements Snippet {
34
  'name' => $jsonld->parts['title'],
35
  'description' => $jsonld->parts['desc'],
36
  'uploadDate' => $jsonld->parts['published'],
37
- 'duration' => 'PT' . Helper::get_post_meta( 'snippet_video_duration' ),
38
  ];
39
 
 
 
 
 
40
  $jsonld->set_data([
41
  'snippet_video_url' => 'contentUrl',
42
  'snippet_video_embed_url' => 'embedUrl',
34
  'name' => $jsonld->parts['title'],
35
  'description' => $jsonld->parts['desc'],
36
  'uploadDate' => $jsonld->parts['published'],
 
37
  ];
38
 
39
+ if ( $duration = Helper::get_post_meta( 'snippet_video_duration' ) ) { // phpcs:ignore
40
+ $entity['duration'] = Helper::get_formatted_duration( $duration );
41
+ }
42
+
43
  $jsonld->set_data([
44
  'snippet_video_url' => 'contentUrl',
45
  'snippet_video_embed_url' => 'embedUrl',
includes/modules/rich-snippet/snippets/class-wc-attributes.php CHANGED
File without changes
includes/modules/rich-snippet/snippets/class-website.php CHANGED
File without changes
includes/modules/rich-snippet/views/article.php CHANGED
File without changes
includes/modules/rich-snippet/views/book.php CHANGED
File without changes
includes/modules/rich-snippet/views/course.php CHANGED
File without changes
includes/modules/rich-snippet/views/event.php CHANGED
File without changes
includes/modules/rich-snippet/views/help.php CHANGED
@@ -6,26 +6,28 @@
6
  * @subpackage RankMath\RichSnippet
7
  */
8
 
 
9
  ?>
10
- <h3>Rich Snippets</h3>
11
- <p>Google has changed over the years. They've made their results pages more interesting and more useful at the same time. New kinds of content were added.</p>
12
 
13
- <p>You often see all kinds of content in a SERP. Images, videos, tweets, and maps. Business listings and little bits of trivia (like personal bios or historical facts) were added.</p>
14
 
15
- <p>These were the first wave of enhancements. They were "added" content, as they were added to the original results (which were pushed down the page). Google has also added enhancements to the way certain listings are displayed.</p>
16
 
17
- <p>Do you remember when you used to see author pictures next to certain listings?</p>
18
 
19
- <p>These were "authorship" snippets - they were displayed whenever Google recognized the author of an article. Google has dropped support for authorship, but there are other enhancements that it does support today.</p>
20
 
21
- <p>For instance, there are "rich snippets" for articles, videos, businesses, events, products, and recipes.</p>
22
 
23
- <p>These snippets look different - which makes them stand out. They also tend to rank higher - above the fold (in the top 4 results).</p>
24
 
25
- <p>Both of these benefits make Rich Snippets extremely attractive. But Google can't display rich snippets unless it understands your content type. And it needs your help.</p>
26
 
27
- <p>Google needs you to include special meta-data in your markup to describe what your content is. You need to use a special format called Schema.org, and it has to be perfectly valid.</p>
28
 
29
- <p>Rank Math can format the Schema.org markup for you - that's what the Rich Snippet tab does for you.</p>
30
 
31
- <p><a href="<?php echo \RankMath\KB::get( 'rich-snippets' ); ?>" target="_blank">Click here to read full Rich Snippet tutorial</a></p>
 
 
6
  * @subpackage RankMath\RichSnippet
7
  */
8
 
9
+ use RankMath\KB;
10
  ?>
11
+ <h3><?php esc_html_e( 'Rich Snippets', 'rank-math' ); ?></h3>
 
12
 
13
+ <p><?php esc_html_e( 'Google has changed over the years. They\'ve made their results pages more interesting and more useful at the same time. New kinds of content were added.', 'rank-math' ); ?></p>
14
 
15
+ <p><?php esc_html_e( 'You often see all kinds of content in a SERP. Images, videos, tweets, and maps. Business listings and little bits of trivia (like personal bios or historical facts) were added.', 'rank-math' ); ?></p>
16
 
17
+ <p><?php esc_html_e( 'These were the first wave of enhancements. They were "added" content, as they were added to the original results (which were pushed down the page). Google has also added enhancements to the way certain listings are displayed.', 'rank-math' ); ?></p>
18
 
19
+ <p><?php esc_html_e( 'Do you remember when you used to see author pictures next to certain listings?', 'rank-math' ); ?></p>
20
 
21
+ <p><?php esc_html_e( 'These were "authorship" snippets - they were displayed whenever Google recognized the author of an article. Google has dropped support for authorship, but there are other enhancements that it does support today.', 'rank-math' ); ?></p>
22
 
23
+ <p><?php esc_html_e( 'For instance, there are "rich snippets" for articles, videos, businesses, events, products, and recipes.', 'rank-math' ); ?></p>
24
 
25
+ <p><?php esc_html_e( 'These snippets look different - which makes them stand out. They also tend to rank higher - above the fold (in the top 4 results).', 'rank-math' ); ?></p>
26
 
27
+ <p><?php esc_html_e( 'Both of these benefits make Rich Snippets extremely attractive. But Google can\'t display rich snippets unless it understands your content type. And it needs your help.', 'rank-math' ); ?></p>
28
 
29
+ <p><?php esc_html_e( 'Google needs you to include special meta-data in your markup to describe what your content is. You need to use a special format called Schema.org, and it has to be perfectly valid.', 'rank-math' ); ?></p>
30
 
31
+ <p><?php esc_html_e( 'Rank Math can format the Schema.org markup for you - that\'s what the Rich Snippet tab does for you.', 'rank-math' ); ?></p>
32
+
33
+ <p><a href="<?php KB::the( 'rich-snippets' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full Rich Snippet tutorial', 'rank-math' ); ?></a></p>
includes/modules/rich-snippet/views/index.php CHANGED
File without changes
includes/modules/rich-snippet/views/job-posting.php CHANGED
File without changes
includes/modules/rich-snippet/views/local.php CHANGED
File without changes
includes/modules/rich-snippet/views/metabox-options.php CHANGED
File without changes
includes/modules/rich-snippet/views/music.php CHANGED
File without changes
includes/modules/rich-snippet/views/person.php CHANGED
File without changes
includes/modules/rich-snippet/views/product.php CHANGED
File without changes
includes/modules/rich-snippet/views/recipe.php CHANGED
File without changes
includes/modules/rich-snippet/views/restaurant.php CHANGED
File without changes
includes/modules/rich-snippet/views/review.php CHANGED
File without changes
includes/modules/rich-snippet/views/service.php CHANGED
File without changes
includes/modules/rich-snippet/views/software.php CHANGED
File without changes
includes/modules/rich-snippet/views/video.php CHANGED
File without changes
includes/modules/role-manager/assets/role-manager.css CHANGED
File without changes
includes/modules/role-manager/class-capability-manager.php CHANGED
File without changes
includes/modules/role-manager/class-members.php CHANGED
File without changes
includes/modules/role-manager/class-role-manager.php CHANGED
File without changes
includes/modules/role-manager/class-user-role-editor.php CHANGED
File without changes
includes/modules/role-manager/index.php CHANGED
File without changes
includes/modules/role-manager/views/help.php CHANGED
@@ -6,12 +6,14 @@
6
  * @subpackage RankMath\Role_Manager
7
  */
8
 
 
9
  ?>
10
- <h3>Role Manager</h3>
11
- <p>In this knowledge base article, we are going to discuss one of the most amazing features of Rank Math, the Role Manager.</p>
12
 
13
- <p>You may have started your website alone, but as it grows, you will have to hire help or outsource certain tasks to keep your website growing. When you get more people working on your website, it poses a significant problem. You have to give them access to your backend. But as you probably understand, giving someone else full access to your website can lead to accidents, disasters, and frauds.</p>
14
 
15
- <p>To prevent that from happening, we created the Role Manager in Rank Math. It’s an innovative feature that lets you restrict Rank Math’s individual features for each user, depending on what roles you give them on your website. If you didn’t understand that, do not worry. You will understand once we get into the details.</p>
16
 
17
- <p><a href="<?php echo \RankMath\KB::get( 'role-manager' ); ?>" target="_blank">Click here to read full Role Manager tutorial</a></p>
 
 
6
  * @subpackage RankMath\Role_Manager
7
  */
8
 
9
+ use RankMath\KB;
10
  ?>
11
+ <h3><?php esc_html_e( 'Role Manager', 'rank-math' ); ?></h3>
 
12
 
13
+ <p><?php esc_html_e( 'In this knowledge base article, we are going to discuss one of the most amazing features of Rank Math, the Role Manager.', 'rank-math' ); ?></p>
14
 
15
+ <p><?php esc_html_e( 'You may have started your website alone, but as it grows, you will have to hire help or outsource certain tasks to keep your website growing. When you get more people working on your website, it poses a significant problem. You have to give them access to your backend. But as you probably understand, giving someone else full access to your website can lead to accidents, disasters, and frauds.', 'rank-math' ); ?></p>
16
 
17
+ <p><?php esc_html_e( 'To prevent that from happening, we created the Role Manager in Rank Math. It’s an innovative feature that lets you restrict Rank Math’s individual features for each user, depending on what roles you give them on your website. If you didn’t understand that, do not worry. You will understand once we get into the details.', 'rank-math' ); ?></p>
18
+
19
+ <p><a href="<?php KB::the( 'role-manager' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full Role Manager tutorial', 'rank-math' ); ?></a></p>
includes/modules/role-manager/views/index.php CHANGED
File without changes
includes/modules/role-manager/views/main.php CHANGED
File without changes
includes/modules/search-console/assets/search-console.css CHANGED
File without changes
includes/modules/search-console/assets/search-console.js CHANGED
File without changes
includes/modules/search-console/class-analytics-list.php CHANGED
File without changes
includes/modules/search-console/class-analytics.php CHANGED
File without changes
includes/modules/search-console/class-client.php CHANGED
@@ -125,7 +125,7 @@ class Client {
125
 
126
  $response = wp_remote_request( $url, $params );
127
 
128
- return $this->process_response( $response );
129
  }
130
 
131
  /**
@@ -134,7 +134,7 @@ class Client {
134
  * @param array $response Api response array.
135
  * @return array
136
  */
137
- public function process_response( $response ) {
138
  if ( ! is_wp_error( $response ) ) {
139
  $code = wp_remote_retrieve_response_code( $response );
140
  $body = wp_remote_retrieve_body( $response );
@@ -154,6 +154,8 @@ class Client {
154
  $body['error_description'] = esc_html__( 'Bad request. Please check the code.', 'rank-math' );
155
  }
156
 
 
 
157
  return array(
158
  'status' => 'fail',
159
  'code' => $code,
125
 
126
  $response = wp_remote_request( $url, $params );
127
 
128
+ return $this->process_response( $response, $http_verb, $url );
129
  }
130
 
131
  /**
134
  * @param array $response Api response array.
135
  * @return array
136
  */
137
+ public function process_response( $response, $http_verb = '', $url = '' ) {
138
  if ( ! is_wp_error( $response ) ) {
139
  $code = wp_remote_retrieve_response_code( $response );
140
  $body = wp_remote_retrieve_body( $response );
154
  $body['error_description'] = esc_html__( 'Bad request. Please check the code.', 'rank-math' );
155
  }
156
 
157
+ \error_log( 'Rank Math GSC API Error: ' . strtoupper( $http_verb ) . ' ' . $url . ' ' . $code . ' | ' . json_encode( $body, JSON_UNESCAPED_SLASHES ) );
158
+
159
  return array(
160
  'status' => 'fail',
161
  'code' => $code,
includes/modules/search-console/class-data-fetcher.php CHANGED
File without changes
includes/modules/search-console/class-db.php CHANGED
File without changes
includes/modules/search-console/class-errors-list.php CHANGED
File without changes
includes/modules/search-console/class-errors.php CHANGED
File without changes
includes/modules/search-console/class-overview.php CHANGED
File without changes
includes/modules/search-console/class-search-console-common.php CHANGED
File without changes
includes/modules/search-console/class-search-console.php CHANGED
@@ -208,6 +208,14 @@ class Search_Console extends Module {
208
  'tracker' => esc_html__( 'Keyword Tracker', 'rank-math' ),
209
  );
210
 
 
 
 
 
 
 
 
 
211
  $filters = $this->get_filters();
212
  ?>
213
  <div class="rank-math-date-selector-container">
@@ -285,6 +293,10 @@ class Search_Console extends Module {
285
  $this->error( 'No profiles found.' );
286
  }
287
 
 
 
 
 
288
  $this->success( array(
289
  'profiles' => $profiles,
290
  'selected' => $this->select_profile( $profiles ),
208
  'tracker' => esc_html__( 'Keyword Tracker', 'rank-math' ),
209
  );
210
 
211
+ // Sitemaps not available for Domain Property.
212
+ if ( $this->client->is_authorized ) {
213
+ $this->sitemaps = new Sitemaps( $this->client );
214
+ if ( $this->sitemaps->selected_site_is_domain_property() ) {
215
+ unset( $tabs['sitemaps'] );
216
+ }
217
+ }
218
+
219
  $filters = $this->get_filters();
220
  ?>
221
  <div class="rank-math-date-selector-container">
293
  $this->error( 'No profiles found.' );
294
  }
295
 
296
+ foreach ( $profiles as $key => $value ) {
297
+ $profiles[ $key ] = str_replace( 'sc-domain:', __( 'Domain Property: ', 'rank-math' ), $value );
298
+ }
299
+
300
  $this->success( array(
301
  'profiles' => $profiles,
302
  'selected' => $this->select_profile( $profiles ),
includes/modules/search-console/class-sitemaps-list.php CHANGED
@@ -38,7 +38,8 @@ class Sitemaps_List extends List_Table {
38
  public function prepare_items() {
39
 
40
  $this->set_column_headers();
41
- $this->items = Helper::search_console()->sitemaps->get_sitemaps( true );
 
42
 
43
  $this->set_pagination_args( array(
44
  'total_items' => count( $this->items ),
38
  public function prepare_items() {
39
 
40
  $this->set_column_headers();
41
+ $with_index = ! Helper::search_console()->sitemaps->selected_site_is_domain_property();
42
+ $this->items = Helper::search_console()->sitemaps->get_sitemaps( $with_index );
43
 
44
  $this->set_pagination_args( array(
45
  'total_items' => count( $this->items ),
includes/modules/search-console/class-sitemaps.php CHANGED
@@ -11,6 +11,7 @@
11
  namespace RankMath\Search_Console;
12
 
13
  use RankMath\Helper;
 
14
  use RankMath\Traits\Hooker;
15
 
16
  defined( 'ABSPATH' ) || exit;
@@ -84,6 +85,10 @@ class Sitemaps {
84
  */
85
  private function sync_sitemaps() {
86
 
 
 
 
 
87
  if ( ! $this->check_selected_site() ) {
88
  return false;
89
  }
@@ -116,7 +121,7 @@ class Sitemaps {
116
  }
117
 
118
  /**
119
- * Check is selected profile same as site url.
120
  *
121
  * @return boolean
122
  */
@@ -137,4 +142,22 @@ class Sitemaps {
137
 
138
  return true;
139
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  }
11
  namespace RankMath\Search_Console;
12
 
13
  use RankMath\Helper;
14
+ use MyThemeShop\Helpers\Str;
15
  use RankMath\Traits\Hooker;
16
 
17
  defined( 'ABSPATH' ) || exit;
85
  */
86
  private function sync_sitemaps() {
87
 
88
+ if ( $this->selected_site_is_domain_property() ) {
89
+ return false;
90
+ }
91
+
92
  if ( ! $this->check_selected_site() ) {
93
  return false;
94
  }
121
  }
122
 
123
  /**
124
+ * Check if selected profile same as site url.
125
  *
126
  * @return boolean
127
  */
142
 
143
  return true;
144
  }
145
+
146
+ /**
147
+ * Check if selected profile is a Domain Property.
148
+ *
149
+ * @return boolean
150
+ */
151
+ public function selected_site_is_domain_property() {
152
+
153
+ if ( ! Helper::get_module( 'sitemap' ) || empty( $this->client->profile ) ) {
154
+ return false;
155
+ }
156
+
157
+ if ( Str::starts_with( 'sc-domain:', $this->client->profile ) ) {
158
+ return true;
159
+ }
160
+
161
+ return false;
162
+ }
163
  }
includes/modules/search-console/index.php CHANGED
File without changes
includes/modules/search-console/views/help.php CHANGED
@@ -5,10 +5,12 @@
5
  * @package Rank_Math
6
  */
7
 
 
8
  ?>
9
- <h3>Search Console</h3>
10
- <p>Google Search Console is a website management tool by Google. Specifically, it was created so that website owners can see important information about their websites and resolve issues related to search engines. Your Google Search Console account will contain important information such as your website’s index status, crawl or other issues, your search engines rankings and most importantly, the keywords that your website ranks for. This information comes directly from Google and is very accurate compared to any 3rd party tool.</p>
11
 
12
- <p>Once you setup Rank Math to work with Google Search Console, then Rank Math can fetch important information like keyword ranking, craw errors etc from Search Console and display it right inside your WordPress admin. This saves you a lot of time and gives you actionable information to work with when creating new content.</p>
13
 
14
- <p><a href="<?php echo \RankMath\KB::get( 'search-console-kb' ); ?>" target="_blank">Click here to read full Search Console tutorial</a></p>
 
 
5
  * @package Rank_Math
6
  */
7
 
8
+ use RankMath\KB;
9
  ?>
10
+ <h3><?php esc_html_e( 'Search Console', 'rank-math' ); ?></h3>
 
11
 
12
+ <p><?php esc_html_e( 'Google Search Console is a website management tool by Google. Specifically, it was created so that website owners can see important information about their websites and resolve issues related to search engines. Your Google Search Console account will contain important information such as your website’s index status, crawl or other issues, your search engines rankings and most importantly, the keywords that your website ranks for. This information comes directly from Google and is very accurate compared to any 3rd party tool.', 'rank-math' ); ?></p>
13
 
14
+ <p><?php esc_html_e( 'Once you setup Rank Math to work with Google Search Console, then Rank Math can fetch important information like keyword ranking, craw errors etc from Search Console and display it right inside your WordPress admin. This saves you a lot of time and gives you actionable information to work with when creating new content.', 'rank-math' ); ?></p>
15
+
16
+ <p><a href="<?php KB::the( 'search-console-kb' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full Search Console tutorial', 'rank-math' ); ?></a></p>
includes/modules/search-console/views/index.php CHANGED
File without changes
includes/modules/search-console/views/main.php CHANGED
File without changes
includes/modules/search-console/views/options.php CHANGED
@@ -24,18 +24,27 @@ $cmb->add_field( array(
24
  'after_field' => $primary . $secondary,
25
  ) );
26
 
27
- $profile = Helper::get_settings( 'general.console_profile' );
 
 
 
 
 
28
  $cmb->add_field( array(
29
  'id' => 'console_profile',
30
  'type' => 'select',
31
  'name' => esc_html__( 'Search Console Profile', 'rank-math' ),
32
  'desc' => esc_html__( 'After authenticating with Google Search Console, select the site from the dropdown list.', 'rank-math' ) .
 
33
  /* translators: setting url */
34
  '<br><br><span style="color: orange;">' . sprintf( __( 'Is your site not listed? <a href="%1$s" target="_blank">Click here</a> to get your website verified.', 'rank-math' ), Helper::get_admin_url( 'options-general#setting-panel-webmaster' ) ) . '</span>',
35
- 'options' => $profile ? array( $profile => $profile ) : $data['profiles'],
36
  'default' => $profile,
37
  'after_field' => '<button class="button button-primary hidden" ' . ( $data['authorized'] ? '' : 'disabled="disabled"' ) . '>' . esc_html__( 'Refresh Sites', 'rank-math' ) . '</button>',
38
- 'attributes' => $data['authorized'] ? array() : array( 'disabled' => 'disabled' ),
 
 
 
39
  ) );
40
 
41
  if ( $is_empty ) {
24
  'after_field' => $primary . $secondary,
25
  ) );
26
 
27
+ $profile = Helper::get_settings( 'general.console_profile' );
28
+ $profile_label = str_replace( 'sc-domain:', __( 'Domain Property: ', 'rank-math' ), $profile );
29
+ foreach ( $data['profiles'] as $key => $value ) {
30
+ $data['profiles'][ $key ] = str_replace( 'sc-domain:', __( 'Domain Property: ', 'rank-math' ), $value );
31
+ }
32
+
33
  $cmb->add_field( array(
34
  'id' => 'console_profile',
35
  'type' => 'select',
36
  'name' => esc_html__( 'Search Console Profile', 'rank-math' ),
37
  'desc' => esc_html__( 'After authenticating with Google Search Console, select the site from the dropdown list.', 'rank-math' ) .
38
+ ' <span id="gsc-dp-info" class="hidden">' . __( 'Please note that the Sitemaps overview in the Search Console module will not be available when using a Domain Property.', 'rank-math' ) . '</span>' .
39
  /* translators: setting url */
40
  '<br><br><span style="color: orange;">' . sprintf( __( 'Is your site not listed? <a href="%1$s" target="_blank">Click here</a> to get your website verified.', 'rank-math' ), Helper::get_admin_url( 'options-general#setting-panel-webmaster' ) ) . '</span>',
41
+ 'options' => $profile ? array( $profile => $profile_label ) : $data['profiles'],
42
  'default' => $profile,
43
  'after_field' => '<button class="button button-primary hidden" ' . ( $data['authorized'] ? '' : 'disabled="disabled"' ) . '>' . esc_html__( 'Refresh Sites', 'rank-math' ) . '</button>',
44
+ 'attributes' => $data['authorized'] ? array( 'data-s2' => '' ) : array(
45
+ 'disabled' => 'disabled',
46
+ 'data-s2' => '',
47
+ ),
48
  ) );
49
 
50
  if ( $is_empty ) {
includes/modules/search-console/views/search-console-noauth.php CHANGED
File without changes
includes/modules/search-console/views/search-console-overview.php CHANGED
File without changes
includes/modules/search-console/views/search-console-tracker.php CHANGED
File without changes
includes/modules/seo-analysis/assets/circle-progress.min.js CHANGED
File without changes
includes/modules/seo-analysis/assets/seo-analysis.css CHANGED
File without changes
includes/modules/seo-analysis/assets/seo-analysis.js CHANGED
File without changes
includes/modules/seo-analysis/class-admin.php CHANGED
File without changes
includes/modules/seo-analysis/class-seo-analysis.php CHANGED
File without changes
includes/modules/seo-analysis/class-seo-analyzer.php CHANGED
File without changes
includes/modules/seo-analysis/index.php CHANGED
File without changes
includes/modules/seo-analysis/seo-analysis-tests.php CHANGED
@@ -156,7 +156,7 @@ function rank_math_has_default_tagline() {
156
  $default_description = 'Just another WordPress site';
157
 
158
  // We are checking against the WordPress internal translation.
159
- $translated_description = __( 'Just another WordPress site', 'default' ); // phpcs:ignore
160
 
161
  return $translated_description === $description || $default_description === $description;
162
  }
156
  $default_description = 'Just another WordPress site';
157
 
158
  // We are checking against the WordPress internal translation.
159
+ $translated_description = translate( 'Just another WordPress site' ); // phpcs:ignore
160
 
161
  return $translated_description === $description || $default_description === $description;
162
  }
includes/modules/seo-analysis/views/help.php CHANGED
@@ -5,22 +5,24 @@
5
  * @package Rank_Math
6
  */
7
 
 
8
  ?>
9
- <h3>SEO Analysis</h3>
10
- <p>In this section, we're going to introduce the SEO analysis tool. As the name suggests, it analyzes your site's SEO and points out what you're doing right and the issues you need to fix.</p>
11
 
12
- <p>Analyzing your SEO is the first step to making it perfect, so you should run this tool as your first step. It's a fast process, and it puts you on the right path.</p>
13
 
14
- <p>You may have used SEO tools in the past - many of these tools check your page as you type and tell you if you're optimizing it properly. Rank Math does this too - but it does much more.</p>
15
 
16
- <p>Checking a page as you type will detect "on-page" ranking factors - factors that influence the rankings for individual pages. But that only covers a single piece of the SEO puzzle. Although on-page factors are extremely important, there are other details that affect your site's rankings.</p>
17
 
18
- <p>These include technical and performance issues, like caching, URL structure, and pagination.</p>
19
 
20
- <p>Before you dig into every post and page on your site, you should fix any site-wide issues. But you have to identify them first - and that's where the analysis tool comes into play.</p>
21
 
22
- <p>You have better things to do than spend hours poring over settings and working through checklists - that's why Rank Math has a built-in SEO Analysis tool. It scans your site in seconds and gives you a detailed breakdown of any issues it locates.</p>
23
 
24
- <p>The tool also gives you instructions on how to fix each issue it finds - whether it's changing a setting or installing a simple plugin, you'll know what to do and how to do it.</p>
25
 
26
- <p><a href="<?php echo \RankMath\KB::get( 'seo-analysis' ); ?>" target="_blank">Click here to read full SEO Analysis tutorial</a></p>
 
 
5
  * @package Rank_Math
6
  */
7
 
8
+ use RankMath\KB;
9
  ?>
10
+ <h3><?php esc_html_e( 'SEO Analysis', 'rank-math' ); ?></h3>
 
11
 
12
+ <p><?php esc_html_e( 'In this section, we\'re going to introduce the SEO analysis tool. As the name suggests, it analyzes your site\'s SEO and points out what you\'re doing right and the issues you need to fix.', 'rank-math' ); ?></p>
13
 
14
+ <p><?php esc_html_e( 'Analyzing your SEO is the first step to making it perfect, so you should run this tool as your first step. It\'s a fast process, and it puts you on the right path.', 'rank-math' ); ?></p>
15
 
16
+ <p><?php esc_html_e( 'You may have used SEO tools in the past - many of these tools check your page as you type and tell you if you\'re optimizing it properly. Rank Math does this too - but it does much more.', 'rank-math' ); ?></p>
17
 
18
+ <p><?php esc_html_e( 'Checking a page as you type will detect "on-page" ranking factors - factors that influence the rankings for individual pages. But that only covers a single piece of the SEO puzzle. Although on-page factors are extremely important, there are other details that affect your site\'s rankings.', 'rank-math' ); ?></p>
19
 
20
+ <p><?php esc_html_e( 'These include technical and performance issues, like caching, URL structure, and pagination.', 'rank-math' ); ?></p>
21
 
22
+ <p><?php esc_html_e( 'Before you dig into every post and page on your site, you should fix any site-wide issues. But you have to identify them first - and that\'s where the analysis tool comes into play.', 'rank-math' ); ?></p>
23
 
24
+ <p><?php esc_html_e( 'You have better things to do than spend hours poring over settings and working through checklists - that\'s why Rank Math has a built-in SEO Analysis tool. It scans your site in seconds and gives you a detailed breakdown of any issues it locates.', 'rank-math' ); ?></p>
25
 
26
+ <p><?php esc_html_e( 'The tool also gives you instructions on how to fix each issue it finds - whether it\'s changing a setting or installing a simple plugin, you\'ll know what to do and how to do it.', 'rank-math' ); ?></p>
27
+
28
+ <p><a href="<?php KB::the( 'seo-analysis' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read full SEO Analysis tutorial', 'rank-math' ); ?></a></p>
includes/modules/seo-analysis/views/index.php CHANGED
File without changes
includes/modules/seo-analysis/views/main.php CHANGED
@@ -9,18 +9,19 @@
9
  * @copyright 2019 Rank Math
10
  */
11
 
 
12
  use RankMath\Helper;
13
 
14
  $assets = plugin_dir_url( dirname( __FILE__ ) );
15
  $analyzer = Helper::get_module( 'seo-analysis' )->admin->analyzer;
16
  ?>
17
- <div class="wrap rank-math-seo-analysis-wrap limit-wrap">
18
 
19
  <span class="wp-header-end"></span>
20
 
21
  <h2>
22
  <?php echo esc_html( get_admin_page_title() ); ?>
23
- <a class="page-title-action" href="<?php echo \RankMath\KB::get( 'seo-analysis' ); ?>" target="_blank"><?php esc_html_e( 'What is this?', 'rank-math' ); ?></a>
24
  </h2>
25
  <?php if ( Helper::is_mythemeshop_connected() ) : ?>
26
  <div class="rank-math-seo-analysis-header rank-math-ui<?php echo empty( $analyzer->results ) ? '' : ' hidden'; ?>">
@@ -60,7 +61,7 @@ $analyzer = Helper::get_module( 'seo-analysis' )->admin->analyzer;
60
  <?php endif; ?>
61
  <?php else : ?>
62
  <div class="rank-math-seo-analysis-header rank-math-ui">
63
- <h3>Analyze your site by <a href="<?php echo Helper::get_connect_url(); ?>" target="_blank">linking your Rank Math account</a>.</h3>
64
  </div>
65
  <?php // phpcs:enable ?>
66
  <?php endif; ?>
9
  * @copyright 2019 Rank Math
10
  */
11
 
12
+ use RankMath\KB;
13
  use RankMath\Helper;
14
 
15
  $assets = plugin_dir_url( dirname( __FILE__ ) );
16
  $analyzer = Helper::get_module( 'seo-analysis' )->admin->analyzer;
17
  ?>
18
+ <div class="wrap rank-math-seo-analysis-wrap">
19
 
20
  <span class="wp-header-end"></span>
21
 
22
  <h2>
23
  <?php echo esc_html( get_admin_page_title() ); ?>
24
+ <a class="page-title-action" href="<?php KB::the( 'seo-analysis' ); ?>" target="_blank"><?php esc_html_e( 'What is this?', 'rank-math' ); ?></a>
25
  </h2>
26
  <?php if ( Helper::is_mythemeshop_connected() ) : ?>
27
  <div class="rank-math-seo-analysis-header rank-math-ui<?php echo empty( $analyzer->results ) ? '' : ' hidden'; ?>">
61
  <?php endif; ?>
62
  <?php else : ?>
63
  <div class="rank-math-seo-analysis-header rank-math-ui">
64
+ <h3><?php printf( __( 'Analyze your site by <a href="%1$s" target="_blank">linking your Rank Math account', 'rank-math' ), Helper::get_connect_url() ); ?></a>.</h3>
65
  </div>
66
  <?php // phpcs:enable ?>
67
  <?php endif; ?>
includes/modules/sitemap/abstract-xml.php CHANGED
File without changes
includes/modules/sitemap/class-admin.php CHANGED
File without changes
includes/modules/sitemap/class-cache-watcher.php CHANGED
File without changes
includes/modules/sitemap/class-cache.php CHANGED
File without changes
includes/modules/sitemap/class-classifier.php CHANGED
File without changes
includes/modules/sitemap/class-generator.php CHANGED
File without changes
includes/modules/sitemap/class-image-parser.php CHANGED
File without changes
includes/modules/sitemap/class-router.php CHANGED
File without changes
includes/modules/sitemap/class-sitemap-xml.php CHANGED
File without changes
includes/modules/sitemap/class-sitemap.php CHANGED
File without changes
includes/modules/sitemap/class-stylesheet.php CHANGED
File without changes
includes/modules/sitemap/class-timezone.php CHANGED
File without changes
includes/modules/sitemap/index.php CHANGED
File without changes
includes/modules/sitemap/providers/class-author.php CHANGED
File without changes
includes/modules/sitemap/providers/class-post-type.php CHANGED
@@ -115,7 +115,7 @@ class Post_Type implements Provider {
115
  if ( $max_pages > 1 ) {
116
  $sql = "
117
  SELECT post_modified_gmt
118
- FROM ( SELECT @rownum:=@rownum+1 rownum, $wpdb->posts.post_modified_gmt
119
  FROM ( SELECT @rownum:=0 ) r, $wpdb->posts
120
  WHERE post_status IN ( 'publish', 'inherit' )
121
  AND post_type = %s
115
  if ( $max_pages > 1 ) {
116
  $sql = "
117
  SELECT post_modified_gmt
118
+ FROM ( SELECT @rownum:=@rownum rownum, $wpdb->posts.post_modified_gmt
119
  FROM ( SELECT @rownum:=0 ) r, $wpdb->posts
120
  WHERE post_status IN ( 'publish', 'inherit' )
121
  AND post_type = %s
includes/modules/sitemap/providers/class-taxonomy.php CHANGED
@@ -42,9 +42,9 @@ class Taxonomy implements Provider {
42
  if ( is_a( $type, 'WP_Taxonomy' ) ) {
43
  $type = $type->name;
44
  }
45
-
46
  if (
47
  false === taxonomy_exists( $type ) ||
 
48
  false === Helper::is_taxonomy_indexable( $type ) ||
49
  in_array( $type, array( 'link_category', 'nav_menu', 'post_format' ), true )
50
  ) {
42
  if ( is_a( $type, 'WP_Taxonomy' ) ) {
43
  $type = $type->name;
44
  }
 
45
  if (
46
  false === taxonomy_exists( $type ) ||
47
+ false === Helper::is_taxonomy_viewable( $type ) ||
48
  false === Helper::is_taxonomy_indexable( $type ) ||
49
  in_array( $type, array( 'link_category', 'nav_menu', 'post_format' ), true )
50
  ) {
includes/modules/sitemap/providers/index.php CHANGED
File without changes
includes/modules/sitemap/providers/interface-provider.php CHANGED
File without changes
includes/modules/sitemap/settings/authors.php CHANGED
File without changes
includes/modules/sitemap/settings/general.php CHANGED
File without changes
includes/modules/sitemap/settings/index.php CHANGED
File without changes
includes/modules/sitemap/settings/post-types.php CHANGED
File without changes
includes/modules/sitemap/settings/taxonomies.php CHANGED
File without changes
includes/modules/sitemap/sitemap-xsl.php CHANGED
@@ -11,8 +11,6 @@ use RankMath\Sitemap\Router;
11
 
12
  defined( 'ABSPATH' ) || exit;
13
 
14
- $url = 'https://s.rankmath.com/home';
15
-
16
  // Echo so opening tag doesn't get confused for PHP.
17
  echo '<?xml version="1.0" encoding="UTF-8"?>';
18
  ?>
@@ -107,78 +105,145 @@ echo '<?xml version="1.0" encoding="UTF-8"?>';
107
  </style>
108
  </head>
109
  <body>
110
- <div id="description">
111
- <h1>XML Sitemap</h1>
112
- <?php if ( false === $this->do_filter( 'sitemap/remove_credit', false ) ) : ?>
113
- <p>This XML Sitemap is generated by <a href="<?php echo esc_url( $url ); ?>" target="_blank">Rank Math WordPress SEO Plugin</a>. It is what search engines like Google use to crawl and re-crawl posts/pages/products/images/archives on your website.</p>
114
- <?php endif; ?>
115
- <p>Learn more about <a href="http://sitemaps.org" target="_blank">XML Sitemaps</a>.</p>
116
- </div>
117
- <div id="content">
118
- <xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &gt; 0">
119
- <p>This XML Sitemap Index file contains <strong><xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/></strong> sitemaps.</p>
120
- <table id="sitemap" cellpadding="3">
121
- <thead>
122
- <tr>
123
- <th width="75%">Sitemap</th>
124
- <th width="25%">Last Modified</th>
125
- </tr>
126
- </thead>
127
- <tbody>
128
- <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
129
- <xsl:variable name="sitemapURL">
130
- <xsl:value-of select="sitemap:loc"/>
131
- </xsl:variable>
132
- <tr>
133
- <td>
134
- <a href="{$sitemapURL}"><xsl:value-of select="sitemap:loc"/></a>
135
- </td>
136
- <td>
137
- <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))"/>
138
- </td>
139
- </tr>
140
- </xsl:for-each>
141
- </tbody>
142
- </table>
143
- </xsl:if>
144
- <xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &lt; 1">
145
- <p>This XML Sitemap contains <strong><xsl:value-of select="count(sitemap:urlset/sitemap:url)"/></strong> URLs.</p>
146
- <p class="expl"><a href="<?php echo esc_url( Router::get_base_url( 'sitemap_index.xml' ) ); ?>">&#8592; Sitemap Index</a></p>
147
- <table id="sitemap" cellpadding="3">
148
- <thead>
149
- <tr>
150
- <th width="80%">URL</th>
151
- <?php if ( Helper::get_settings( 'sitemap.include_images' ) ) : // phpcs:ignore ?><th width="5%">Images</th><?php endif; ?>
152
- <th title="Last Modification Time" width="15%">Last Mod.</th>
153
- </tr>
154
- </thead>
155
- <tbody>
156
- <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
157
- <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
158
- <xsl:for-each select="sitemap:urlset/sitemap:url">
159
- <tr>
160
- <td>
161
- <xsl:variable name="itemURL">
 
 
 
 
 
 
 
162
  <xsl:value-of select="sitemap:loc"/>
163
  </xsl:variable>
164
- <a href="{$itemURL}">
165
- <xsl:value-of select="sitemap:loc"/>
166
- </a>
167
- </td>
168
- <?php if ( Helper::get_settings( 'sitemap.include_images' ) ) : ?>
169
- <td>
170
- <xsl:value-of select="count(image:image)"/>
171
- </td>
172
- <?php endif; ?>
173
- <td>
174
- <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))"/>
175
- </td>
176
- </tr>
177
- </xsl:for-each>
178
- </tbody>
179
- </table>
180
- </xsl:if>
181
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  </body>
183
  </html>
184
  </xsl:template>
11
 
12
  defined( 'ABSPATH' ) || exit;
13
 
 
 
14
  // Echo so opening tag doesn't get confused for PHP.
15
  echo '<?xml version="1.0" encoding="UTF-8"?>';
16
  ?>
105
  </style>
106
  </head>
107
  <body>
108
+
109
+ <div id="description">
110
+
111
+ <h1><?php esc_html_e( 'XML Sitemap', 'rank-math' ); ?></h1>
112
+
113
+ <?php if ( false === $this->do_filter( 'sitemap/remove_credit', false ) ) : ?>
114
+ <p>
115
+ <?php
116
+ printf(
117
+ wp_kses_post(
118
+ /* translators: link to rankmath.com */
119
+ __( 'This XML Sitemap is generated by <a href="%s" target="_blank">Rank Math WordPress SEO Plugin</a>. It is what search engines like Google use to crawl and re-crawl posts/pages/products/images/archives on your website.', 'rank-math' )
120
+ ),
121
+ 'https://s.rankmath.com/home'
122
+ );
123
+ ?>
124
+ </p>
125
+ <?php endif; ?>
126
+
127
+ <p>
128
+ <?php
129
+ printf(
130
+ wp_kses_post(
131
+ /* translators: link to rankmath.com */
132
+ __( 'Learn more about <a href="%s" target="_blank">XML Sitemaps</a>.', 'rank-math' )
133
+ ),
134
+ 'http://sitemaps.org'
135
+ );
136
+ ?>
137
+ </p>
138
+
139
+ </div>
140
+
141
+ <div id="content">
142
+
143
+ <xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &gt; 0">
144
+
145
+ <p>
146
+ <?php
147
+ printf(
148
+ /* translators: xsl value count */
149
+ __( 'This XML Sitemap Index file contains <strong>%s</strong> sitemaps.', 'rank-math' ),
150
+ '<xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/>'
151
+ );
152
+ ?>
153
+ </p>
154
+
155
+ <table id="sitemap" cellpadding="3">
156
+
157
+ <thead>
158
+ <tr>
159
+ <th width="75%"><?php esc_html_e( 'Sitemap', 'rank-math' ); ?></th>
160
+ <th width="25%"><?php esc_html_e( 'Last Modified', 'rank-math' ); ?></th>
161
+ </tr>
162
+ </thead>
163
+
164
+ <tbody>
165
+ <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
166
+ <xsl:variable name="sitemapURL">
167
  <xsl:value-of select="sitemap:loc"/>
168
  </xsl:variable>
169
+ <tr>
170
+ <td>
171
+ <a href="{$sitemapURL}"><xsl:value-of select="sitemap:loc"/></a>
172
+ </td>
173
+ <td>
174
+ <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))"/>
175
+ </td>
176
+ </tr>
177
+ </xsl:for-each>
178
+ </tbody>
179
+
180
+ </table>
181
+
182
+ </xsl:if>
183
+
184
+ <xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &lt; 1">
185
+
186
+ <p>
187
+ <?php
188
+ printf(
189
+ /* translators: xsl value count */
190
+ __( 'This XML Sitemap contains <strong>%s</strong> URLs.', 'rank-math' ),
191
+ '<xsl:value-of select="count(sitemap:urlset/sitemap:url)"/>'
192
+ );
193
+ ?>
194
+ </p>
195
+
196
+ <p class="expl">
197
+ <?php
198
+ printf(
199
+ /* translators: xsl value count */
200
+ __( '<a href="%s">&#8592; Sitemap Index</a>', 'rank-math' ),
201
+ esc_url( Router::get_base_url( 'sitemap_index.xml' ) )
202
+ );
203
+ ?>
204
+ </p>
205
+
206
+ <table id="sitemap" cellpadding="3">
207
+
208
+ <thead>
209
+ <tr>
210
+ <th width="80%"><?php esc_html_e( 'URL', 'rank-math' ); ?></th>
211
+ <?php if ( Helper::get_settings( 'sitemap.include_images' ) ) : // phpcs:ignore ?><th width="5%"><?php esc_html_e( 'Images', 'rank-math' ); ?></th><?php endif; ?>
212
+ <th title="Last Modification Time" width="15%"><?php esc_html_e( 'Last Mod.', 'rank-math' ); ?></th>
213
+ </tr>
214
+ </thead>
215
+
216
+ <tbody>
217
+ <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
218
+ <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
219
+ <xsl:for-each select="sitemap:urlset/sitemap:url">
220
+ <tr>
221
+ <td>
222
+ <xsl:variable name="itemURL">
223
+ <xsl:value-of select="sitemap:loc"/>
224
+ </xsl:variable>
225
+ <a href="{$itemURL}">
226
+ <xsl:value-of select="sitemap:loc"/>
227
+ </a>
228
+ </td>
229
+ <?php if ( Helper::get_settings( 'sitemap.include_images' ) ) : ?>
230
+ <td>
231
+ <xsl:value-of select="count(image:image)"/>
232
+ </td>
233
+ <?php endif; ?>
234
+ <td>
235
+ <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))"/>
236
+ </td>
237
+ </tr>
238
+ </xsl:for-each>
239
+ </tbody>
240
+
241
+ </table>
242
+
243
+ </xsl:if>
244
+
245
+ </div>
246
+
247
  </body>
248
  </html>
249
  </xsl:template>
includes/modules/sitemap/views/help.php CHANGED
@@ -6,20 +6,22 @@
6
  * @subpackage RankMath\Sitemap
7
  */
8
 
 
9
  ?>
10
- <h3>Sitemaps</h3>
11
- <p>XML sitemaps are files that serve a single purpose - to help search engines find and index all of your content.</p>
12
 
13
- <p>Once upon a time, search engine bots would have a hard time finding all the content on a site. Many sites had a weak internal link structure, and that meant that some pages or posts would go overlooked.</p>
14
 
15
- <p>The early search engines gave us forms where we could enter our URLs one at a time. They'd feed this information into their queue of pages to crawl, and the pages would get visited and indexed at some point.</p>
16
 
17
- <p>Typing in dozens or even hundreds of URLs was a tedious job - in fact, many companies popped up offering to submit your site to the search engines, because who had the time to do that?</p>
18
 
19
- <p>When Google appeared on the scene, people soon noticed that submitting pages didn't lead to fast crawls. Linking to a page from another page (even on the same site) would get the bot to visit quickly.</p>
20
 
21
- <p>To solve the problem of getting pages crawled and indexed, many webmasters created a "sitemap". It was an ugly HTML page with nothing but links to all the site's content. It was a bit of an eyesore, and human users had little use for it. But it helped the spiders to find pages and it got them into the index.</p>
22
 
23
- <p>Search engines realized that people were building these pages that didn't do anything for human visitors, and they decided to cut us a break. They invented a new XML based file that we could use to communicate directly with the robots. We could announce our new pages without cluttering up our sites with pointless pages.</p>
24
 
25
- <p><a href="<?php echo \RankMath\KB::get( 'configure-sitemaps' ); ?>" target="_blank">Click here to read how to configure Sitemaps</a></p>
 
 
6
  * @subpackage RankMath\Sitemap
7
  */
8
 
9
+ use RankMath\KB;
10
  ?>
11
+ <h3><?php esc_html_e( 'Sitemaps', 'rank-math' ); ?></h3>
 
12
 
13
+ <p><?php esc_html_e( 'XML sitemaps are files that serve a single purpose - to help search engines find and index all of your content.', 'rank-math' ); ?></p>
14
 
15
+ <p><?php esc_html_e( 'Once upon a time, search engine bots would have a hard time finding all the content on a site. Many sites had a weak internal link structure, and that meant that some pages or posts would go overlooked.', 'rank-math' ); ?></p>
16
 
17
+ <p><?php esc_html_e( 'The early search engines gave us forms where we could enter our URLs one at a time. They\'d feed this information into their queue of pages to crawl, and the pages would get visited and indexed at some point.', 'rank-math' ); ?></p>
18
 
19
+ <p><?php esc_html_e( 'Typing in dozens or even hundreds of URLs was a tedious job - in fact, many companies popped up offering to submit your site to the search engines, because who had the time to do that?', 'rank-math' ); ?></p>
20
 
21
+ <p><?php esc_html_e( 'When Google appeared on the scene, people soon noticed that submitting pages didn\'t lead to fast crawls. Linking to a page from another page (even on the same site) would get the bot to visit quickly.', 'rank-math' ); ?></p>
22
 
23
+ <p><?php esc_html_e( 'To solve the problem of getting pages crawled and indexed, many webmasters created a "sitemap". It was an ugly HTML page with nothing but links to all the site\'s content. It was a bit of an eyesore, and human users had little use for it. But it helped the spiders to find pages and it got them into the index.', 'rank-math' ); ?></p>
24
 
25
+ <p><?php esc_html_e( 'Search engines realized that people were building these pages that didn\'t do anything for human visitors, and they decided to cut us a break. They invented a new XML based file that we could use to communicate directly with the robots. We could announce our new pages without cluttering up our sites with pointless pages.', 'rank-math' ); ?></p>
26
+
27
+ <p><a href="<?php KB::the( 'configure-sitemaps' ); ?>" target="_blank"><?php esc_html_e( 'Click here to read how to configure Sitemaps', 'rank-math' ); ?></a></p>
includes/modules/sitemap/views/index.php CHANGED
File without changes
includes/modules/woocommerce/class-admin.php CHANGED
File without changes
includes/modules/woocommerce/class-woocommerce.php CHANGED
File without changes
includes/modules/woocommerce/views/help.php CHANGED
@@ -6,11 +6,79 @@
6
  * @subpackage RankMath\WooCommerce
7
  */
8
 
 
9
  ?>
10
- <h3>WooCommerce</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  <p>
12
- Nulla neque dolor, sagittis eget, iaculis quis, molestie non, velit. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Suspendisse pulvinar, augue ac venenatis condimentum, sem libero volutpat nibh, nec pellentesque velit pede quis nunc. Nam eget dui. Nam commodo suscipit quam.
 
 
 
 
 
 
13
  </p>
 
 
 
 
 
14
  <p>
15
- Nulla consequat massa quis enim. Etiam sit amet orci eget eros faucibus tincidunt. Vestibulum suscipit nulla quis orci. Ut id nisl quis enim dignissim sagittis. Donec elit libero, sodales nec, volutpat a, suscipit non, turpis. Nunc egestas, augue at pellentesque laoreet, felis eros vehicula leo, at malesuada velit leo quis pede. Sed a libero. Aenean vulputate eleifend tellus. Nullam accumsan lorem in dui.
 
 
 
 
 
 
16
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  * @subpackage RankMath\WooCommerce
7
  */
8
 
9
+ use RankMath\Helper;
10
  ?>
11
+
12
+ <h3><?php esc_html_e( 'WooCommerce', 'rank-math' ); ?></h3>
13
+
14
+ <p><?php esc_html_e( 'SEO is the backbone of any website and it couldn\'t be more true for a WooCommerce store.', 'rank-math' ); ?></p>
15
+
16
+ <p><?php esc_html_e( 'When you sell something online, you want people to buy it. And, SEO is the best way to do so in the long run.', 'rank-math' ); ?></p>
17
+
18
+ <p><?php esc_html_e( 'With the Rank Math SEO plugin, you can easily optimize your WooCommerce store in general and product pages in particular.', 'rank-math' ); ?></p>
19
+
20
+ <p><strong><?php esc_html_e( 'Optimizing Your WooCommerce Store', 'rank-math' ); ?></strong></p>
21
+
22
+ <p>
23
+ <?php
24
+ printf(
25
+ /* translators: link to local seo settings */
26
+ __( 'Rank Math can help you make your product category or tag archives `noindex`. You can do that from <a href="%1$s">WordPress Dashboard > Rank Math > Titles & Meta > Product Categories</a>', 'rank-math' ),
27
+ Helper::get_admin_url( 'options-titles#setting-panel-taxonomy-product_cat' )
28
+ );
29
+ ?>
30
+ </p>
31
+
32
+ <p><?php esc_html_e( 'or', 'rank-math' ); ?></p>
33
+
34
+ <p>
35
+ <a href="<?php echo Helper::get_admin_url( 'options-titles#setting-panel-taxonomy-product_tag' ); ?>"><?php esc_html_e( 'WordPress Dashboard > Rank Math > Titles & Meta > Product Tags.', 'rank-math' ); ?></a>
36
+ </p>
37
+
38
+ <p><img src="https://rankmath.com/wp-content/uploads/2019/03/product-archive-settings.jpg" alt="make categories noindex" /></p>
39
+
40
+ <p><strong><?php esc_html_e( 'Optimizing Your Product Pages', 'rank-math' ); ?></strong></p>
41
+
42
  <p>
43
+ <?php
44
+ printf(
45
+ /* translators: link to local seo settings */
46
+ __( 'You can customize and automate the SEO Title/Description generation easily as well. Just head over to <a href="%1$s">WordPress Dashboard > Rank Math > Titles & Meta > Products</a>', 'rank-math' ),
47
+ Helper::get_admin_url( 'options-titles#setting-panel-post-type-product' )
48
+ );
49
+ ?>
50
  </p>
51
+
52
+ <p><img src="https://rankmath.com/wp-content/uploads/2019/03/individual-product-settings.jpg" alt="product seo title" /></p>
53
+
54
+ <p><?php esc_html_e( 'You can also add rich snippets to your product pages easily with Rank Math, apart from doing the regular SEO like you would do on posts.', 'rank-math' ); ?></p>
55
+
56
  <p>
57
+ <?php
58
+ printf(
59
+ /* translators: link to local seo settings */
60
+ __( 'Do that from the product pages themeselve. Go to <a href="%1$s">WordPress Dashboard > Products > Add New</a>', 'rank-math' ),
61
+ admin_url( 'post-new.php?post_type=product' )
62
+ );
63
+ ?>
64
  </p>
65
+
66
+ <p><?php esc_html_e( 'And, choose the product schema from the Rich Snippets tab.', 'rank-math' ); ?></p>
67
+
68
+ <p><img src="https://rankmath.com/wp-content/uploads/2019/03/product-rich-snippets.jpg" alt="product rich snippets" /></p>
69
+
70
+ <p><strong><?php esc_html_e( 'Optimizing Your Product URLs', 'rank-math' ); ?></strong></p>
71
+
72
+ <p><?php esc_html_e( 'Rank Math offers you to remove category base from your product archive URLs so the URLs are cleaner, more SEO friendly and easier to remember.', 'rank-math' ); ?></p>
73
+
74
+ <p>
75
+ <?php
76
+ printf(
77
+ /* translators: link to local seo settings */
78
+ __( 'To access those options, head over to <a href="%1$s">WordPress Dashboard > Rank Math > General Settings > WooCommerce</a>.', 'rank-math' ),
79
+ Helper::get_admin_url( 'options-general#setting-panel-woocommerce' )
80
+ );
81
+ ?>
82
+ </p>
83
+
84
+ <p><img src="https://rankmath.com/wp-content/uploads/2019/03/woocommerce-url-settings.jpg" alt="product category base" /></p>
includes/modules/woocommerce/views/options-general.php CHANGED
@@ -40,3 +40,11 @@ $cmb->add_field( array(
40
  'desc' => esc_html__( 'Remove WooCommerce generator tag from the source code.', 'rank-math' ),
41
  'default' => 'on',
42
  ) );
 
 
 
 
 
 
 
 
40
  'desc' => esc_html__( 'Remove WooCommerce generator tag from the source code.', 'rank-math' ),
41
  'default' => 'on',
42
  ) );
43
+
44
+ $cmb->add_field( array(
45
+ 'id' => 'remove_shop_snippet_data',
46
+ 'type' => 'switch',
47
+ 'name' => esc_html__( 'Remove Snippet Data', 'rank-math' ),
48
+ 'desc' => esc_html__( 'Remove Snippet Data from WooCommerce Shop page.', 'rank-math' ),
49
+ 'default' => 'on',
50
+ ) );
includes/opengraph/class-facebook.php CHANGED
@@ -12,7 +12,6 @@ namespace RankMath\OpenGraph;
12
 
13
  use DateInterval;
14
  use RankMath\Helper;
15
- use MyThemeShop\Helpers\Str;
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
@@ -110,7 +109,7 @@ class Facebook extends OpenGraph {
110
  $locale = get_locale();
111
 
112
  // Catch some weird locales served out by WP that are not easily doubled up.
113
- $fix_locales = array(
114
  'ca' => 'ca_ES',
115
  'en' => 'en_US',
116
  'el' => 'el_GR',
@@ -120,7 +119,7 @@ class Facebook extends OpenGraph {
120
  'uk' => 'uk_UA',
121
  'vi' => 'vi_VN',
122
  'zh' => 'zh_CN',
123
- );
124
 
125
  if ( isset( $fix_locales[ $locale ] ) ) {
126
  $locale = $fix_locales[ $locale ];
@@ -132,7 +131,7 @@ class Facebook extends OpenGraph {
132
  }
133
 
134
  // These are the locales FB supports.
135
- $fb_valid_fb_locales = array(
136
  'af_ZA', // Afrikaans.
137
  'ak_GH', // Akan.
138
  'am_ET', // Amharic.
@@ -273,7 +272,7 @@ class Facebook extends OpenGraph {
273
  'zh_TW', // Traditional Chinese (Taiwan).
274
  'zu_ZA', // Zulu.
275
  'zz_TR', // Zazaki.
276
- );
277
 
278
  // Check to see if the locale is a valid FB one, if not, use en_US as a fallback.
279
  if ( ! in_array( $locale, $fb_valid_fb_locales, true ) ) {
@@ -307,7 +306,7 @@ class Facebook extends OpenGraph {
307
  $type = 'website';
308
  } elseif ( is_singular() ) {
309
  $type = 'article';
310
- if ( in_array( $this->schema, array( 'video', 'product', 'local' ) ) ) {
311
  $type = $this->schema;
312
  if ( ! is_front_page() ) {
313
  $this->action( 'rank_math/opengraph/facebook', $this->schema, 30 );
@@ -527,7 +526,7 @@ class Facebook extends OpenGraph {
527
  public function video() {
528
  $this->tag( 'og:video', Helper::get_post_meta( 'snippet_video_url' ) );
529
  if ( $duration = Helper::get_post_meta( 'snippet_video_duration' ) ) { // phpcs:ignore
530
- $this->tag( 'video:duration', $this->duration_to_seconds( $duration ) );
531
  }
532
  }
533
 
@@ -539,16 +538,13 @@ class Facebook extends OpenGraph {
539
  * @return int
540
  */
541
  public function duration_to_seconds( $iso8601 ) {
542
-
543
- // The format starts with the letter P, for "period".
544
- $iso8601 = ( ! Str::starts_with( 'P', $iso8601 ) ) ? 'PT' . $iso8601 : $iso8601;
545
  $interval = new DateInterval( $iso8601 );
546
 
547
- return array_sum( array(
548
  $interval->d * DAY_IN_SECONDS,
549
  $interval->h * HOUR_IN_SECONDS,
550
  $interval->i * MINUTE_IN_SECONDS,
551
  $interval->s,
552
- ) );
553
  }
554
  }
12
 
13
  use DateInterval;
14
  use RankMath\Helper;
 
15
 
16
  defined( 'ABSPATH' ) || exit;
17
 
109
  $locale = get_locale();
110
 
111
  // Catch some weird locales served out by WP that are not easily doubled up.
112
+ $fix_locales = [
113
  'ca' => 'ca_ES',
114
  'en' => 'en_US',
115
  'el' => 'el_GR',
119
  'uk' => 'uk_UA',
120
  'vi' => 'vi_VN',
121
  'zh' => 'zh_CN',
122
+ ];
123
 
124
  if ( isset( $fix_locales[ $locale ] ) ) {
125
  $locale = $fix_locales[ $locale ];
131
  }
132
 
133
  // These are the locales FB supports.
134
+ $fb_valid_fb_locales = [
135
  'af_ZA', // Afrikaans.
136
  'ak_GH', // Akan.
137
  'am_ET', // Amharic.
272
  'zh_TW', // Traditional Chinese (Taiwan).
273
  'zu_ZA', // Zulu.
274
  'zz_TR', // Zazaki.
275
+ ];
276
 
277
  // Check to see if the locale is a valid FB one, if not, use en_US as a fallback.
278
  if ( ! in_array( $locale, $fb_valid_fb_locales, true ) ) {
306
  $type = 'website';
307
  } elseif ( is_singular() ) {
308
  $type = 'article';
309
+ if ( in_array( $this->schema, [ 'video', 'product', 'local' ] ) ) {
310
  $type = $this->schema;
311
  if ( ! is_front_page() ) {
312
  $this->action( 'rank_math/opengraph/facebook', $this->schema, 30 );
526
  public function video() {
527
  $this->tag( 'og:video', Helper::get_post_meta( 'snippet_video_url' ) );
528
  if ( $duration = Helper::get_post_meta( 'snippet_video_duration' ) ) { // phpcs:ignore
529
+ $this->tag( 'video:duration', $this->duration_to_seconds( Helper::get_formatted_duration( $duration ) ) );
530
  }
531
  }
532
 
538
  * @return int
539
  */
540
  public function duration_to_seconds( $iso8601 ) {
 
 
 
541
  $interval = new DateInterval( $iso8601 );
542
 
543
+ return array_sum([
544
  $interval->d * DAY_IN_SECONDS,
545
  $interval->h * HOUR_IN_SECONDS,
546
  $interval->i * MINUTE_IN_SECONDS,
547
  $interval->s,
548
+ ]);
549
  }
550
  }
includes/opengraph/class-image.php CHANGED
@@ -231,6 +231,8 @@ class Image {
231
  return;
232
  }
233
 
 
 
234
  if ( ! $attachment['alt'] && is_singular() ) {
235
  $attachment['alt'] = $this->get_attachment_alt();
236
  }
231
  return;
232
  }
233
 
234
+ $attachment['url'] = $image_url;
235
+
236
  if ( ! $attachment['alt'] && is_singular() ) {
237
  $attachment['alt'] = $this->get_attachment_alt();
238
  }
includes/opengraph/class-opengraph.php CHANGED
File without changes
includes/opengraph/class-twitter.php CHANGED
File without changes
includes/opengraph/index.php CHANGED
File without changes
includes/rest/class-admin.php CHANGED
File without changes
includes/rest/class-helper.php CHANGED
File without changes
includes/settings/general/breadcrumbs.php CHANGED
File without changes
includes/settings/general/htaccess.php CHANGED
File without changes
includes/settings/general/images.php CHANGED
File without changes
includes/settings/general/index.php CHANGED
File without changes
includes/settings/general/links.php CHANGED
File without changes
includes/settings/general/others.php CHANGED
File without changes
includes/settings/general/robots.php CHANGED
File without changes
includes/settings/general/rss-vars-table.php CHANGED
File without changes
includes/settings/general/webmaster.php CHANGED
File without changes
includes/settings/index.php CHANGED
File without changes
includes/settings/titles/author.php CHANGED
File without changes
includes/settings/titles/global.php CHANGED
File without changes
includes/settings/titles/homepage.php CHANGED
File without changes
includes/settings/titles/index.php CHANGED
File without changes
includes/settings/titles/local.php CHANGED
File without changes
includes/settings/titles/misc.php CHANGED
File without changes
includes/settings/titles/post-types.php CHANGED
File without changes
includes/settings/titles/social.php CHANGED
File without changes
includes/settings/titles/taxonomies.php CHANGED
@@ -87,7 +87,7 @@ $cmb->add_field( array(
87
  'name' => esc_html__( 'Remove Snippet Data', 'rank-math' ),
88
  /* translators: taxonomy name */
89
  'desc' => sprintf( esc_html__( 'Remove schema data from %s.', 'rank-math' ), $name ),
90
- 'default' => 'off',
91
  ) );
92
 
93
  if ( 'post_format' === $taxonomy ) {
87
  'name' => esc_html__( 'Remove Snippet Data', 'rank-math' ),
88
  /* translators: taxonomy name */
89
  'desc' => sprintf( esc_html__( 'Remove schema data from %s.', 'rank-math' ), $name ),
90
+ 'default' => ( in_array( $taxonomy, [ 'product_cat', 'product_tag' ] ) ) ? 'on' : 'off',
91
  ) );
92
 
93
  if ( 'post_format' === $taxonomy ) {
includes/template-tags.php CHANGED
File without changes
includes/traits/class-ajax.php CHANGED
File without changes
includes/traits/class-hooker.php CHANGED
File without changes
includes/traits/class-replacement.php CHANGED
File without changes
includes/traits/class-shortcode.php CHANGED
File without changes
includes/traits/class-wizard.php CHANGED
@@ -27,6 +27,11 @@ trait Wizard {
27
  return;
28
  }
29
 
 
 
 
 
 
30
  if ( is_callable( $this->steps[ $this->step ]['view'] ) ) {
31
  call_user_func( $this->steps[ $this->step ]['view'], $this );
32
  return;
27
  return;
28
  }
29
 
30
+ if ( ! is_null( $this->wizard_step ) ) {
31
+ $this->wizard_step->render( $this );
32
+ return;
33
+ }
34
+
35
  if ( is_callable( $this->steps[ $this->step ]['view'] ) ) {
36
  call_user_func( $this->steps[ $this->step ]['view'], $this );
37
  return;
includes/traits/index.php CHANGED
File without changes
includes/updates/update-0.10.0.php CHANGED
File without changes
includes/updates/update-0.9.8.php CHANGED
File without changes
includes/updates/update-1.0.14.php CHANGED
File without changes
includes/updates/update-1.0.15.php CHANGED
File without changes
includes/updates/update-1.0.18.php CHANGED
File without changes
languages/rank-math.pot CHANGED
@@ -24,7 +24,7 @@ msgstr ""
24
  msgid "Password is not entered."
25
  msgstr ""
26
 
27
- msgid "Thank you for connecting Rank Math to your MyThemeShop account."
28
  msgstr ""
29
 
30
  #. translators: sitename
@@ -306,7 +306,7 @@ msgid "Others"
306
  msgstr ""
307
 
308
  #. translators: Link to kb article
309
- msgid "Control how your plugin communicates with MyThemeShop and change how your RSS content looks. %s."
310
  msgstr ""
311
 
312
  msgid "SEO Settings"
@@ -489,7 +489,7 @@ msgstr ""
489
  msgid "Password"
490
  msgstr ""
491
 
492
- #. translators: Link to MyThemeShop privay policy
493
  #. translators: link to privacy policy
494
  msgid "Gathering usage data helps us make Rank Math SEO plugin better - for you. By understanding how you use Rank Math, we can introduce new features and find out if existing features are working well for you. If you don’t want us to collect data from your website, uncheck the tickbox. Please note that licensing information may still be sent back to us for authentication. We collect data anonymously, read more %s."
495
  msgstr ""
@@ -497,8 +497,8 @@ msgstr ""
497
  msgid "Connect FREE Account"
498
  msgstr ""
499
 
500
- #. translators: Link to MyThemeShop signup page
501
- msgid "You need to connect with your <a href=\"%s\" target=\"_blank\"><strong>FREE MyThemeShop account</strong></a> to use Rank Math on this site."
502
  msgstr ""
503
 
504
  msgid "Account Successfully Connected"
@@ -756,11 +756,11 @@ msgid "Headlines with numbers are 36% more likely to generate clicks, according
756
  msgstr ""
757
 
758
  #. translators: link to kb article
759
- msgid "You seem to be using a %s to break-down your text."
760
  msgstr ""
761
 
762
  #. translators: link to kb article
763
- msgid "You don't seem to be using a %s."
764
  msgstr ""
765
 
766
  msgid "Use Table of Content to break-down your text."
@@ -869,6 +869,9 @@ msgstr ""
869
  msgid "Edit Snippet"
870
  msgstr ""
871
 
 
 
 
872
  msgid "Price range: "
873
  msgstr ""
874
 
@@ -1336,6 +1339,80 @@ msgstr ""
1336
  msgid "AMP"
1337
  msgstr ""
1338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1339
  msgid "Create Backup"
1340
  msgstr ""
1341
 
@@ -1403,10 +1480,10 @@ msgstr ""
1403
  msgid "Not Activated"
1404
  msgstr ""
1405
 
1406
- msgid "MyThemeShop Email/Username"
1407
  msgstr ""
1408
 
1409
- msgid "MyThemeShop Password"
1410
  msgstr ""
1411
 
1412
  msgid "You have successfully activated Rank Math. If you find the plugin useful, feel free to recommend it to your friends or colleagues."
@@ -2112,7 +2189,7 @@ msgstr ""
2112
  msgid "Admin only notice: this page has no meta description set. Please edit the page to add one, or setup a template in Rank Math -> Titles &amp; Metas."
2113
  msgstr ""
2114
 
2115
- msgid "Search Engine Optimization by Rank Math - https://rankmath.com/wordpress/plugin/seo-suite/"
2116
  msgstr ""
2117
 
2118
  msgid "Rank Math WordPress SEO plugin"
@@ -2284,7 +2361,11 @@ msgstr ""
2284
  msgid "Insert keywords you want to rank for. Try to <a href=\"%s\" target=\"_blank\">attain 100/100 points</a> for better chances of ranking."
2285
  msgstr ""
2286
 
2287
- msgid "Example: MyThemeShop Themes"
 
 
 
 
2288
  msgstr ""
2289
 
2290
  msgid "This post is a Pillar Content"
@@ -2311,6 +2392,9 @@ msgstr ""
2311
  msgid "2h"
2312
  msgstr ""
2313
 
 
 
 
2314
  #. translators: link to title setting screen
2315
  msgid "Customize the title, description and images of your post used while sharing on Facebook and Twitter. <a href=\"%s\" target=\"_blank\">Read more</a>"
2316
  msgstr ""
@@ -2571,6 +2655,45 @@ msgstr ""
2571
  msgid "You can reorder the list by clicking on the column headings. "
2572
  msgstr ""
2573
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2574
  #. translators: 1: link to Monitor docs 2: link to Fix 404 docs
2575
  msgid "Find out where users are unable to find your content with the 404 monitor tool. You can also learn more about how to %1$s and %2$s with Rank Math."
2576
  msgstr ""
@@ -3012,6 +3135,21 @@ msgstr ""
3012
  msgid "Redirections can be exported to your .htaccess file for faster redirections, in SEO > Settings > Import/Export."
3013
  msgstr ""
3014
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3015
  msgid "Add New"
3016
  msgstr ""
3017
 
@@ -3267,6 +3405,39 @@ msgstr ""
3267
  msgid "Number of tickets (optional)"
3268
  msgstr ""
3269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3270
  msgid "Salary (Recommended)"
3271
  msgstr ""
3272
 
@@ -3632,6 +3803,18 @@ msgstr ""
3632
  msgid "You are not authorized to perform this action."
3633
  msgstr ""
3634
 
 
 
 
 
 
 
 
 
 
 
 
 
3635
  #. translators: %s is a Learn More link to the documentation
3636
  msgid "Control which user has access to which options of Rank Math. %s"
3637
  msgstr ""
@@ -3863,6 +4046,15 @@ msgstr ""
3863
  msgid "Sitemaps list refreshed."
3864
  msgstr ""
3865
 
 
 
 
 
 
 
 
 
 
3866
  msgid "Review sitemaps submitted to your Search Console account."
3867
  msgstr ""
3868
 
@@ -4171,6 +4363,33 @@ msgstr ""
4171
  msgid "Your site is accessible by search engine."
4172
  msgstr ""
4173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4174
  msgid "What is this?"
4175
  msgstr ""
4176
 
@@ -4192,6 +4411,9 @@ msgstr ""
4192
  msgid "Complete"
4193
  msgstr ""
4194
 
 
 
 
4195
  msgid "This tab contains settings related to the XML sitemaps."
4196
  msgstr ""
4197
 
@@ -4341,6 +4563,59 @@ msgstr ""
4341
  msgid "Include archive pages of terms that have no posts associated."
4342
  msgstr ""
4343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4344
  msgid "The WooCommerce lets you see the URLs where visitors and search engine crawlers run into 404 not found errors on your site. Turn on Redirections too to redirect the faulty URLs easily."
4345
  msgstr ""
4346
 
@@ -4401,6 +4676,12 @@ msgstr ""
4401
  msgid "Remove WooCommerce generator tag from the source code."
4402
  msgstr ""
4403
 
 
 
 
 
 
 
4404
  msgid "Module slug"
4405
  msgstr ""
4406
 
@@ -5091,9 +5372,6 @@ msgstr ""
5091
  msgid "Add the SEO Meta Box for the term editor screen to customize SEO options for individual terms in this taxonomy."
5092
  msgstr ""
5093
 
5094
- msgid "Remove Snippet Data"
5095
- msgstr ""
5096
-
5097
  #. translators: taxonomy name
5098
  msgid "Remove schema data from %s."
5099
  msgstr ""
24
  msgid "Password is not entered."
25
  msgstr ""
26
 
27
+ msgid "Thank you for connecting your Rank Math account."
28
  msgstr ""
29
 
30
  #. translators: sitename
306
  msgstr ""
307
 
308
  #. translators: Link to kb article
309
+ msgid "Control how your plugin communicates with Rank Math and change how your RSS content looks. %s."
310
  msgstr ""
311
 
312
  msgid "SEO Settings"
489
  msgid "Password"
490
  msgstr ""
491
 
492
+ #. translators: Link to Rank Math privay policy
493
  #. translators: link to privacy policy
494
  msgid "Gathering usage data helps us make Rank Math SEO plugin better - for you. By understanding how you use Rank Math, we can introduce new features and find out if existing features are working well for you. If you don’t want us to collect data from your website, uncheck the tickbox. Please note that licensing information may still be sent back to us for authentication. We collect data anonymously, read more %s."
495
  msgstr ""
497
  msgid "Connect FREE Account"
498
  msgstr ""
499
 
500
+ #. translators: Link to Rank Math signup page
501
+ msgid "You need to connect with your <a href=\"%s\" target=\"_blank\"><strong>FREE Rank Math account</strong></a> to use Rank Math on this site."
502
  msgstr ""
503
 
504
  msgid "Account Successfully Connected"
756
  msgstr ""
757
 
758
  #. translators: link to kb article
759
+ msgid "You seem to be using a <a href=\"%s\" target=\"_blank\">Table of Contents plugin</a> to break-down your text."
760
  msgstr ""
761
 
762
  #. translators: link to kb article
763
+ msgid "You don't seem to be using a <a href=\"%s\" target=\"_blank\">Table of Contents plugin</a>."
764
  msgstr ""
765
 
766
  msgid "Use Table of Content to break-down your text."
869
  msgid "Edit Snippet"
870
  msgstr ""
871
 
872
+ msgid "Close Editor"
873
+ msgstr ""
874
+
875
  msgid "Price range: "
876
  msgstr ""
877
 
1339
  msgid "AMP"
1340
  msgstr ""
1341
 
1342
+ msgid "Accelerated Mobile Pages, or AMP for short, is a way for you to create fast loading pages that load blazing fast on mobile browsers. AMPs deliver consistent performance across multiple mobile devices."
1343
+ msgstr ""
1344
+
1345
+ msgid "Because they work so well and help pages load fast, Google has come to love the AMP enabled websites over their counterparts when it comes to rankings in the SERPs."
1346
+ msgstr ""
1347
+
1348
+ msgid "That is why having an AMP enabled website is so essential these days. But, having an AMP website brings its challenges with regards to the SEO. When you create AMPs, there are two versions of your site - one for the regular desktop browsers and one for the mobile browsers. If not handled properly, AMPs can backfire and create duplicate content issues which lead to de-ranked or worse, de-indexing of your posts."
1349
+ msgstr ""
1350
+
1351
+ msgid "Thankfully, we have thought this through and equipped Rank Math with the right tools to make sure your AMPS help your SEO, not ruin it."
1352
+ msgstr ""
1353
+
1354
+ #. translators: link to module dashboard
1355
+ msgid "To get the most out of AMP along with Rank Math - simply install any of the below AMP plugin and then <a href=\"%1$s\" target=\"_blank\">enable the AMP module of Rank Math</a>."
1356
+ msgstr ""
1357
+
1358
+ msgid "AMP for WordPress"
1359
+ msgstr ""
1360
+
1361
+ msgid "AMP for WP"
1362
+ msgstr ""
1363
+
1364
+ msgid "WP AMP Ninja"
1365
+ msgstr ""
1366
+
1367
+ msgid "AMP on WordPress – weeblrAMP CE"
1368
+ msgstr ""
1369
+
1370
+ msgid "AMP for WooCommerce"
1371
+ msgstr ""
1372
+
1373
+ msgid "WP AMP"
1374
+ msgstr ""
1375
+
1376
+ msgid "If you face any issues with it, simply <a rel=\"nofollow noopener noreferrer\" href=\"https://support.rankmath.com/\" target=\"_blank\">open a support ticket here</a>."
1377
+ msgstr ""
1378
+
1379
+ msgid "Congratulations on installing Rank Math. We hope that you've had no issues with installing Rank Math on your website. After the installation, the next step is to run the setup wizard and configure Rank Math."
1380
+ msgstr ""
1381
+
1382
+ msgid "While Rank Math automatically initiates the setup wizard once you install it, it is possible to skip it accidentally. If you’ve also skipped Rank Math’s setup wizard, then you can rerun the setup wizard by going to Rank Math’s dashboard, and then clicking the Setup Wizard tab."
1383
+ msgstr ""
1384
+
1385
+ msgid "Rank Math Setup Wizard Tab"
1386
+ msgstr ""
1387
+
1388
+ msgid "Click here to read full setup tutorial"
1389
+ msgstr ""
1390
+
1391
+ #. translators: link to support
1392
+ msgid "If you have any questions about the setup process or are facing difficulties in setting up Rank Math for your website, then get in touch with our support staff by <a href=\"%1$s\" target=\"_blank\">opening a support ticket</a>. The support staff is available 24x7x365 and will help you out with any issues that you have."
1393
+ msgstr ""
1394
+
1395
+ msgid "Local SEO is a way for you to rank better for searches made by your people in the area where you operate. It is the best way for you to get your products and services in front of the local customers."
1396
+ msgstr ""
1397
+
1398
+ msgid "There are various methods for optimizing your website for local SEO but the easiest method is built right inside the Rank Math plugin."
1399
+ msgstr ""
1400
+
1401
+ #. translators: link to local-seo
1402
+ msgid "Simply <a rel=\"nofollow noopener noreferrer\" href=\"%1$s\" target=\"_blank\">setup your business as Local Business</a> during the setup wizard."
1403
+ msgstr ""
1404
+
1405
+ msgid "Make sure the Local SEO & Google Knowledge Graph module is enabled."
1406
+ msgstr ""
1407
+
1408
+ #. translators: link to local seo settings
1409
+ msgid "Then, head over to <a href=\"%1$s\">Rank Math > Titles and Meta > Local SEO</a> and add more information about your Local Business like your Company Name, Logo, Email ID, Phone number, Address, And Contact/About pages."
1410
+ msgstr ""
1411
+
1412
+ #. translators: link to support
1413
+ msgid "If you face any sort of issue, <a href=\"%1$s\" target=\"_blank\">open a new ticket here</a> so that we can help."
1414
+ msgstr ""
1415
+
1416
  msgid "Create Backup"
1417
  msgstr ""
1418
 
1480
  msgid "Not Activated"
1481
  msgstr ""
1482
 
1483
+ msgid "Rank Math Email/Username"
1484
  msgstr ""
1485
 
1486
+ msgid "Rank Math Password"
1487
  msgstr ""
1488
 
1489
  msgid "You have successfully activated Rank Math. If you find the plugin useful, feel free to recommend it to your friends or colleagues."
2189
  msgid "Admin only notice: this page has no meta description set. Please edit the page to add one, or setup a template in Rank Math -> Titles &amp; Metas."
2190
  msgstr ""
2191
 
2192
+ msgid "Search Engine Optimization by Rank Math - https://s.rankmath.com/home"
2193
  msgstr ""
2194
 
2195
  msgid "Rank Math WordPress SEO plugin"
2361
  msgid "Insert keywords you want to rank for. Try to <a href=\"%s\" target=\"_blank\">attain 100/100 points</a> for better chances of ranking."
2362
  msgstr ""
2363
 
2364
+ #. translators: link to connect page.
2365
+ msgid "Get keyword suggestions from Google & optimize upto 5 Focus Keywords by <a href=\"%s\" target=\"_blank\">linking your Rank Math account</a>."
2366
+ msgstr ""
2367
+
2368
+ msgid "Example: Rank Math SEO"
2369
  msgstr ""
2370
 
2371
  msgid "This post is a Pillar Content"
2392
  msgid "2h"
2393
  msgstr ""
2394
 
2395
+ msgid "Set your default image for Facebook & Twitter by adding <a href=\"%s\" target=\"_blank\">OpenGraph Thumbnail</a>"
2396
+ msgstr ""
2397
+
2398
  #. translators: link to title setting screen
2399
  msgid "Customize the title, description and images of your post used while sharing on Facebook and Twitter. <a href=\"%s\" target=\"_blank\">Read more</a>"
2400
  msgstr ""
2655
  msgid "You can reorder the list by clicking on the column headings. "
2656
  msgstr ""
2657
 
2658
+ msgid "404 errors happen when someone requests a page or file that doesn't exist - actually, it's more accurate to say the web server can't find the file."
2659
+ msgstr ""
2660
+
2661
+ msgid "404s happen when:"
2662
+ msgstr ""
2663
+
2664
+ msgid "Someone types the wrong address"
2665
+ msgstr ""
2666
+
2667
+ msgid "Someone links to the wrong address"
2668
+ msgstr ""
2669
+
2670
+ msgid "The file or page moves to a different address"
2671
+ msgstr ""
2672
+
2673
+ msgid "The page or file is deleted"
2674
+ msgstr ""
2675
+
2676
+ msgid "The page or file never existed"
2677
+ msgstr ""
2678
+
2679
+ msgid "They're actually very common on the web. And they're never a good thing."
2680
+ msgstr ""
2681
+
2682
+ msgid "If you visit a site, you probably want to read or view content on that site. You won't stay on the site if the content is missing. Serving 404 errors to your visitors is a good way to lose them."
2683
+ msgstr ""
2684
+
2685
+ msgid "It doesn't matter if it's your fault, their fault, or someone else's. Maybe they clicked on a broken link caused by a typing mistake on another website. Maybe they cut-and-pasted a URL wrong. Or possibly they made a spelling mistake when they typed a URL manually."
2686
+ msgstr ""
2687
+
2688
+ msgid "Maybe you changed the URL of an article to make it more appealing to the search engines."
2689
+ msgstr ""
2690
+
2691
+ msgid "Whatever the cause, the result is a disappointed reader. So fixing 404 errors is a usability issue. Patching them up will result in more useful traffic to your site, and for many sites, that means more revenue."
2692
+ msgstr ""
2693
+
2694
+ msgid "Click here to read full 404 Monitor tutorial"
2695
+ msgstr ""
2696
+
2697
  #. translators: 1: link to Monitor docs 2: link to Fix 404 docs
2698
  msgid "Find out where users are unable to find your content with the 404 monitor tool. You can also learn more about how to %1$s and %2$s with Rank Math."
2699
  msgstr ""
3135
  msgid "Redirections can be exported to your .htaccess file for faster redirections, in SEO > Settings > Import/Export."
3136
  msgstr ""
3137
 
3138
+ msgid "An HTTP redirection is a magical thing. When you visit a URL with a redirection, your browser automatically jumps to a new address."
3139
+ msgstr ""
3140
+
3141
+ msgid "You’ve seen this before with URL shortener services like bit.ly – instead of typing a long address, you type a short one. Your browser is automatically redirected to a different site, and it happens faster than you can blink."
3142
+ msgstr ""
3143
+
3144
+ msgid "HTTP redirections are powerful tools in SEO, and they have lots of other uses, too. You can read about why that’s a good idea in this article."
3145
+ msgstr ""
3146
+
3147
+ msgid "Rank Math makes it easy to set up HTTP redirects – in this article, we show you how."
3148
+ msgstr ""
3149
+
3150
+ msgid "Click here to read full Redirection tutorial"
3151
+ msgstr ""
3152
+
3153
  msgid "Add New"
3154
  msgstr ""
3155
 
3405
  msgid "Number of tickets (optional)"
3406
  msgstr ""
3407
 
3408
+ msgid "Google has changed over the years. They've made their results pages more interesting and more useful at the same time. New kinds of content were added."
3409
+ msgstr ""
3410
+
3411
+ msgid "You often see all kinds of content in a SERP. Images, videos, tweets, and maps. Business listings and little bits of trivia (like personal bios or historical facts) were added."
3412
+ msgstr ""
3413
+
3414
+ msgid "These were the first wave of enhancements. They were \"added\" content, as they were added to the original results (which were pushed down the page). Google has also added enhancements to the way certain listings are displayed."
3415
+ msgstr ""
3416
+
3417
+ msgid "Do you remember when you used to see author pictures next to certain listings?"
3418
+ msgstr ""
3419
+
3420
+ msgid "These were \"authorship\" snippets - they were displayed whenever Google recognized the author of an article. Google has dropped support for authorship, but there are other enhancements that it does support today."
3421
+ msgstr ""
3422
+
3423
+ msgid "For instance, there are \"rich snippets\" for articles, videos, businesses, events, products, and recipes."
3424
+ msgstr ""
3425
+
3426
+ msgid "These snippets look different - which makes them stand out. They also tend to rank higher - above the fold (in the top 4 results)."
3427
+ msgstr ""
3428
+
3429
+ msgid "Both of these benefits make Rich Snippets extremely attractive. But Google can't display rich snippets unless it understands your content type. And it needs your help."
3430
+ msgstr ""
3431
+
3432
+ msgid "Google needs you to include special meta-data in your markup to describe what your content is. You need to use a special format called Schema.org, and it has to be perfectly valid."
3433
+ msgstr ""
3434
+
3435
+ msgid "Rank Math can format the Schema.org markup for you - that's what the Rich Snippet tab does for you."
3436
+ msgstr ""
3437
+
3438
+ msgid "Click here to read full Rich Snippet tutorial"
3439
+ msgstr ""
3440
+
3441
  msgid "Salary (Recommended)"
3442
  msgstr ""
3443
 
3803
  msgid "You are not authorized to perform this action."
3804
  msgstr ""
3805
 
3806
+ msgid "In this knowledge base article, we are going to discuss one of the most amazing features of Rank Math, the Role Manager."
3807
+ msgstr ""
3808
+
3809
+ msgid "You may have started your website alone, but as it grows, you will have to hire help or outsource certain tasks to keep your website growing. When you get more people working on your website, it poses a significant problem. You have to give them access to your backend. But as you probably understand, giving someone else full access to your website can lead to accidents, disasters, and frauds."
3810
+ msgstr ""
3811
+
3812
+ msgid "To prevent that from happening, we created the Role Manager in Rank Math. It’s an innovative feature that lets you restrict Rank Math’s individual features for each user, depending on what roles you give them on your website. If you didn’t understand that, do not worry. You will understand once we get into the details."
3813
+ msgstr ""
3814
+
3815
+ msgid "Click here to read full Role Manager tutorial"
3816
+ msgstr ""
3817
+
3818
  #. translators: %s is a Learn More link to the documentation
3819
  msgid "Control which user has access to which options of Rank Math. %s"
3820
  msgstr ""
4046
  msgid "Sitemaps list refreshed."
4047
  msgstr ""
4048
 
4049
+ msgid "Google Search Console is a website management tool by Google. Specifically, it was created so that website owners can see important information about their websites and resolve issues related to search engines. Your Google Search Console account will contain important information such as your website’s index status, crawl or other issues, your search engines rankings and most importantly, the keywords that your website ranks for. This information comes directly from Google and is very accurate compared to any 3rd party tool."
4050
+ msgstr ""
4051
+
4052
+ msgid "Once you setup Rank Math to work with Google Search Console, then Rank Math can fetch important information like keyword ranking, craw errors etc from Search Console and display it right inside your WordPress admin. This saves you a lot of time and gives you actionable information to work with when creating new content."
4053
+ msgstr ""
4054
+
4055
+ msgid "Click here to read full Search Console tutorial"
4056
+ msgstr ""
4057
+
4058
  msgid "Review sitemaps submitted to your Search Console account."
4059
  msgstr ""
4060
 
4363
  msgid "Your site is accessible by search engine."
4364
  msgstr ""
4365
 
4366
+ msgid "In this section, we're going to introduce the SEO analysis tool. As the name suggests, it analyzes your site's SEO and points out what you're doing right and the issues you need to fix."
4367
+ msgstr ""
4368
+
4369
+ msgid "Analyzing your SEO is the first step to making it perfect, so you should run this tool as your first step. It's a fast process, and it puts you on the right path."
4370
+ msgstr ""
4371
+
4372
+ msgid "You may have used SEO tools in the past - many of these tools check your page as you type and tell you if you're optimizing it properly. Rank Math does this too - but it does much more."
4373
+ msgstr ""
4374
+
4375
+ msgid "Checking a page as you type will detect \"on-page\" ranking factors - factors that influence the rankings for individual pages. But that only covers a single piece of the SEO puzzle. Although on-page factors are extremely important, there are other details that affect your site's rankings."
4376
+ msgstr ""
4377
+
4378
+ msgid "These include technical and performance issues, like caching, URL structure, and pagination."
4379
+ msgstr ""
4380
+
4381
+ msgid "Before you dig into every post and page on your site, you should fix any site-wide issues. But you have to identify them first - and that's where the analysis tool comes into play."
4382
+ msgstr ""
4383
+
4384
+ msgid "You have better things to do than spend hours poring over settings and working through checklists - that's why Rank Math has a built-in SEO Analysis tool. It scans your site in seconds and gives you a detailed breakdown of any issues it locates."
4385
+ msgstr ""
4386
+
4387
+ msgid "The tool also gives you instructions on how to fix each issue it finds - whether it's changing a setting or installing a simple plugin, you'll know what to do and how to do it."
4388
+ msgstr ""
4389
+
4390
+ msgid "Click here to read full SEO Analysis tutorial"
4391
+ msgstr ""
4392
+
4393
  msgid "What is this?"
4394
  msgstr ""
4395
 
4411
  msgid "Complete"
4412
  msgstr ""
4413
 
4414
+ msgid "Analyze your site by <a href=\"%1$s\" target=\"_blank\">linking your Rank Math account"
4415
+ msgstr ""
4416
+
4417
  msgid "This tab contains settings related to the XML sitemaps."
4418
  msgstr ""
4419
 
4563
  msgid "Include archive pages of terms that have no posts associated."
4564
  msgstr ""
4565
 
4566
+ msgid "XML Sitemap"
4567
+ msgstr ""
4568
+
4569
+ #. translators: link to rankmath.com
4570
+ msgid "This XML Sitemap is generated by <a href=\"%s\" target=\"_blank\">Rank Math WordPress SEO Plugin</a>. It is what search engines like Google use to crawl and re-crawl posts/pages/products/images/archives on your website."
4571
+ msgstr ""
4572
+
4573
+ #. translators: link to rankmath.com
4574
+ msgid "Learn more about <a href=\"%s\" target=\"_blank\">XML Sitemaps</a>."
4575
+ msgstr ""
4576
+
4577
+ #. translators: xsl value count
4578
+ msgid "This XML Sitemap Index file contains <strong>%s</strong> sitemaps."
4579
+ msgstr ""
4580
+
4581
+ msgid "Last Modified"
4582
+ msgstr ""
4583
+
4584
+ #. translators: xsl value count
4585
+ msgid "This XML Sitemap contains <strong>%s</strong> URLs."
4586
+ msgstr ""
4587
+
4588
+ #. translators: xsl value count
4589
+ msgid "<a href=\"%s\">&#8592; Sitemap Index</a>"
4590
+ msgstr ""
4591
+
4592
+ msgid "Last Mod."
4593
+ msgstr ""
4594
+
4595
+ msgid "XML sitemaps are files that serve a single purpose - to help search engines find and index all of your content."
4596
+ msgstr ""
4597
+
4598
+ msgid "Once upon a time, search engine bots would have a hard time finding all the content on a site. Many sites had a weak internal link structure, and that meant that some pages or posts would go overlooked."
4599
+ msgstr ""
4600
+
4601
+ msgid "The early search engines gave us forms where we could enter our URLs one at a time. They'd feed this information into their queue of pages to crawl, and the pages would get visited and indexed at some point."
4602
+ msgstr ""
4603
+
4604
+ msgid "Typing in dozens or even hundreds of URLs was a tedious job - in fact, many companies popped up offering to submit your site to the search engines, because who had the time to do that?"
4605
+ msgstr ""
4606
+
4607
+ msgid "When Google appeared on the scene, people soon noticed that submitting pages didn't lead to fast crawls. Linking to a page from another page (even on the same site) would get the bot to visit quickly."
4608
+ msgstr ""
4609
+
4610
+ msgid "To solve the problem of getting pages crawled and indexed, many webmasters created a \"sitemap\". It was an ugly HTML page with nothing but links to all the site's content. It was a bit of an eyesore, and human users had little use for it. But it helped the spiders to find pages and it got them into the index."
4611
+ msgstr ""
4612
+
4613
+ msgid "Search engines realized that people were building these pages that didn't do anything for human visitors, and they decided to cut us a break. They invented a new XML based file that we could use to communicate directly with the robots. We could announce our new pages without cluttering up our sites with pointless pages."
4614
+ msgstr ""
4615
+
4616
+ msgid "Click here to read how to configure Sitemaps"
4617
+ msgstr ""
4618
+
4619
  msgid "The WooCommerce lets you see the URLs where visitors and search engine crawlers run into 404 not found errors on your site. Turn on Redirections too to redirect the faulty URLs easily."
4620
  msgstr ""
4621
 
4676
  msgid "Remove WooCommerce generator tag from the source code."
4677
  msgstr ""
4678
 
4679
+ msgid "Remove Snippet Data"
4680
+ msgstr ""
4681
+
4682
+ msgid "Remove Snippet Data from WooCommerce Shop page."
4683
+ msgstr ""
4684
+
4685
  msgid "Module slug"
4686
  msgstr ""
4687
 
5372
  msgid "Add the SEO Meta Box for the term editor screen to customize SEO options for individual terms in this taxonomy."
5373
  msgstr ""
5374
 
 
 
 
5375
  #. translators: taxonomy name
5376
  msgid "Remove schema data from %s."
5377
  msgstr ""
rank-math.php CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
- * Version: 1.0.20
13
  * Plugin URI: https://s.rankmath.com/home
14
  * Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
15
  * Author: Rank Math
@@ -34,7 +34,7 @@ final class RankMath {
34
  *
35
  * @var string
36
  */
37
- public $version = '1.0.20';
38
 
39
  /**
40
  * Rank Math database version.
@@ -411,7 +411,9 @@ final class RankMath {
411
  $locale = apply_filters( 'plugin_locale', $locale, 'rank-math' );
412
 
413
  unload_textdomain( 'rank-math' );
414
- load_textdomain( 'rank-math', WP_LANG_DIR . '/rank-math/rank-math-' . $locale . '.mo' );
 
 
415
  load_plugin_textdomain( 'rank-math', false, rank_math()->plugin_dir() . '/languages/' );
416
 
417
  $this->container['json']->add( 'version', $this->version, 'rankMath' );
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
+ * Version: 1.0.21
13
  * Plugin URI: https://s.rankmath.com/home
14
  * Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
15
  * Author: Rank Math
34
  *
35
  * @var string
36
  */
37
+ public $version = '1.0.21';
38
 
39
  /**
40
  * Rank Math database version.
411
  $locale = apply_filters( 'plugin_locale', $locale, 'rank-math' );
412
 
413
  unload_textdomain( 'rank-math' );
414
+ if ( false === load_textdomain( 'rank-math', WP_LANG_DIR . '/plugins/seo-by-rank-math-' . $locale . '.mo' ) ) {
415
+ load_textdomain( 'rank-math', WP_LANG_DIR . '/seo-by-rank-math/seo-by-rank-math-' . $locale . '.mo' );
416
+ }
417
  load_plugin_textdomain( 'rank-math', false, rank_math()->plugin_dir() . '/languages/' );
418
 
419
  $this->container['json']->add( 'version', $this->version, 'rankMath' );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: seo, sitemap, google search console, schema.org, redirection
5
  Tested up to: 5.1
6
  Requires at least: 4.6.0
7
  Requires PHP: 5.6
8
- Stable tag: 1.0.20
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
@@ -448,8 +448,33 @@ We look forward to helping you.
448
 
449
  == Changelog ==
450
 
451
- = 1.0.20 [Mar 06, 2019] =
452
- * Enhanced the Role Manager to disallow any permissions by default to lesser used roles like contributor etc.
453
- * Fixed a fatal error happening when users were upgrading from a version lower than 1.0.18 to the latest version
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
 
455
  Full changelog can be found here - **[Rank Math SEO changelog](https://rankmath.com/changelog)**
5
  Tested up to: 5.1
6
  Requires at least: 4.6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 1.0.21
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
448
 
449
  == Changelog ==
450
 
451
+ = 1.0.21 [Mar 19, 2019] =
452
+ * Added Google Search Console Domain Properties support. It replaces sc-domain: with Domain Property: in the sites' dropdown, disables the Sitemaps feature in the GSC module for domain properties (as Google does not have an API for it yet), and adds a note to inform the user about the same
453
+ * Added search form in the GSC dropdown
454
+ * Added a filter to change the number of pasted URLs in the Redirections source (http://i.mythemeshop.com/f4sWd1)
455
+ * Setup Wizard refactored for the speed and efficiency
456
+ * Integrated 404 Monitor Plugin & Rank Math plugin tightly
457
+ * Added missing text in the translation(.pot) file
458
+ * Updated help text for the WooCommerce Tab in the plugin
459
+ * Updated Focus Keyword input placeholder text to Rank Math
460
+ * Fixed WooCommerce product Schema errors
461
+ * Fixed text domain issue for WordPress.org translations
462
+ * Fixed bbPress Sitemaps not working bug
463
+ * Fixed `Sorry, you are not authorized to perform this action` for the multi-site websites
464
+ * Fixed an issue with the redirections where the folder name was automatically added in the Destination URL when someone changed the permalinks
465
+ * Fixed a fatal error occurring on eCommerce websites where WooCommerce was not installed
466
+ * Fixed Robots.txt editor not picking up the values. It was checking the robots_txt option in the wrong section
467
+ * Fixed a bug where the title for the links was getting automatically prefilled as the title for all the other links when edited
468
+ * Fixed a compatibility issue with the AMP plugin
469
+ * Fixed primary keyword detection in the SEO analysis tests. It works as it should have been.
470
+ * Fixed an issue in the Sitemaps where private taxonomies were accessible through direct URLs
471
+ * Fixed the OG/image filter. It works perfectly now
472
+ * Fixed Video Snippet error caused by entering incorrect values
473
+ * Fixed an error with WooCommerce's preview URLs where complete URLs were showing even after enabling the Strip Product Category option
474
+ * Fixed small styling issues in the plugin so it looks better
475
+ * Removed unneeded code
476
+ * Improved backup 'Restore/delete' button style for the Russian language
477
+ * Improved the speed and space usage by removing the custom image sizes code
478
+ * Improved the overall code quality for the upcoming additions coming to the plugin
479
 
480
  Full changelog can be found here - **[Rank Math SEO changelog](https://rankmath.com/changelog)**
uninstall.php CHANGED
File without changes
vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php CHANGED
File without changes
vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php CHANGED
File without changes
vendor/a5hleyrich/wp-background-processing/license.txt CHANGED
File without changes
vendor/a5hleyrich/wp-background-processing/wp-background-processing.php CHANGED
File without changes
vendor/autoload.php CHANGED
File without changes
vendor/cmb2/cmb2/CHANGELOG.md CHANGED
File without changes
vendor/cmb2/cmb2/CONTRIBUTING.md CHANGED
File without changes
vendor/cmb2/cmb2/apigen/apigen.neon CHANGED
File without changes
vendor/cmb2/cmb2/apigen/hook-docs.php CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/LICENSE CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/404.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/@elementlist.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/@layout.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/annotation-group.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/class.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/combined.js.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/config.neon CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/constant.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/elementlist.js.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/function.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.autocomplete.js CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.cookie.js CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.min.js CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.sortElements.js CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/jquery.sprintf.js CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/js/main.js CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/namespace.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/opensearch.xml.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/overview.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/package.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/bootstrap.min.css CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/collapsed.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/inherit.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/resize.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/sort.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/style.css CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-cleaner.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-hasnext.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-last.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-vertical.png CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/robots.txt.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/sitemap.xml.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/source.latte CHANGED
File without changes
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/tree.latte CHANGED
File without changes
vendor/cmb2/cmb2/bootstrap.php CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-display-rtl.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-display-rtl.min.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-display.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-display.css.map CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-display.min.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-front-rtl.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-front-rtl.min.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-front.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-front.css.map CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-front.min.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-rtl.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2-rtl.min.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2.css CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2.css.map CHANGED
File without changes
vendor/cmb2/cmb2/css/cmb2.min.css CHANGED
File without changes
vendor/cmb2/cmb2/css/index.php CHANGED
File without changes
vendor/cmb2/cmb2/example-functions.php CHANGED
File without changes
vendor/cmb2/cmb2/images/ico-delete.png CHANGED
File without changes
vendor/cmb2/cmb2/images/index.php CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png CHANGED
File without changes
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Ajax.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Boxes.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Field.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Field_Display.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Hookup_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_JS.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Options.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Sanitize.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Show_Filters.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Types.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_Utils.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/CMB2_hookup.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/helper-functions.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/index.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/shim/WP_REST_Controller.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Checkbox.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_File.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_File_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_File_List.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Multicheck.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Oembed.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Picker_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Radio.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Select.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php CHANGED
File without changes
vendor/cmb2/cmb2/includes/types/CMB2_Type_Wysiwyg.php CHANGED
File without changes
vendor/cmb2/cmb2/index.php CHANGED
File without changes
vendor/cmb2/cmb2/init.php CHANGED
File without changes
vendor/cmb2/cmb2/js/cmb2-wysiwyg.js CHANGED
File without changes
vendor/cmb2/cmb2/js/cmb2.js CHANGED
File without changes
vendor/cmb2/cmb2/js/cmb2.min.js CHANGED
File without changes
vendor/cmb2/cmb2/js/index.php CHANGED
File without changes
vendor/cmb2/cmb2/js/jquery-ui-timepicker-addon.min.js CHANGED
File without changes
vendor/cmb2/cmb2/js/wp-color-picker-alpha.js CHANGED
File without changes
vendor/cmb2/cmb2/js/wp-color-picker-alpha.min.js CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ach.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ach.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-af.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-af.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-an.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-an.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ar.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ar.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ary.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ary.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-as.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-as.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-az.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-az.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-be.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-be.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bg.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bg.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bg_BG.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bg_BG.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bn_BD.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bn_BD.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-br.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-br.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bs.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bs.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bs_BA.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-bs_BA.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ca.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ca.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-co.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-co.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-cs_CZ.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-cs_CZ.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-cy.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-cy.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-da_DK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-da_DK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-de_AT.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-de_AT.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-de_CH.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-de_CH.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-de_DE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-de_DE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-dv.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-dv.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-el.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-el.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en@pirate.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en@pirate.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en_AU.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en_AU.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en_CA.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en_CA.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en_GB.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-en_GB.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-eo.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-eo.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_AR.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_AR.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_CL.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_CL.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_CO.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_CO.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_ES.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_ES.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_MX.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_MX.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_PE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_PE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_VE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-es_VE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-et.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-et.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-eu.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-eu.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fa.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fa.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fa_IR.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fa_IR.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fi.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fi.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fo.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fo.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fr_BE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fr_BE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fr_CA.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fr_CA.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fr_FR.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fr_FR.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fy.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-fy.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ga.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ga.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-gd.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-gd.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-gl_ES.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-gl_ES.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-gu_IN.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-gu_IN.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-he_IL.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-he_IL.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hi_IN.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hi_IN.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hr.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hr.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hu_HU.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hu_HU.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hy.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-hy.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-id_ID.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-id_ID.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-is_IS.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-is_IS.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-it_IT.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-it_IT.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ja.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ja.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-jv.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-jv.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ka.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ka.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ka_GE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ka_GE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-kk.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-kk.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-km.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-km.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-kn.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-kn.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ko_KR.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ko_KR.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ku.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ku.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ky.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ky.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-lo.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-lo.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-lt_LT.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-lt_LT.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-lv.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-lv.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mg.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mg.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mk_MK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mk_MK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mn.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mn.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mr.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-mr.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ms_MY.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ms_MY.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-my_MM.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-my_MM.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nb_NO.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nb_NO.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ne_NP.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ne_NP.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nl_BE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nl_BE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nl_NL.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nl_NL.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nn_NO.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-nn_NO.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-oc.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-oc.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-os.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-os.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pap.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pap.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pl_PL.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pl_PL.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ps.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ps.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pt_BR.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pt_BR.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pt_PT.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-pt_PT.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ro_RO.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ro_RO.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ru_RU.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ru_RU.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sa.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sa.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sah.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sah.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-si_LK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-si_LK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sk_SK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sk_SK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sl_SI.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sl_SI.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-so.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-so.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sq.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sq.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sr_RS.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sr_RS.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-su.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-su.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sv_SE.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sv_SE.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sw.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-sw.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ta_IN.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ta_IN.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ta_LK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ta_LK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-te.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-te.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tg.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tg.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-th.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-th.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tk_TM.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tk_TM.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tl.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tl.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tr_TR.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tr_TR.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tzm.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-tzm.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ug.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ug.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-uk.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-uk.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ur.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ur.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ur_PK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-ur_PK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-uz.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-uz.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-vi.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-vi.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-zh_CN.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-zh_CN.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-zh_HK.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-zh_HK.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-zh_TW.mo CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2-zh_TW.po CHANGED
File without changes
vendor/cmb2/cmb2/languages/cmb2.pot CHANGED
File without changes
vendor/cmb2/cmb2/readme.txt CHANGED
File without changes
vendor/composer/ClassLoader.php CHANGED
File without changes
vendor/composer/LICENSE CHANGED
File without changes
vendor/composer/autoload_classmap.php CHANGED
@@ -288,6 +288,17 @@ return array(
288
  'RankMath\\Traits\\Wizard' => $baseDir . '/includes/traits/class-wizard.php',
289
  'RankMath\\Updates' => $baseDir . '/includes/class-updates.php',
290
  'RankMath\\User' => $baseDir . '/includes/class-user.php',
 
 
 
 
 
 
 
 
 
 
 
291
  'RankMath\\WooCommerce\\Admin' => $baseDir . '/includes/modules/woocommerce/class-admin.php',
292
  'RankMath\\WooCommerce\\WooCommerce' => $baseDir . '/includes/modules/woocommerce/class-woocommerce.php',
293
  'Rollbar\\Config' => $vendorDir . '/rollbar/rollbar/src/Config.php',
288
  'RankMath\\Traits\\Wizard' => $baseDir . '/includes/traits/class-wizard.php',
289
  'RankMath\\Updates' => $baseDir . '/includes/class-updates.php',
290
  'RankMath\\User' => $baseDir . '/includes/class-user.php',
291
+ 'RankMath\\Wizard\\Compatibility' => $baseDir . '/includes/admin/wizard/class-compatibility.php',
292
+ 'RankMath\\Wizard\\Import' => $baseDir . '/includes/admin/wizard/class-import.php',
293
+ 'RankMath\\Wizard\\Misc' => $baseDir . '/includes/admin/wizard/class-misc.php',
294
+ 'RankMath\\Wizard\\Monitor_Redirection' => $baseDir . '/includes/admin/wizard/class-monitor-redirection.php',
295
+ 'RankMath\\Wizard\\Optimization' => $baseDir . '/includes/admin/wizard/class-optimization.php',
296
+ 'RankMath\\Wizard\\Ready' => $baseDir . '/includes/admin/wizard/class-ready.php',
297
+ 'RankMath\\Wizard\\Role' => $baseDir . '/includes/admin/wizard/class-role.php',
298
+ 'RankMath\\Wizard\\Search_Console' => $baseDir . '/includes/admin/wizard/class-search-console.php',
299
+ 'RankMath\\Wizard\\Sitemap' => $baseDir . '/includes/admin/wizard/class-sitemap.php',
300
+ 'RankMath\\Wizard\\Wizard_Step' => $baseDir . '/includes/admin/wizard/interface-wizard-step.php',
301
+ 'RankMath\\Wizard\\Your_Site' => $baseDir . '/includes/admin/wizard/class-your-site.php',
302
  'RankMath\\WooCommerce\\Admin' => $baseDir . '/includes/modules/woocommerce/class-admin.php',
303
  'RankMath\\WooCommerce\\WooCommerce' => $baseDir . '/includes/modules/woocommerce/class-woocommerce.php',
304
  'Rollbar\\Config' => $vendorDir . '/rollbar/rollbar/src/Config.php',
vendor/composer/autoload_files.php CHANGED
File without changes
vendor/composer/autoload_namespaces.php CHANGED
File without changes
vendor/composer/autoload_psr4.php CHANGED
File without changes
vendor/composer/autoload_real.php CHANGED
File without changes
vendor/composer/autoload_static.php CHANGED
@@ -334,6 +334,17 @@ class ComposerStaticInite0bd047aa5058f04568aa38dfc5ac000
334
  'RankMath\\Traits\\Wizard' => __DIR__ . '/../..' . '/includes/traits/class-wizard.php',
335
  'RankMath\\Updates' => __DIR__ . '/../..' . '/includes/class-updates.php',
336
  'RankMath\\User' => __DIR__ . '/../..' . '/includes/class-user.php',
 
 
 
 
 
 
 
 
 
 
 
337
  'RankMath\\WooCommerce\\Admin' => __DIR__ . '/../..' . '/includes/modules/woocommerce/class-admin.php',
338
  'RankMath\\WooCommerce\\WooCommerce' => __DIR__ . '/../..' . '/includes/modules/woocommerce/class-woocommerce.php',
339
  'Rollbar\\Config' => __DIR__ . '/..' . '/rollbar/rollbar/src/Config.php',
334
  'RankMath\\Traits\\Wizard' => __DIR__ . '/../..' . '/includes/traits/class-wizard.php',
335
  'RankMath\\Updates' => __DIR__ . '/../..' . '/includes/class-updates.php',
336
  'RankMath\\User' => __DIR__ . '/../..' . '/includes/class-user.php',
337
+ 'RankMath\\Wizard\\Compatibility' => __DIR__ . '/../..' . '/includes/admin/wizard/class-compatibility.php',
338
+ 'RankMath\\Wizard\\Import' => __DIR__ . '/../..' . '/includes/admin/wizard/class-import.php',
339
+ 'RankMath\\Wizard\\Misc' => __DIR__ . '/../..' . '/includes/admin/wizard/class-misc.php',
340
+ 'RankMath\\Wizard\\Monitor_Redirection' => __DIR__ . '/../..' . '/includes/admin/wizard/class-monitor-redirection.php',
341
+ 'RankMath\\Wizard\\Optimization' => __DIR__ . '/../..' . '/includes/admin/wizard/class-optimization.php',
342
+ 'RankMath\\Wizard\\Ready' => __DIR__ . '/../..' . '/includes/admin/wizard/class-ready.php',
343
+ 'RankMath\\Wizard\\Role' => __DIR__ . '/../..' . '/includes/admin/wizard/class-role.php',
344
+ 'RankMath\\Wizard\\Search_Console' => __DIR__ . '/../..' . '/includes/admin/wizard/class-search-console.php',
345
+ 'RankMath\\Wizard\\Sitemap' => __DIR__ . '/../..' . '/includes/admin/wizard/class-sitemap.php',
346
+ 'RankMath\\Wizard\\Wizard_Step' => __DIR__ . '/../..' . '/includes/admin/wizard/interface-wizard-step.php',
347
+ 'RankMath\\Wizard\\Your_Site' => __DIR__ . '/../..' . '/includes/admin/wizard/class-your-site.php',
348
  'RankMath\\WooCommerce\\Admin' => __DIR__ . '/../..' . '/includes/modules/woocommerce/class-admin.php',
349
  'RankMath\\WooCommerce\\WooCommerce' => __DIR__ . '/../..' . '/includes/modules/woocommerce/class-woocommerce.php',
350
  'Rollbar\\Config' => __DIR__ . '/..' . '/rollbar/rollbar/src/Config.php',
vendor/composer/installed.json CHANGED
File without changes
vendor/monolog/monolog/.php_cs CHANGED
File without changes
vendor/monolog/monolog/CHANGELOG.md CHANGED
File without changes
vendor/monolog/monolog/LICENSE CHANGED
File without changes
vendor/monolog/monolog/doc/01-usage.md CHANGED
File without changes
vendor/monolog/monolog/doc/02-handlers-formatters-processors.md CHANGED
File without changes
vendor/monolog/monolog/doc/03-utilities.md CHANGED
File without changes
vendor/monolog/monolog/doc/04-extending.md CHANGED
File without changes
vendor/monolog/monolog/doc/sockets.md CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/ErrorHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Logger.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Registry.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/ResettableInterface.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/SignalHandler.php CHANGED
File without changes
vendor/monolog/monolog/src/Monolog/Utils.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/LICENSE.txt CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/admin/class-list-table.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/admin/class-page.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/admin/index.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/class-json-manager.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/class-notification-center.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/class-notification.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-database.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-escape.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-groupby.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-orderby.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-query-builder.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-select.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-translate.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/class-where.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/database/index.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-arr.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-attachment.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-conditional.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-db.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-html.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-str.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-url.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-util.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/class-wordpress.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/helpers/index.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/src/index.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/autoload.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/ClassLoader.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/LICENSE CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_classmap.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_namespaces.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_psr4.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_real.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/vendor/composer/autoload_static.php CHANGED
File without changes
vendor/mythemeshop/wordpress-helpers/wordpress-helpers.php CHANGED
File without changes
vendor/psr/log/LICENSE CHANGED
File without changes
vendor/psr/log/Psr/Log/AbstractLogger.php CHANGED
File without changes
vendor/psr/log/Psr/Log/InvalidArgumentException.php CHANGED
File without changes
vendor/psr/log/Psr/Log/LogLevel.php CHANGED
File without changes
vendor/psr/log/Psr/Log/LoggerAwareInterface.php CHANGED
File without changes
vendor/psr/log/Psr/Log/LoggerAwareTrait.php CHANGED
File without changes
vendor/psr/log/Psr/Log/LoggerInterface.php CHANGED
File without changes
vendor/psr/log/Psr/Log/LoggerTrait.php CHANGED
File without changes
vendor/psr/log/Psr/Log/NullLogger.php CHANGED
File without changes
vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php CHANGED
File without changes
vendor/psr/log/Psr/Log/Test/TestLogger.php CHANGED
File without changes
vendor/rollbar/rollbar/CHANGELOG.md CHANGED
File without changes
vendor/rollbar/rollbar/LICENSE CHANGED
File without changes
vendor/rollbar/rollbar/POST_FORMAT.md CHANGED
File without changes
vendor/rollbar/rollbar/THANKS.md CHANGED
File without changes
vendor/rollbar/rollbar/TODO.md CHANGED
File without changes
vendor/rollbar/rollbar/data/rollbar.snippet.js CHANGED
File without changes
vendor/rollbar/rollbar/src/Config.php CHANGED
File without changes
vendor/rollbar/rollbar/src/DataBuilder.php CHANGED
File without changes
vendor/rollbar/rollbar/src/DataBuilderInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Defaults.php CHANGED
File without changes
vendor/rollbar/rollbar/src/ErrorWrapper.php CHANGED
File without changes
vendor/rollbar/rollbar/src/FilterInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Handlers/AbstractHandler.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Handlers/ErrorHandler.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Handlers/ExceptionHandler.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Handlers/FatalHandler.php CHANGED
File without changes
vendor/rollbar/rollbar/src/LevelFactory.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Monolog/Handler/RollbarHandler.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Body.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/ContentInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Context.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Data.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/EncodedPayload.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/ExceptionInfo.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Frame.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Level.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Message.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Notifier.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Payload.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Person.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Request.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Server.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/Trace.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Payload/TraceChain.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Response.php CHANGED
File without changes
vendor/rollbar/rollbar/src/ResponseHandlerInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Rollbar.php CHANGED
File without changes
vendor/rollbar/rollbar/src/RollbarJsHelper.php CHANGED
File without changes
vendor/rollbar/rollbar/src/RollbarLogger.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Scrubber.php CHANGED
File without changes
vendor/rollbar/rollbar/src/ScrubberInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Senders/AgentSender.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Senders/CurlSender.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Senders/FluentSender.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Senders/SenderInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/TransformerInterface.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/AbstractStrategy.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/FramesStrategy.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/IStrategy.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/MinBodyStrategy.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/RawStrategy.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/StringsStrategy.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Truncation/Truncation.php CHANGED
File without changes
vendor/rollbar/rollbar/src/Utilities.php CHANGED
File without changes
wpml-config.xml CHANGED
File without changes