Skip to content

Commit 3af6c91

Browse files
committed
Merge branch 'develop' for 1.3.0
2 parents 95b6254 + d830208 commit 3af6c91

File tree

16 files changed

+284
-117
lines changed

16 files changed

+284
-117
lines changed

.gitattributes

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
/.gitattributes export-ignore
55
/.gitignore export-ignore
6-
/.travis.yml
76
/CHANGELOG.md export-ignore
87
/CODE_OF_CONDUCT.md export-ignore
9-
/composer.json
10-
/composer.lock
8+
/composer.json export-ignore
9+
/composer.lock export-ignore
1110
/CONTRIBUTING.md export-ignore
1211
/CREDITS.md export-ignore
1312
/LICENSE.md export-ignore

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Automated Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
push:
8+
branches:
9+
- develop
10+
jobs:
11+
test_php:
12+
name: Test PHP
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
php-versions: ['5.6', '7.3']
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
- name: Set PHP version
22+
uses: shivammathur/setup-php@v1
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
coverage: none
26+
- name: PHP version
27+
run: php --version
28+
- name: Install dependencies
29+
run: composer install --ignore-platform-reqs
30+
- name: Run PHPCS
31+
run: composer run lint

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.wordpress-org/screenshot-1.png

466 KB
Loading

.wordpress-org/screenshot-2.png

541 KB
Loading

.wordpress-org/screenshot-3.png

570 KB
Loading

CHANGELOG.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file, per [the Ke
44

55
## [Unreleased] - TBD
66

7+
## [1.3.0] - 2020-05-01
8+
### Added
9+
- Support for app-ads.txt filetype (props [@helen](https://github.com/helen), [@westi](https://github.com/westi), [@p0mmy](https://github.com/p0mmy) via [#60](https://github.com/10up/ads-txt/pull/60))
10+
11+
### Removed
12+
- 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. (see [#61](https://github.com/10up/ads-txt/issues/61))
13+
14+
### Changed
15+
- Bump WordPress version support to 5.4 (props [@tmoorewp](https://github.com/tmoorewp), [@jeffpaul](https://github.com/jeffpaul) via [#56](https://github.com/10up/ads-txt/pull/56))
16+
- Switched to using GitHub Actions instead of Travis for Continuous Integration (props [@helen](https://github.com/helen) via [#54](https://github.com/10up/ads-txt/pull/54))
17+
- Updated plugin screenshots and FAQs (props [@jeffpaul](https://github.com/jeffpaul), [@helen](https://github.com/helen) via [#58](https://github.com/10up/ads-txt/pull/58), [#55](https://github.com/10up/ads-txt/pull/55))
18+
19+
### Fixed
20+
- Update capability check when saving ads.txt (props [@ethanclevenger91](https://github.com/ethanclevenger91) via [#51](https://github.com/10up/ads-txt/pull/51))
21+
722
## [1.2.0] - 2019-11-26
823
### Added
924
- Make revisions accessible in the admin - now you can restore older versions of your ads.txt or view how it's changed over time (props [@adamsilverstein](https://github.com/adamsilverstein), [@helen](https://github.com/helen) via [#9](https://github.com/10up/ads-txt/pull/9))
@@ -18,15 +33,16 @@ All notable changes to this project will be documented in this file, per [the Ke
1833
- Early escaping (props [@tomjn](https://github.com/tomjn) via [#25](https://github.com/10up/ads-txt/pull/25))
1934
- PHPCS issues and added PHPCS scanning (props [@adamsilverstein](https://github.com/adamsilverstein) via [#38](https://github.com/10up/ads-txt/pull/38))
2035

21-
## [1.1] - 2018-02-05
36+
## [1.1.0] - 2018-02-05
2237
### Fixed
2338
- Better error message formatting (wraps values in <code> tags for better readability)
2439
- WordPress.com VIP-approved escaping
2540

26-
## [1.0] - 2017-12-18
41+
## [1.0.0] - 2017-12-18
2742
- Initial plugin release
2843

2944
[Unreleased]: https://github.com/10up/ads-txt/compare/master...develop
45+
[1.3.0]: https://github.com/10up/ads-txt/compare/1.2.0...1.3.0
3046
[1.2.0]: https://github.com/10up/ads-txt/compare/1.1...1.2.0
31-
[1.1]: https://github.com/10up/ads-txt/compare/1.0...1.1
32-
[1.0]: https://github.com/10up/ads-txt/releases/tag/1.0
47+
[1.1.0]: https://github.com/10up/ads-txt/compare/1.0...1.1
48+
[1.0.0]: https://github.com/10up/ads-txt/releases/tag/1.0

CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ During weekly triage, the tested up to version should be compared against the la
4949

5050
New releases are targeted based on number and severity of changes along with human availability. When a release is targeted, a due date will be assigned to the appropriate milestone.
5151

52-
### Roadmap
53-
54-
We are currently working toward [version 1.2](https://github.com/10up/ads-txt/milestone/1), which will include exposing a UI for revisions and detecting the presence of an actual `ads.txt` file. There is not yet a targeted release date, and features and enhancements may still be added to the milestone.
55-
5652
### Testing
5753

5854
Make an ads.txt with the following contents and ensure that you receive the same errors as below. There are no automated tests at this time - contributions very welcome in this area!

CREDITS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following individuals are responsible for curating the list of issues, respo
1010

1111
Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc.
1212

13-
[Helen Hou-Sandi (@helen)](https://github.com/helen), [Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [@philipjohn](https://github.com/philipjohn), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Ethan Clevenger (@ethanclevenger91)](https://github.com/ethanclevenger91), [Tom J Nowell (@tomjn)](https://github.com/tomjn), [John Eckman (@jeckman)](https://github.com/jeckman), [Keanan Koppenhaver (@kkoppenhaver)](https://github.com/kkoppenhaver), [Matthew McAchran (@mmcachran)](https://github.com/mmcachran).
13+
[10up (@10up)](https://github.com/10up), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Philip John (@philipjohn)](https://github.com/philipjohn), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Ethan Clevenger (@ethanclevenger91)](https://github.com/ethanclevenger91), [Tom J Nowell (@tomjn)](https://github.com/tomjn), [John Eckman (@jeckman)](https://github.com/jeckman), [Keanan Koppenhaver (@kkoppenhaver)](https://github.com/kkoppenhaver), [Matthew McAchran (@mmcachran)](https://github.com/mmcachran), [Peter Westwood (@westi)](https://github.com/westi), [cp101 (@p0mmy)](https://github.com/p0mmy), [Tim Moore (@tmoorewp)](https://github.com/tmoorewp), [Per Søderlind (@soderlind)](https://github.com/soderlind).
1414

1515
## Libraries
1616

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
> Create, manage, and validate your Ads.txt from within WordPress, just like any other content asset.
44
5-
[![Build Status](https://travis-ci.org/10up/ads-txt.svg?branch=develop)](https://travis-ci.org/10up/ads-txt) [![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Release Version](https://img.shields.io/github/tag/10up/ads-txt.svg?label=release)](https://github.com/10up/ads-txt/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v5.3%20tested-success.svg) [![GPLv2 License](https://img.shields.io/github/license/10up/ads-txt.svg)](https://github.com/10up/ads-txt/blob/develop/LICENSE.md)
5+
[![Automated Tests](https://github.com/10up/ads-txt/workflows/Automated%20Tests/badge.svg)](https://github.com/10up/ads-txt/actions?query=workflow%3A%22Automated+Tests%22) [![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Release Version](https://img.shields.io/github/tag/10up/ads-txt.svg?label=release)](https://github.com/10up/ads-txt/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v5.4%20tested-success.svg) [![GPLv2 License](https://img.shields.io/github/license/10up/ads-txt.svg)](https://github.com/10up/ads-txt/blob/develop/LICENSE.md)
66

77
## Features
88

9-
![Screenshot of ads.txt editor](.wordpress-org/screenshot-1.png "Example of editing an ads.txt file with errors")
9+
![Screenshot of ads.txt editor](.wordpress-org/screenshot-1.png "Example of editing an ads.txt file with errors and a link to browse ads.txt file revisions.")
1010

1111
[Ads.txt](https://iabtechlab.com/ads-txt/) is an initiative by the Interactive Advertising Bureau to enable publishers to take control over who can sell their ad inventory. Through our work at 10up with various publishers, we've created a way to manage and validate your ads.txt file from within WordPress, eliminating the need to upload a file. The validation baked into the plugin helps avoid malformed records, which can cause issues that end up cached for up to 24 hours and can lead to a drop in ad revenue.
1212

@@ -16,13 +16,17 @@ We're closely monitoring continued developments in the ad fraud space, and see t
1616

1717
### What about app-ads.txt?
1818

19-
We plan on adding support for this file in the future! If you'd like to follow along with development or even help us get it done, please see #40.
19+
We plan on adding support for this file in the future! If you'd like to follow along with development or even help us get it done, please see [#40](https://github.com/10up/ads-txt/issues/40).
20+
21+
### Can I use this with multisite?
22+
23+
Yes! However, if you are using a subfolder installation it will only work for the main site. This is because you can only have one ads.txt for a given domain or subdomain per the [ads.txt spec](https://iabtechlab.com/ads-txt/). Our recommendation is to only activate Ads.txt Manager per-site.
2024

2125
## Requirements
2226

2327
* Requires PHP 5.3+.
2428
* Requires WordPress 4.9+. Older versions of WordPress will not display any syntax highlighting and may break JavaScript and/or be unable to localize the plugin.
25-
* Ad blockers may break syntax highlighting and pre-save error checking on the edit screen. See #20.
29+
* Ad blockers may break syntax highlighting and pre-save error checking on the edit screen. See [#20](https://github.com/10up/ads-txt/issues/20).
2630
* Rewrites need to be enabled. Without rewrites, WordPress cannot know to supply `/ads.txt` when requested.
2731
* Your site URL must not contain a path (e.g. `https://example.com/site/` or path-based multisite installs). While the plugin will appear to function in the admin, it will not display the contents at `https://example.com/site/ads.txt`. This is because the plugin follows the IAB spec, which requires that the ads.txt file be located at the root of a domain or subdomain.
2832

@@ -33,9 +37,23 @@ We plan on adding support for this file in the future! If you'd like to follow a
3337
1. Head to Settings → Ads.txt and add the records you need.
3438
1. Check it out at yoursite.com/ads.txt!
3539

36-
Note: If you already have an existing ads.txt file in the web root, the plugin will not read in the contents of that file, and changes you make in WordPress admin will not overwrite contents of the physical file.
40+
Note: If you already have an existing ads.txt file in the web root, the plugin will not read in the contents of that file, and changes you make in WordPress admin will not overwrite contents of the physical file.
41+
42+
You will need to rename or remove the existing ads.txt file (keeping a copy of the records it contains to put into the new settings screen) before you will be able to see any changes you make to ads.txt inside the WordPress admin.
43+
44+
## Screenshots
45+
46+
### 1. Example of editing an ads.txt file with errors and a link to browse ads.txt file revisions.
47+
48+
![Screenshot of ads.txt editor](.wordpress-org/screenshot-1.png "Example of editing an ads.txt file with errors and a link to browse ads.txt file revisions.")
49+
50+
### 2. Example of comparing ads.txt file revisions.
51+
52+
![Screenshot of ads.txt in Revisions editor](.wordpress-org/screenshot-2.png "Example of comparing ads.txt file revisions.")
53+
54+
### 3. Example of comparing two disparate ads.txt file revisions.
3755

38-
You will need to rename or remove the existing ads.txt file (keeping a copy of the records it contains to put into the new settings screen) before you will be able to see any changes you make to ads.txt inside the WordPress admin.
56+
![Screenshot of ads.txt in Revisions editor](.wordpress-org/screenshot-3.png "Example of comparing two disparate ads.txt file revisions.")
3957

4058
## Support Level
4159

0 commit comments

Comments
 (0)