Making WordPress.org


Ignore:
Timestamp:
01/07/2026 05:47:13 AM (5 months ago)
Author:
dd32
Message:

Plugin Directory: Admin: Only show the latest ZIP in the post table list.

Props nilambar.
Fixes https://github.com/WordPress/wordpress.org/pull/540.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php

    r13636 r14626  
    707707        }
    708708
     709        // Only display the latest.
     710        $media = array_slice( $media, -1 );
     711
    709712        foreach ( $media as $zip_file ) {
    710713            $zip_size = size_format( filesize( get_attached_file( $zip_file->ID ) ), 1 );
     
    718721
    719722            printf(
    720                 '<a href="%1$s">%2$s</a> v%3$s<br>%4$s<br>(<a href="%5$s" target="_blank">test</a> | <a href="%6$s" target="_blank">pcp</a>)<br></li>',
     723                '<a href="%1$s">%2$s</a> v%3$s<br>%4$s<br>(<a href="%5$s" target="_blank">test</a> | <a href="%6$s" target="_blank">pcp</a>)<br>',
    721724                esc_url( $url ),
    722725                esc_html( $name ),
Note: See TracChangeset for help on using the changeset viewer.