From 0f545c2dd0a6bea175bb1a1995219399783ba13b Mon Sep 17 00:00:00 2001 From: Ken Gagne Date: Mon, 11 Sep 2023 11:23:08 -0400 Subject: [PATCH 1/2] Adds ads.txt manager to plugin manager Adds 10up's [Ads.txt Manager](https://wordpress.org/plugins/ads-txt/) plugin to Newspack's list of approved/recommended/default plugins. See 1204015893379290-as-1204159745402806. --- includes/class-plugin-manager.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/class-plugin-manager.php b/includes/class-plugin-manager.php index 7e6353acd4..ab6a4f7670 100644 --- a/includes/class-plugin-manager.php +++ b/includes/class-plugin-manager.php @@ -292,6 +292,15 @@ public static function get_managed_plugins() { 'PluginURI' => esc_url( 'https://wordpress.org/plugins/ad-refresh-control/' ), 'Download' => 'wporg', ], + 'ads-txt' => [ + 'Name' => esc_html__( 'Ads.txt Manager', 'newspack' ), + 'Description' => esc_html__( 'Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, just like any other content asset.', 'newspack' ), + 'Author' => esc_html__( '10up', 'newspack' ), + 'PluginURI' => esc_url( 'https://wordpress.org/plugins/ads-txt/' ), + 'AuthorURI' => esc_url( 'https://10up.com/' ), + 'Download' => 'wporg', + 'EditPath' => 'options-general.php?page=adstxt-settings', +], 'publisher-media-kit' => [ 'Name' => esc_html__( 'Publisher Media Kit', 'newspack' ), 'Description' => esc_html__( 'Quick and easy option for small to medium sized publishers to digitize their media kit.', 'newspack' ), From 98dc39818b888fe986b271e5ac5586996041f48c Mon Sep 17 00:00:00 2001 From: Ken Gagne Date: Mon, 11 Sep 2023 15:16:00 -0400 Subject: [PATCH 2/2] Fixing spacing Darn linter --- includes/class-plugin-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-plugin-manager.php b/includes/class-plugin-manager.php index ab6a4f7670..e5422fff98 100644 --- a/includes/class-plugin-manager.php +++ b/includes/class-plugin-manager.php @@ -292,7 +292,7 @@ public static function get_managed_plugins() { 'PluginURI' => esc_url( 'https://wordpress.org/plugins/ad-refresh-control/' ), 'Download' => 'wporg', ], - 'ads-txt' => [ + 'ads-txt' => [ 'Name' => esc_html__( 'Ads.txt Manager', 'newspack' ), 'Description' => esc_html__( 'Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, just like any other content asset.', 'newspack' ), 'Author' => esc_html__( '10up', 'newspack' ), @@ -300,7 +300,7 @@ public static function get_managed_plugins() { 'AuthorURI' => esc_url( 'https://10up.com/' ), 'Download' => 'wporg', 'EditPath' => 'options-general.php?page=adstxt-settings', -], + ], 'publisher-media-kit' => [ 'Name' => esc_html__( 'Publisher Media Kit', 'newspack' ), 'Description' => esc_html__( 'Quick and easy option for small to medium sized publishers to digitize their media kit.', 'newspack' ),