From 5e87528434f9ac156be57dcf32a4f736654a7cca Mon Sep 17 00:00:00 2001 From: Arnaud Broes Date: Mon, 30 Sep 2024 20:45:40 +0200 Subject: [PATCH] 4.7.2 Release --- all_in_one_seo_pack.php | 4 +- app/AIOSEO.php | 1 + app/AIOSEOAbstract.php | 9 + app/Common/Admin/Dashboard.php | 32 +- app/Common/Admin/SiteHealth.php | 26 +- app/Common/Admin/Usage.php | 2 +- app/Common/Api/Api.php | 7 +- app/Common/Api/EmailSummary.php | 47 + app/Common/Api/Settings.php | 444 +- app/Common/EmailReports/EmailReports.php | 43 + app/Common/EmailReports/Mail.php | 30 + app/Common/EmailReports/Summary/Content.php | 662 ++ app/Common/EmailReports/Summary/Summary.php | 327 + app/Common/ImportExport/YoastSeo/PostMeta.php | 4 +- app/Common/Main/Filters.php | 7 +- app/Common/Models/CrawlCleanupBlockedArg.php | 2 +- app/Common/Models/CrawlCleanupLog.php | 2 +- app/Common/Models/Model.php | 30 +- app/Common/Models/Post.php | 11 + app/Common/Options/Options.php | 43 +- .../SearchStatistics/SearchStatistics.php | 23 +- app/Common/Tools/SystemStatus.php | 4 +- app/Common/Traits/Helpers/DateTime.php | 30 +- app/Common/Traits/Helpers/Numbers.php | 37 + app/Common/Traits/Helpers/Strings.php | 33 + app/Common/Traits/Helpers/Vue.php | 52 +- app/Common/Traits/Helpers/Wp.php | 25 +- app/Common/Traits/Helpers/WpContext.php | 10 +- app/Common/Utils/Helpers.php | 59 +- app/Common/Views/report/summary.php | 1171 ++++ app/Lite/Main/Filters.php | 15 +- app/Lite/Options/Options.php | 17 + app/Lite/Views/taxonomy-upsell.php | 10 + languages/aioseo-lite.php | 5556 +++++++-------- languages/aioseo.pot | 6199 +++++++++-------- package-lock.json | 14 +- readme.txt | 48 +- src/react/link-format/package-lock.json | 94 +- src/vue/components/common/base/Input.vue | 6 + src/vue/components/common/core/PostColumn.vue | 6 +- .../components/common/svg/OutgoingMail.vue | 10 + src/vue/composables/HeadlineResult.js | 18 + src/vue/composables/SearchConsole.js | 38 + src/vue/composables/TruSeoHighlighter.js | 4 +- src/vue/composables/index.js | 25 + src/vue/mixins/AddonConditions.js | 48 + src/vue/mixins/Date.js | 15 + src/vue/mixins/GoogleSearchConsole.js | 55 + src/vue/mixins/HeadlineResult.js | 197 + src/vue/mixins/Image.js | 227 + src/vue/mixins/JsonValues.js | 21 + src/vue/mixins/License.js | 26 + src/vue/mixins/LicenseConditions.js | 24 + src/vue/mixins/MaxCounts.js | 16 + src/vue/mixins/MetaTag.js | 24 + src/vue/mixins/Network.js | 77 + src/vue/mixins/Notifications.js | 19 + src/vue/mixins/PostSocial.js | 43 + src/vue/mixins/PostTypes.js | 29 + src/vue/mixins/RequiresActivation.js | 30 + src/vue/mixins/RequiresUpdate.js | 30 + src/vue/mixins/SaveChanges.js | 56 + src/vue/mixins/ScrollAndHighlight.js | 76 + src/vue/mixins/SeoSiteScore.js | 24 + src/vue/mixins/Tags.js | 61 + src/vue/mixins/ToolsSettings.js | 123 + src/vue/mixins/TruSeoHighlighter.js | 673 ++ src/vue/mixins/TruSeoScore.js | 44 + src/vue/mixins/Url.js | 90 + src/vue/mixins/Wizard.js | 197 + src/vue/mixins/WpTable.js | 108 + src/vue/mixins/link-assistant/Common.js | 32 + src/vue/mixins/link-assistant/Links.js | 298 + src/vue/mixins/redirects/Redirect.js | 73 + src/vue/mixins/seo-revisions/SeoRevisions.js | 52 + .../views/partials/Advanced.vue | 1 - .../search-statistics/mixins/Statistic.js | 30 + .../pages/search-statistics/mixins/Table.js | 65 + .../views/dashboard/Index.vue | 10 +- .../views/keyword-rank-tracker/Index.vue | 14 +- .../views/keyword-rankings/Index.vue | 29 +- .../views/partials/KeywordsTable.vue | 18 +- .../views/partials/Statistic.vue | 2 +- .../pages/settings/mixins/AccessControl.js | 24 + .../pages/settings/mixins/WebmasterTools.js | 76 + src/vue/pages/settings/mixins/index.js | 8 + src/vue/pages/settings/views/Advanced.vue | 14 +- .../views/partials/Advanced/EmailSummary.vue | 446 ++ src/vue/pages/sitemaps/composables/index.js | 9 + .../tools/views/lite/CtaExportTaxonomies.vue | 91 + .../tools/views/partials/ExportContents.vue | 444 ++ .../tools/views/partials/ExportSettings.vue | 241 +- .../tools/views/partials/ImportAioseo.vue | 46 +- .../tools/views/partials/ImportExport.vue | 38 +- .../tools/views/partials/ImportOthers.vue | 1 - .../post-settings/views/mixins/Graphs.js | 106 + .../post-settings/views/mixins/Helpers.js | 59 + src/vue/stores/ToolsStore.js | 6 + src/vue/utils/formatting.js | 73 + src/vue/utils/links.js | 2 +- vendor/autoload.php | 20 +- vendor/composer/ClassLoader.php | 137 +- vendor/composer/InstalledVersions.php | 33 +- vendor/composer/LICENSE | 2 + vendor/composer/autoload_classmap.php | 2 +- vendor/composer/autoload_files.php | 2 +- vendor/composer/autoload_namespaces.php | 2 +- vendor/composer/autoload_psr4.php | 2 +- vendor/composer/autoload_real.php | 60 +- vendor/composer/autoload_static.php | 10 +- vendor/composer/installed.php | 28 +- vite.config.js | 1 + 112 files changed, 13971 insertions(+), 6206 deletions(-) create mode 100644 app/Common/Api/EmailSummary.php create mode 100644 app/Common/EmailReports/EmailReports.php create mode 100644 app/Common/EmailReports/Mail.php create mode 100644 app/Common/EmailReports/Summary/Content.php create mode 100644 app/Common/EmailReports/Summary/Summary.php create mode 100644 app/Common/Traits/Helpers/Numbers.php create mode 100644 app/Common/Views/report/summary.php create mode 100644 src/vue/components/common/svg/OutgoingMail.vue create mode 100644 src/vue/composables/HeadlineResult.js create mode 100644 src/vue/composables/SearchConsole.js create mode 100644 src/vue/composables/index.js create mode 100644 src/vue/mixins/AddonConditions.js create mode 100644 src/vue/mixins/Date.js create mode 100644 src/vue/mixins/GoogleSearchConsole.js create mode 100644 src/vue/mixins/HeadlineResult.js create mode 100644 src/vue/mixins/Image.js create mode 100644 src/vue/mixins/JsonValues.js create mode 100644 src/vue/mixins/License.js create mode 100644 src/vue/mixins/LicenseConditions.js create mode 100644 src/vue/mixins/MaxCounts.js create mode 100644 src/vue/mixins/MetaTag.js create mode 100644 src/vue/mixins/Network.js create mode 100644 src/vue/mixins/Notifications.js create mode 100644 src/vue/mixins/PostSocial.js create mode 100644 src/vue/mixins/PostTypes.js create mode 100644 src/vue/mixins/RequiresActivation.js create mode 100644 src/vue/mixins/RequiresUpdate.js create mode 100644 src/vue/mixins/SaveChanges.js create mode 100644 src/vue/mixins/ScrollAndHighlight.js create mode 100644 src/vue/mixins/SeoSiteScore.js create mode 100644 src/vue/mixins/Tags.js create mode 100644 src/vue/mixins/ToolsSettings.js create mode 100644 src/vue/mixins/TruSeoHighlighter.js create mode 100644 src/vue/mixins/TruSeoScore.js create mode 100644 src/vue/mixins/Url.js create mode 100644 src/vue/mixins/Wizard.js create mode 100644 src/vue/mixins/WpTable.js create mode 100644 src/vue/mixins/link-assistant/Common.js create mode 100644 src/vue/mixins/link-assistant/Links.js create mode 100644 src/vue/mixins/redirects/Redirect.js create mode 100644 src/vue/mixins/seo-revisions/SeoRevisions.js create mode 100644 src/vue/pages/search-statistics/mixins/Statistic.js create mode 100644 src/vue/pages/search-statistics/mixins/Table.js create mode 100644 src/vue/pages/settings/mixins/AccessControl.js create mode 100644 src/vue/pages/settings/mixins/WebmasterTools.js create mode 100644 src/vue/pages/settings/mixins/index.js create mode 100644 src/vue/pages/settings/views/partials/Advanced/EmailSummary.vue create mode 100644 src/vue/pages/sitemaps/composables/index.js create mode 100644 src/vue/pages/tools/views/lite/CtaExportTaxonomies.vue create mode 100644 src/vue/pages/tools/views/partials/ExportContents.vue create mode 100644 src/vue/standalone/post-settings/views/mixins/Graphs.js create mode 100644 src/vue/standalone/post-settings/views/mixins/Helpers.js diff --git a/all_in_one_seo_pack.php b/all_in_one_seo_pack.php index c571be219..ea5182cef 100644 --- a/all_in_one_seo_pack.php +++ b/all_in_one_seo_pack.php @@ -5,7 +5,7 @@ * Description: SEO for WordPress. Features like XML Sitemaps, SEO for custom post types, SEO for blogs, business sites, ecommerce sites, and much more. More than 100 million downloads since 2007. * Author: All in One SEO Team * Author URI: https://aioseo.com/ - * Version: 4.7.1.1 + * Version: 4.7.2 * Text Domain: all-in-one-seo-pack * Domain Path: /languages * License: GPL-3.0+ @@ -57,7 +57,7 @@ return; } -// We require WP 5.3+ for the whole plugin to work. +// We require WordPress 5.3+ for the whole plugin to work. global $wp_version; if ( version_compare( $wp_version, '5.3', '<' ) ) { add_action( 'admin_notices', 'aioseo_wordpress_notice' ); diff --git a/app/AIOSEO.php b/app/AIOSEO.php index e9a9e1aad..a68134ae2 100644 --- a/app/AIOSEO.php +++ b/app/AIOSEO.php @@ -322,6 +322,7 @@ public function load() { $this->ai = $this->pro ? new Pro\Ai\Ai() : null; $this->filters = $this->pro ? new Pro\Main\Filters() : new Lite\Main\Filters(); $this->crawlCleanup = new Common\QueryArgs\CrawlCleanup(); + $this->emailReports = new Common\EmailReports\EmailReports(); if ( ! wp_doing_ajax() && ! wp_doing_cron() ) { $this->rss = new Common\Rss(); diff --git a/app/AIOSEOAbstract.php b/app/AIOSEOAbstract.php index f45d02dfc..f0727a983 100644 --- a/app/AIOSEOAbstract.php +++ b/app/AIOSEOAbstract.php @@ -571,4 +571,13 @@ abstract class AIOSEOAbstract { * @var \AIOSEO\Plugin\Common\QueryArgs\CrawlCleanup */ public $crawlCleanup = null; + + /** + * EmailReports class instance. + * + * @since 4.7.2 + * + * @var null|\AIOSEO\Plugin\Common\EmailReports\EmailReports + */ + public $emailReports = null; } \ No newline at end of file diff --git a/app/Common/Admin/Dashboard.php b/app/Common/Admin/Dashboard.php index 8b280ee26..6d5f59d80 100644 --- a/app/Common/Admin/Dashboard.php +++ b/app/Common/Admin/Dashboard.php @@ -173,39 +173,15 @@ public function displayRssDashboardWidget() { return; } - include_once ABSPATH . WPINC . '/feed.php'; + $rssItems = aioseo()->helpers->fetchAioseoArticles(); + if ( ! $rssItems ) { + esc_html_e( 'Temporarily unable to load feed.', 'all-in-one-seo-pack' ); - $rssItems = aioseo()->core->networkCache->get( 'rss_feed' ); - if ( null === $rssItems ) { - $rss = fetch_feed( 'https://aioseo.com/feed/' ); - if ( is_wp_error( $rss ) ) { - esc_html_e( 'Temporarily unable to load feed.', 'all-in-one-seo-pack' ); - - return; - } - $rssItems = $rss->get_items( 0, 4 ); // Show four items. - $cached = []; - foreach ( $rssItems as $item ) { - $cached[] = [ - 'url' => $item->get_permalink(), - 'title' => aioseo()->helpers->decodeHtmlEntities( $item->get_title() ), - 'date' => $item->get_date( get_option( 'date_format' ) ), - 'content' => substr( wp_strip_all_tags( $item->get_content() ), 0, 128 ) . '...', - ]; - } - $rssItems = $cached; - - aioseo()->core->networkCache->update( 'rss_feed', $cached, 12 * HOUR_IN_SECONDS ); + return; } ?>