Making WordPress.org


Ignore:
Timestamp:
01/02/2024 02:44:07 AM (6 months ago)
Author:
tellyworth
Message:

Plugin Directory: Improved preview links for plugin mods

This adds separate "preview" and "pcp" links.

File:
1 edited

Legend:

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

    r13076 r13088  
    129129                $zip_size                   = size_format( filesize( get_attached_file( $zip_file->ID ) ), 1 );
    130130                $zip_preview                = Template::preview_link_zip( $slug, $zip_file->ID );
     131                $zip_pcp                    = Template::preview_link_zip( $slug, $zip_file->ID, 'pcp' );
    131132
    132133                printf(
    133                     '<li>%1$s <a href="%2$s">%3$s</a> (%4$s) (<a href="%5$s" target="_blank">preview</a>)</li>',
     134                    '<li>%1$s <a href="%2$s">%3$s</a> (%4$s) (<a href="%5$s" target="_blank">preview</a> | <a href="%6$s" target="_blank">pcp</a>)</li>',
    134135                    esc_html( $zip_date ),
    135136                    esc_url( $zip_url ),
    136137                    esc_html( basename( $zip_url ) ),
    137138                    esc_html( $zip_size ),
    138                     esc_url( $zip_preview )
     139                    esc_url( $zip_preview ),
     140                    esc_url( $zip_pcp )
    139141                );
    140142            }
Note: See TracChangeset for help on using the changeset viewer.