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/list-table/class-plugin-posts.php

    r13076 r13088  
    712712
    713713            printf(
    714                 '<a href="%1$s">%2$s</a><br>%3$s<br>(<a href="%4$s" target="_blank">preview</a>)</li>',
     714                '<a href="%1$s">%2$s</a><br>%3$s<br>(<a href="%4$s" target="_blank">preview</a> | <a href="%5$s" target="_blank">pcp</a>)</li>',
    715715                esc_url( $url ),
    716716                esc_html( $name ),
    717717                esc_html( $zip_size ),
    718                 esc_url( Template::preview_link_zip( $post->post_name, $zip_file->ID ) )
     718                esc_url( Template::preview_link_zip( $post->post_name, $zip_file->ID ) ),
     719                esc_url( Template::preview_link_zip( $post->post_name, $zip_file->ID, 'pcp' ) )
    719720            );
    720721        }
Note: See TracChangeset for help on using the changeset viewer.