Changeset 12999 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 12/04/2023 04:42:52 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r12978 r12999 758 758 } 759 759 760 $blueprint_ encoded = esc_html( str_replace( '%', '%25', $blueprint['contents'] ));761 762 return sprintf( 'https://playground.wordpress.net/?plugin=%s #%s', $post->post_name, $blueprint_encoded);760 $blueprint_url = sprintf( 'https://wordpress.org/plugins/wp-json/plugins/v1/plugin/%s/blueprint.json?rev=%d', $post->post_name, $blueprint['revision'] ); 761 762 return sprintf( 'https://playground.wordpress.net/?plugin=%s&blueprint-url=%s', esc_attr($post->post_name), esc_attr($blueprint_url ) ); 763 763 } 764 764
Note: See TracChangeset
for help on using the changeset viewer.