Making WordPress.org

Changeset 12614


Ignore:
Timestamp:
06/02/2023 04:54:09 AM (6 months ago)
Author:
dd32
Message:

Plugin Directory: Readme Validator: Don't encourage the use of Stable Tag: trunk for plugins.

Props Ipstenu.
Fixes #6987.
See #6380.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php

    r10429 r12614  
    122122        }
    123123
    124         if ( empty( $readme->stable_tag ) ) {
    125             $warnings[] = sprintf(
    126                 /* translators: 1: 'Stable tag', 2: /trunk/ SVN directory, 3: 'Stable tag: trunk' */
    127                 __( 'The %1$s field is missing.  Hint: If you treat %2$s as stable, put %3$s.', 'wporg-plugins' ),
     124        if ( empty( $readme->stable_tag ) || str_contains( $readme->stable_tag, 'trunk' ) ) {
     125            $warnings[] = sprintf(
     126                /* translators: 1: 'Stable tag', 2: /trunk/ SVN directory */
     127                __( 'The %1$s field is missing or invalid.  Note: We ask you no longer attempt to use %2$s as stable, so that all plugins can be rolled back.', 'wporg-plugins' ),
    128128                '<code>Stable tag</code>',
    129                 '<code>/trunk/</code>',
    130                 '<code>Stable tag: trunk</code>'
     129                '<code>/trunk/</code>'
    131130            );
    132131        }
Note: See TracChangeset for help on using the changeset viewer.