Making WordPress.org


Ignore:
Timestamp:
03/24/2023 05:11:34 AM (13 months ago)
Author:
dd32
Message:

Plugin Directory: Add ability to define a 'Plugin Author Notice' for plugins.

This is a notice that plugin reviewers can set, that is then visible on the plugins page by plugin authors/committers.

The intent is that this can inform plugin authors why their plugin has been closed when they miss the email.

Fixse #6880.
Closes https://github.com/WordPress/wordpress.org/pull/135.

File:
1 edited

Legend:

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

    r12489 r12492  
    6464
    6565        add_action( 'save_post', array( __NAMESPACE__ . '\Metabox\Release_Confirmation', 'save_post' ) );
     66        add_action( 'save_post', array( __NAMESPACE__ . '\Metabox\Author_Notice', 'save_post' ) );
    6667    }
    6768
     
    472473                array( __NAMESPACE__ . '\Metabox\Commits', 'display' ),
    473474                'plugin', 'normal', 'low'
     475            );
     476
     477            add_meta_box(
     478                'plugin-author-notice',
     479                __( 'Author Notice (Displayed on the plugins page to Plugin Authors)', 'wporg-plugins' ),
     480                array( __NAMESPACE__ . '\Metabox\Author_Notice', 'display' ),
     481                'plugin', 'normal', 'high'
    474482            );
    475483        }
Note: See TracChangeset for help on using the changeset viewer.