diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json index 7cc72ab..838aacd 100644 --- a/.wordpress-org/blueprints/blueprint.json +++ b/.wordpress-org/blueprints/blueprint.json @@ -30,7 +30,7 @@ }, { "step": "runPHP", - "code": " 'Ads.txt', 'post_content' => '# Example information\ncontact=test@example.com\n\n# Example record\ngoogle.com, pub-1234567890, DIRECT, f08c47fec0942fa0', 'post_status' => 'publish', 'post_type' => 'adstxt' ) ); $app_adstxt_id = wp_insert_post( array( 'post_title' => 'App-ads.txt', 'post_content' => '# Example information\ncontact=test@example.com\n\n# Example record\ngoogle.com, pub-1234567890, DIRECT, f08c47fec0942fa0', 'post_status' => 'publish', 'post_type' => 'app-adstxt' ) ); if ( ! $adstxt_id instanceof WP_Error ) { update_option( 'adstxt_post', (int) $adstxt_id ); } if ( ! $app_adstxt_id instanceof WP_Error ) { update_option( 'app_adstxt_post', (int) $app_adstxt_id ); }" + "code": " 'Ads.txt', 'post_content' => '# Example information\ncontact=test@example.com\n\n# Example record\ngoogle.com, pub-1234567890, DIRECT, f08c47fec0942fa0', 'post_status' => 'publish', 'post_type' => 'adstxt' ) ); $app_adstxt_id = wp_insert_post( array( 'post_title' => 'App-ads.txt', 'post_content' => '# Example information\ncontact=test@example.com\n\n# Example record\ngoogle.com, pub-1234567890, DIRECT, f08c47fec0942fa0', 'post_status' => 'publish', 'post_type' => 'app-adstxt' ) ); if ( ! $adstxt_id instanceof WP_Error ) { update_option( 'adstxt_post', (int) $adstxt_id ); } if ( ! $app_adstxt_id instanceof WP_Error ) { update_option( 'app_adstxt_post', (int) $app_adstxt_id ); } \\AdsTxt\\add_capabilities();" } ] } diff --git a/README.md b/README.md index 2716225..4b58873 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ > Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, like any other content asset. -[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) [![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) [![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/wordpress/plugin/tested/ads-txt?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/ads-txt.svg)](https://github.com/10up/ads-txt/blob/develop/LICENSE.md) +[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/ads-txt?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/ads-txt.svg)](https://github.com/10up/ads-txt/blob/develop/LICENSE.md) [![WordPress Plugin Version](https://img.shields.io/wordpress/plugin/v/ads-txt?logo=wordpress&logoColor=FFFFFF&label=Playground%20Demo&labelColor=3858E9&color=3858E9)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/ads-txt/develop/.wordpress-org/blueprints/blueprint.json) + +[![End-to-end Tests](https://github.com/10up/ads-txt/actions/workflows/cypress.yml/badge.svg)](https://github.com/10up/ads-txt/actions/workflows/cypress.yml) [![Unit Tests](https://github.com/10up/ads-txt/actions/workflows/phpunit.yml/badge.svg)](https://github.com/10up/ads-txt/actions/workflows/phpunit.yml) [![Lint PHP](https://github.com/10up/ads-txt/actions/workflows/lint-php.yml/badge.svg)](https://github.com/10up/ads-txt/actions/workflows/lint-php.yml) [![PHP Compatibility](https://github.com/10up/ads-txt/actions/workflows/php8-compatibility.yml/badge.svg)](https://github.com/10up/ads-txt/actions/workflows/php8-compatibility.yml) [![Dependency Review](https://github.com/10up/ads-txt/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/10up/ads-txt/actions/workflows/dependency-review.yml) ## Features