Changeset 3159683 – WordPress Plugin Repository (original) (raw)
Timestamp:
09/30/2024 07:45:50 AM (17 months ago)
DrewAPicture
Message:
Apply PCP updates to v6.6.0 and the corresponding tag:
- Requires PHP 7.4+
- Adds a missing license to the readme
- Adds a pot file and loads the textdomain from /languages
- Minor syntactical improvements
Location:
Files:
- tags/6.6.0/jazzy-generator-tag.php (5 diffs)
- tags/6.6.0/languages
- tags/6.6.0/languages/jazzy-generator-tag.pot
- tags/6.6.0/readme.txt (1 diff)
- trunk/jazzy-generator-tag.php (5 diffs)
- trunk/languages
- trunk/languages/jazzy-generator-tag.pot
- trunk/readme.txt (1 diff)
Legend:
Unmodified
Added
Removed
| r3159572 | r3159683 | |
|---|---|---|
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Jazzy Generator Tag |
| 4 | * Plugin URI: https://w~~ordpress.org/plugins/jazzy-generator-tag~~/ | |
| 4 | * Plugin URI: https://werdswords.com/plugins/ | |
| 5 | 5 | * Description: Supplements your WordPress site's generator tag with the jazz artist your current version of WordPress was named after. |
| 6 | 6 | * Author: Drew Jaynes |
| … | … | |
| 8 | 8 | * License: GPLv2 |
| 9 | 9 | * Version: 6.6.0 |
| 10 | * Requires PHP: 7.4 | |
| 10 | 11 | * Text Domain: jazzy-generator-tag |
| 11 | 12 | * Domain Path: /languages/ |
| … | … | |
| 21 | 22 | * @return string The filtered generator meta tag. |
| 22 | 23 | */ |
| 23 | function jgt_generator_as_jazzer( tag,tag, tag,type ) { | |
| 24 | ||
| 25 | // Jazz musicians as correspond to their respective release versions. | |
| 26 | $jazzers = array( | |
| 24 | add_filter( 'get_the_generator_xhtml', function( tag,tag, tag,type ) { | |
| 25 | // Jazz musicians as correspond to their respective release versions. | |
| 26 | $jazzers = [ | |
| 27 | 27 | /* translators: WordPress version string, e.g. 'WordPress 4.5'. Gender of the artist is male. */ |
| 28 | 28 | '1.0' => __( '%s to the sounds of Miles Davis', 'jazzy-generator-tag' ), |
| … | … | |
| 171 | 171 | /* translators: WordPress version string, e.g. 'WordPress 6.6'. Gender of the artist is male. */ |
| 172 | 172 | '6.6' => __( '%s to the sounds of Tommy Dorsey', 'jazzy-generator-tag' ), |
| 173 | ||
| 173 | ]; | |
| 174 | 174 | |
| 175 | 175 | $wp_version = get_bloginfo( 'version' ); |
| … | … | |
| 192 | 192 | |
| 193 | 193 | return ''; |
| 194 | } | |
| 195 | add_filter( 'get_the_generator_xhtml', 'jgt_generator_as_jazzer', 10, 2 ); | |
| 194 | }, 10, 2 ); | |
| 195 | ||
| 196 | add_action('plugins_loaded', function() { | |
| 197 | load_plugin_textdomain( 'jazzy-generator-tag', false, __DIR__ . '/languages' ); | |
| 198 | }); |
| r3159573 | r3159683 | |
|---|---|---|
| 1 | 1 | === Jazzy Generator Tag === |
| 2 | Contributors: DrewAPicture, ocean90 | |
| 2 | Contributors: drewapicture, ocean90 | |
| 3 | License: GPLv2 | |
| 3 | 4 | Tags: generator |
| 4 | ||
| 5 | 5 | Tested up to: 6.6 |
| 6 | 6 | Stable tag: 6.6.0 |
| r3159572 | r3159683 | |
|---|---|---|
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Jazzy Generator Tag |
| 4 | * Plugin URI: https://w~~ordpress.org/plugins/jazzy-generator-tag~~/ | |
| 4 | * Plugin URI: https://werdswords.com/plugins/ | |
| 5 | 5 | * Description: Supplements your WordPress site's generator tag with the jazz artist your current version of WordPress was named after. |
| 6 | 6 | * Author: Drew Jaynes |
| … | … | |
| 8 | 8 | * License: GPLv2 |
| 9 | 9 | * Version: 6.6.0 |
| 10 | * Requires PHP: 7.4 | |
| 10 | 11 | * Text Domain: jazzy-generator-tag |
| 11 | 12 | * Domain Path: /languages/ |
| … | … | |
| 21 | 22 | * @return string The filtered generator meta tag. |
| 22 | 23 | */ |
| 23 | function jgt_generator_as_jazzer( tag,tag, tag,type ) { | |
| 24 | ||
| 25 | // Jazz musicians as correspond to their respective release versions. | |
| 26 | $jazzers = array( | |
| 24 | add_filter( 'get_the_generator_xhtml', function( tag,tag, tag,type ) { | |
| 25 | // Jazz musicians as correspond to their respective release versions. | |
| 26 | $jazzers = [ | |
| 27 | 27 | /* translators: WordPress version string, e.g. 'WordPress 4.5'. Gender of the artist is male. */ |
| 28 | 28 | '1.0' => __( '%s to the sounds of Miles Davis', 'jazzy-generator-tag' ), |
| … | … | |
| 171 | 171 | /* translators: WordPress version string, e.g. 'WordPress 6.6'. Gender of the artist is male. */ |
| 172 | 172 | '6.6' => __( '%s to the sounds of Tommy Dorsey', 'jazzy-generator-tag' ), |
| 173 | ||
| 173 | ]; | |
| 174 | 174 | |
| 175 | 175 | $wp_version = get_bloginfo( 'version' ); |
| … | … | |
| 192 | 192 | |
| 193 | 193 | return ''; |
| 194 | } | |
| 195 | add_filter( 'get_the_generator_xhtml', 'jgt_generator_as_jazzer', 10, 2 ); | |
| 194 | }, 10, 2 ); | |
| 195 | ||
| 196 | add_action('plugins_loaded', function() { | |
| 197 | load_plugin_textdomain( 'jazzy-generator-tag', false, __DIR__ . '/languages' ); | |
| 198 | }); |
| r3159573 | r3159683 | |
|---|---|---|
| 1 | 1 | === Jazzy Generator Tag === |
| 2 | Contributors: DrewAPicture, ocean90 | |
| 2 | Contributors: drewapicture, ocean90 | |
| 3 | License: GPLv2 | |
| 3 | 4 | Tags: generator |
| 4 | ||
| 5 | 5 | Tested up to: 6.6 |
| 6 | 6 | Stable tag: 6.6.0 |
Note: See TracChangeset for help on using the changeset viewer.