Changeset 13088 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 01/02/2024 02:44:07 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r13076 r13088 772 772 * @return false|string The preview URL. 773 773 */ 774 public static function preview_link_zip( $slug, $attachment_id ) {774 public static function preview_link_zip( $slug, $attachment_id, $type = null ) { 775 775 776 776 $zip_hash = self::preview_link_hash( $attachment_id ); … … 779 779 } 780 780 $zip_blueprint = sprintf( 'https://wordpress.org/plugins/wp-json/plugins/v1/plugin/%s/blueprint.json?zip_hash=%s', esc_attr( $slug ), esc_attr( $zip_hash ) ); 781 if ( is_string( $type ) ) { 782 $zip_blueprint = add_query_arg( 'type', strval( $type ), $zip_blueprint ); 783 } 781 784 $zip_preview = add_query_arg( 'blueprint-url', urlencode($zip_blueprint), 'https://playground.wordpress.net/' ); 782 785
Note: See TracChangeset
for help on using the changeset viewer.