Plugin Directory

Changeset 3159683


Ignore:
Timestamp:
09/30/2024 07:45:50 AM (18 months ago)
Author:
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:
jazzy-generator-tag
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • jazzy-generator-tag/tags/6.6.0/jazzy-generator-tag.php

    r3159572 r3159683  
    22/**
    33 * Plugin Name: Jazzy Generator Tag
    4  * Plugin URI: https://wordpress.org/plugins/jazzy-generator-tag/
     4 * Plugin URI: https://werdswords.com/plugins/
    55 * Description: Supplements your WordPress site's generator tag with the jazz artist your current version of WordPress was named after.
    66 * Author: Drew Jaynes
     
    88 * License: GPLv2
    99 * Version: 6.6.0
     10 * Requires PHP: 7.4
    1011 * Text Domain: jazzy-generator-tag
    1112 * Domain Path: /languages/
     
    2122 * @return string The filtered generator meta tag.
    2223 */
    23 function jgt_generator_as_jazzer( $tag, $type ) {
    24 
    25     // Jazz musicians as correspond to their respective release versions.
    26     $jazzers = array(
     24add_filter( 'get_the_generator_xhtml', function( $tag, $type ) {
     25    // Jazz musicians as correspond to their respective release versions.
     26    $jazzers = [
    2727        /* translators: WordPress version string, e.g. 'WordPress 4.5'. Gender of the artist is male. */
    2828        '1.0' => __( '%s to the sounds of Miles Davis',     'jazzy-generator-tag' ),
     
    171171        /* translators: WordPress version string, e.g. 'WordPress 6.6'. Gender of the artist is male. */
    172172        '6.6' => __( '%s to the sounds of Tommy Dorsey', 'jazzy-generator-tag' ),
    173     );
     173    ];
    174174
    175175    $wp_version = get_bloginfo( 'version' );
     
    192192
    193193    return '<meta content="' . esc_attr( $jazzer ) . '" name="generator">';
    194 }
    195 add_filter( 'get_the_generator_xhtml', 'jgt_generator_as_jazzer', 10, 2 );
     194}, 10, 2 );
     195
     196add_action('plugins_loaded', function() {
     197    load_plugin_textdomain( 'jazzy-generator-tag', false, __DIR__ . '/languages' );
     198});
  • jazzy-generator-tag/tags/6.6.0/readme.txt

    r3159573 r3159683  
    11=== Jazzy Generator Tag ===
    2 Contributors: DrewAPicture, ocean90
     2Contributors: drewapicture, ocean90
     3License: GPLv2
    34Tags: generator
    4 License: GPLv2 or later
    55Tested up to: 6.6
    66Stable tag: 6.6.0
  • jazzy-generator-tag/trunk/jazzy-generator-tag.php

    r3159572 r3159683  
    22/**
    33 * Plugin Name: Jazzy Generator Tag
    4  * Plugin URI: https://wordpress.org/plugins/jazzy-generator-tag/
     4 * Plugin URI: https://werdswords.com/plugins/
    55 * Description: Supplements your WordPress site's generator tag with the jazz artist your current version of WordPress was named after.
    66 * Author: Drew Jaynes
     
    88 * License: GPLv2
    99 * Version: 6.6.0
     10 * Requires PHP: 7.4
    1011 * Text Domain: jazzy-generator-tag
    1112 * Domain Path: /languages/
     
    2122 * @return string The filtered generator meta tag.
    2223 */
    23 function jgt_generator_as_jazzer( $tag, $type ) {
    24 
    25     // Jazz musicians as correspond to their respective release versions.
    26     $jazzers = array(
     24add_filter( 'get_the_generator_xhtml', function( $tag, $type ) {
     25    // Jazz musicians as correspond to their respective release versions.
     26    $jazzers = [
    2727        /* translators: WordPress version string, e.g. 'WordPress 4.5'. Gender of the artist is male. */
    2828        '1.0' => __( '%s to the sounds of Miles Davis',     'jazzy-generator-tag' ),
     
    171171        /* translators: WordPress version string, e.g. 'WordPress 6.6'. Gender of the artist is male. */
    172172        '6.6' => __( '%s to the sounds of Tommy Dorsey', 'jazzy-generator-tag' ),
    173     );
     173    ];
    174174
    175175    $wp_version = get_bloginfo( 'version' );
     
    192192
    193193    return '<meta content="' . esc_attr( $jazzer ) . '" name="generator">';
    194 }
    195 add_filter( 'get_the_generator_xhtml', 'jgt_generator_as_jazzer', 10, 2 );
     194}, 10, 2 );
     195
     196add_action('plugins_loaded', function() {
     197    load_plugin_textdomain( 'jazzy-generator-tag', false, __DIR__ . '/languages' );
     198});
  • jazzy-generator-tag/trunk/readme.txt

    r3159573 r3159683  
    11=== Jazzy Generator Tag ===
    2 Contributors: DrewAPicture, ocean90
     2Contributors: drewapicture, ocean90
     3License: GPLv2
    34Tags: generator
    4 License: GPLv2 or later
    55Tested up to: 6.6
    66Stable tag: 6.6.0
Note: See TracChangeset for help on using the changeset viewer.