Making WordPress.org


Ignore:
Timestamp:
12/21/2023 05:40:09 AM (9 months ago)
Author:
tellyworth
Message:

Plugin Dir: Add Preview links for moderators in plugin queue

This adds private Playground Preview links for the plugin review team to more easily test newly submitted plugins that have not yet been published.

Plugins are loaded with plugin-check active.

See #7380.

File:
1 edited

Legend:

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

    r12862 r13076  
    128128                list( $zip_url, $zip_file ) = $zip;
    129129                $zip_size                   = size_format( filesize( get_attached_file( $zip_file->ID ) ), 1 );
     130                $zip_preview                = Template::preview_link_zip( $slug, $zip_file->ID );
    130131
    131132                printf(
    132                     '<li>%1$s <a href="%2$s">%3$s</a> (%4$s)</li>',
     133                    '<li>%1$s <a href="%2$s">%3$s</a> (%4$s) (<a href="%5$s" target="_blank">preview</a>)</li>',
    133134                    esc_html( $zip_date ),
    134135                    esc_url( $zip_url ),
    135136                    esc_html( basename( $zip_url ) ),
    136                     esc_html( $zip_size )
     137                    esc_html( $zip_size ),
     138                    esc_url( $zip_preview )
    137139                );
    138140            }
Note: See TracChangeset for help on using the changeset viewer.