Making WordPress.org


Ignore:
Timestamp:
05/13/2021 07:20:04 PM (4 years ago)
Author:
ocean90
Message:

Plugin Directory: Update text domain check for plugins using the Requires at least header in the plugin's main PHP file.

Fixes #4514.

File:
1 edited

Legend:

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

    r10726 r10971  
    297297        /**
    298298         * Action that fires after a plugin is imported.
    299          * 
     299         *
    300300         * @param WP_Post $plugin         The plugin updated.
    301301         * @param string  $stable_tag     The new stable tag for the plugin.
     
    680680     * @return string The plugin readme.txt or readme.md filename.
    681681     */
    682     static function find_readme_file( $directory ) {
     682    public static function find_readme_file( $directory ) {
    683683        $files = Filesystem::list_files( $directory, false /* non-recursive */, '!(?:^|/)readme\.(txt|md)$!i' );
    684684
     
    700700     * @return object The plugin headers.
    701701     */
    702     static function find_plugin_headers( $directory ) {
     702    public static function find_plugin_headers( $directory ) {
    703703        $files = Filesystem::list_files( $directory, false, '!\.php$!i' );
    704704
Note: See TracChangeset for help on using the changeset viewer.