Making WordPress.org

Changeset 13082

Timestamp:
12/22/2023 07:24:02 AM (7 months ago)
Author:
dd32
Message:

Theme Directory: Review: Don't encode the JSON for live preview, and use 'WikiCreole' syntax to avoid issues with ] and } in the links.

See #7382.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r13080 r13082  
    11541154
    11551155        // NOTE: The json_encode( json_decode() ) is to remove the whitespaces used above for readability.
    1156         $live_preview_link = 'https://playground.wordpress.net/#' . urlencode( json_encode( json_decode( $blueprint ) ) );
     1156        $live_preview_link = 'https://playground.wordpress.net/#' . ) );
    11571157
    11581158        // Hacky way to prevent a problem with xml-rpc.
     
    11701170SVN - https://themes.svn.wordpress.org/{$this->theme_slug}/{$this->theme->display( 'Version' )}
    11711171ZIP - {$theme_zip_link}
    1172 Live preview – [{$live_preview_link} https://playground.wordpress.net/#…]
     1172Live preview – []
    11731173
    11741174{$this->trac_ticket->parent_link}
Note: See TracChangeset for help on using the changeset viewer.