Making WordPress.org


Ignore:
Timestamp:
01/16/2024 05:04:43 AM (8 months ago)
Author:
dd32
Message:

Plugin Directory: Submission: All uploaded zips now have this metadata attached, simplify the code added in [13109].

See #7384.

File:
1 edited

Legend:

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

    r13109 r13113  
    130130                $zip_preview                = Template::preview_link_zip( $slug, $zip_file->ID );
    131131                $zip_pcp                    = Template::preview_link_zip( $slug, $zip_file->ID, 'pcp' );
    132                 $zip_filename               = $zip_file->submitted_name ?? preg_replace( '!^[0-9-_]+!', '', basename( $zip_url ) );
    133132
    134133                printf(
    135                     '<li>%1$s <a href="%2$s" title="%3$s">%4$s</a> (%5$s) (<a href="%6$s" target="_blank">preview</a> | <a href="%7$s" target="_blank">pcp</a>)</li>',
     134                    '<li>%1$s v%2$s <a href="%3$s" title="%4$s">%5$s</a> (%6$s) (<a href="%7$s" target="_blank">preview</a> | <a href="%8$s" target="_blank">pcp</a>)</li>',
    136135                    esc_html( $zip_date ),
     136                    esc_html( $zip_file->version ),
    137137                    esc_url( $zip_url ),
    138138                    esc_attr( $zip_file->post_title ),
    139                     esc_html( $zip_filename ),
     139                    esc_html( $zip_file->submitted_name ),
    140140                    esc_html( $zip_size ),
    141141                    esc_url( $zip_preview ),
Note: See TracChangeset for help on using the changeset viewer.