Making WordPress.org

Changeset 14566


Ignore:
Timestamp:
10/24/2025 06:15:07 AM (4 months ago)
Author:
dd32
Message:

Plugin Directory: Enable the --mode parameter to Plugin Check.

See #8018, [14565].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-updates-pcp.php

    r14565 r14566  
    203203    }
    204204
     205    /**
     206     * Notifies a Slack channel about the PCP results.
     207     *
     208     * @param object $plugin  The plugin post object.
     209     * @param array  $results The results from PCP.
     210     * @param string $tag     The tag that was scanned.
     211     */
    205212    public static function notify_slack_channel( $plugin, $results, $tag ) {
    206213
     
    306313     * Sends a plugin through Plugin Check.
    307314     *
     315     * @param string $plugin_slug The plugin slug.
     316     * @param string $path        The local path to the plugin.
     317     * @param string $tag         The tag being scanned.
     318     * @param string $mode        The mode to run plugin-check in. 'new' or 'update'.
    308319     * @return array The results of the plugin check.
    309320     */
     
    329340                    '--error-severity=7 --warning-severity=6 --include-low-severity-errors ' .
    330341                    '--categories=plugin_repo --format=json ' .
    331                     // '--mode=' . escapeshellarg( $mode ) . ' ' . // Not implemented yet.
     342                    '--mode=' . escapeshellarg( $mode ) . ' ' .
    332343                    '--slug=' . escapeshellarg( $plugin_slug ) . ' ' .
    333344                    escapeshellarg( $path );
Note: See TracChangeset for help on using the changeset viewer.