Version Description
-
Added: support for the
INVENTORYPARTNERDOMAIN
variable (props @dkotter, @faisal-alvi) - Added: end to end tests with Cypress (props @cadic, @dinhtungdu, @darylldoyle, @Sidsector9)
- Changed: update dealerdirect/phpcodesniffer-composer-installer from 0.5.x to 0.7.1 (props @evokelektrique, @peterwilsoncc)
- Changed: update minimist from 1.2.5 to 1.2.6
- Changed: bump Wordpress tested up to to 6.0 (props @mohitwp, @cadic, @peterwilsoncc via #85, #90)
- Changed: automated testing code compatibility against PHP versions from 5.3 to 8.1 (props @cadic)
- Fixed: allow admins to access revisions (props @PypWalters, @dinhtungdu)
- Fixed: coding standards violations (props @peterwilsoncc)
Download this release
Release Info
Developer | 10up |
Plugin | Ads.txt Manager |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.4.0
- ads-txt.php +2 -2
- inc/admin.php +1 -1
- inc/post-type.php +1 -1
- inc/save.php +2 -2
- readme.txt +21 -16
ads-txt.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Ads.txt Manager
|
4 |
* Description: Create, manage, and validate your Ads.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+.
|
5 |
-
* Version: 1.
|
6 |
* Author: 10up
|
7 |
* Author URI: https://10up.com
|
8 |
* License: GPLv2 or later
|
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
|
18 |
-
define( 'ADS_TXT_MANAGER_VERSION', '1.
|
19 |
define( 'ADS_TXT_MANAGE_CAPABILITY', 'edit_ads_txt' );
|
20 |
define( 'ADS_TXT_MANAGER_POST_OPTION', 'adstxt_post' );
|
21 |
define( 'APP_ADS_TXT_MANAGER_POST_OPTION', 'app_adstxt_post' );
|
2 |
/**
|
3 |
* Plugin Name: Ads.txt Manager
|
4 |
* Description: Create, manage, and validate your Ads.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+.
|
5 |
+
* Version: 1.4.0
|
6 |
* Author: 10up
|
7 |
* Author URI: https://10up.com
|
8 |
* License: GPLv2 or later
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
|
18 |
+
define( 'ADS_TXT_MANAGER_VERSION', '1.4.0' );
|
19 |
define( 'ADS_TXT_MANAGE_CAPABILITY', 'edit_ads_txt' );
|
20 |
define( 'ADS_TXT_MANAGER_POST_OPTION', 'adstxt_post' );
|
21 |
define( 'APP_ADS_TXT_MANAGER_POST_OPTION', 'app_adstxt_post' );
|
inc/admin.php
CHANGED
@@ -235,7 +235,7 @@ function app_adstxt_settings_screen() {
|
|
235 |
function settings_screen( $post_id, $strings, $args ) {
|
236 |
$post = false;
|
237 |
$content = false;
|
238 |
-
$errors =
|
239 |
$revision_count = 0;
|
240 |
$last_revision_id = false;
|
241 |
|
235 |
function settings_screen( $post_id, $strings, $args ) {
|
236 |
$post = false;
|
237 |
$content = false;
|
238 |
+
$errors = array();
|
239 |
$revision_count = 0;
|
240 |
$last_revision_id = false;
|
241 |
|
inc/post-type.php
CHANGED
@@ -28,7 +28,7 @@ function register() {
|
|
28 |
'delete_posts' => 'customize',
|
29 |
'delete_private_posts' => 'customize',
|
30 |
'delete_published_posts' => 'customize',
|
31 |
-
'edit_others_posts' => '
|
32 |
'edit_post' => 'customize',
|
33 |
'edit_posts' => 'customize',
|
34 |
'edit_private_posts' => 'customize',
|
28 |
'delete_posts' => 'customize',
|
29 |
'delete_private_posts' => 'customize',
|
30 |
'delete_published_posts' => 'customize',
|
31 |
+
'edit_others_posts' => 'edit_others_posts',
|
32 |
'edit_post' => 'customize',
|
33 |
'edit_posts' => 'customize',
|
34 |
'edit_private_posts' => 'customize',
|
inc/save.php
CHANGED
@@ -104,8 +104,8 @@ function validate_line( $line, $line_number ) {
|
|
104 |
} elseif ( 0 === strpos( $line, '#' ) ) { // This is a full-line comment.
|
105 |
$sanitized = wp_strip_all_tags( $line );
|
106 |
} elseif ( 1 < strpos( $line, '=' ) ) { // This is a variable declaration.
|
107 |
-
// The spec currently supports CONTACT and SUBDOMAIN.
|
108 |
-
if ( ! preg_match( '/^(CONTACT|SUBDOMAIN)=/i', $line ) ) {
|
109 |
$errors[] = array(
|
110 |
'line' => $line_number,
|
111 |
'type' => 'invalid_variable',
|
104 |
} elseif ( 0 === strpos( $line, '#' ) ) { // This is a full-line comment.
|
105 |
$sanitized = wp_strip_all_tags( $line );
|
106 |
} elseif ( 1 < strpos( $line, '=' ) ) { // This is a variable declaration.
|
107 |
+
// The spec currently supports CONTACT, INVENTORYPARTNERDOMAIN and SUBDOMAIN.
|
108 |
+
if ( ! preg_match( '/^(CONTACT|SUBDOMAIN|INVENTORYPARTNERDOMAIN)=/i', $line ) ) {
|
109 |
$errors[] = array(
|
110 |
'line' => $line_number,
|
111 |
'type' => 'invalid_variable',
|
readme.txt
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
=== Ads.txt Manager ===
|
2 |
-
Contributors:
|
3 |
-
Author URI:
|
4 |
-
Plugin URI:
|
5 |
-
Tags: ads.txt, ads, ad manager, advertising, publishing, publishers
|
6 |
Requires at least: 4.9
|
7 |
-
Tested up to:
|
8 |
-
Requires PHP:
|
9 |
-
Stable tag:
|
10 |
-
License:
|
11 |
-
License URI:
|
12 |
-
Text Domain:
|
13 |
|
14 |
Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+.
|
15 |
|
@@ -55,6 +55,16 @@ You will need to rename or remove the existing (app-)ads.txt file (keeping a cop
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
= 1.3.0 =
|
59 |
* **Added:** Support for app-ads.txt filetype (props [@helen](https://profiles.wordpress.org/helen/), [@westi](https://profiles.wordpress.org/westi/), [@p0mmy](https://github.com/p0mmy))
|
60 |
* **Removed:** Stop attempting to show an error notice about an existing `ads.txt` file due to too many false positives. We will bring this back later in a better way.
|
@@ -72,9 +82,4 @@ You will need to rename or remove the existing (app-)ads.txt file (keeping a cop
|
|
72 |
* **Fixed:** Early escaping (props [@tjnowell](https://profiles.wordpress.org/tjnowell/))
|
73 |
* **Fixed:** PHPCS issues and added PHPCS scanning (props [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/))
|
74 |
|
75 |
-
|
76 |
-
* Better error message formatting (wraps values in `<code>` tags for better readability)
|
77 |
-
* WordPress.com VIP-approved escaping
|
78 |
-
|
79 |
-
= 1.0 =
|
80 |
-
* Initial plugin release
|
1 |
=== Ads.txt Manager ===
|
2 |
+
Contributors: 10up, helen, adamsilverstein, jakemgold, peterwilsoncc
|
3 |
+
Author URI: https://10up.com
|
4 |
+
Plugin URI: https://github.com/10up/ads-txt
|
5 |
+
Tags: ads.txt, app-ads.txt, ads, ad manager, advertising, publishing, publishers
|
6 |
Requires at least: 4.9
|
7 |
+
Tested up to: 6.0
|
8 |
+
Requires PHP: 5.3
|
9 |
+
Stable tag: 1.4.0
|
10 |
+
License: GPLv2 or later
|
11 |
+
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
+
Text Domain: ads-txt
|
13 |
|
14 |
Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+.
|
15 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.4.0 =
|
59 |
+
* **Added:** support for the `INVENTORYPARTNERDOMAIN` variable (props [@dkotter](https://github.com/dkotter), [@faisal-alvi](https://github.com/faisal-alvi))
|
60 |
+
* **Added:** end to end tests with Cypress (props [@cadic](https://github.com/cadic), [@dinhtungdu](https://github.com/dinhtungdu), [@darylldoyle](https://github.com/darylldoyle), [@Sidsector9](https://github.com/Sidsector9))
|
61 |
+
* **Changed:** update dealerdirect/phpcodesniffer-composer-installer from 0.5.x to 0.7.1 (props [@evokelektrique](http://github.com/evokelektrique), [@peterwilsoncc](http://github.com/peterwilsoncc))
|
62 |
+
* **Changed:** update minimist from 1.2.5 to 1.2.6
|
63 |
+
* **Changed:** bump Wordpress tested up to to 6.0 (props [@mohitwp](https://github.com/mohitwp), [@cadic](https://github.com/cadic), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#85](https://github.com/10up/ads-txt/pull/85), [#90](https://github.com/10up/ads-txt/pull/90))
|
64 |
+
* **Changed:** automated testing code compatibility against PHP versions from 5.3 to 8.1 (props [@cadic](https://github.com/cadic))
|
65 |
+
* **Fixed:** allow admins to access revisions (props [@PypWalters](https://github.com/PypWalters), [@dinhtungdu](https://github.com/dinhtungdu))
|
66 |
+
* **Fixed:** coding standards violations (props [@peterwilsoncc](http://github.com/peterwilsoncc))
|
67 |
+
|
68 |
= 1.3.0 =
|
69 |
* **Added:** Support for app-ads.txt filetype (props [@helen](https://profiles.wordpress.org/helen/), [@westi](https://profiles.wordpress.org/westi/), [@p0mmy](https://github.com/p0mmy))
|
70 |
* **Removed:** Stop attempting to show an error notice about an existing `ads.txt` file due to too many false positives. We will bring this back later in a better way.
|
82 |
* **Fixed:** Early escaping (props [@tjnowell](https://profiles.wordpress.org/tjnowell/))
|
83 |
* **Fixed:** PHPCS issues and added PHPCS scanning (props [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/))
|
84 |
|
85 |
+
Further changelog entries can be found in the [CHANGELOG.md](https://github.com/10up/ads-txt/blob/trunk/CHANGELOG.md) file.
|
|
|
|
|
|
|
|
|
|