Changeset 13651
- Timestamp:
- 05/02/2024 07:16:42 AM (9 months ago)
- Location:
- sites/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/plugins-themes.php
r13015 r13651 21 21 22 22 */ 23 24 // Run as the plugin directory, such that any filters are correct. 25 $wp_init_host = 'https://wordpress.org/plugins/'; 23 26 24 27 include __DIR__ . '/common.php'; … … 166 169 'posts_per_page' => 1, 167 170 ] ); 168 $download_link = $attachments ? wp_get_attachment_url( $attachments[0]->ID ) : '#'; 171 $download_link = $attachments ? wp_get_attachment_url( $attachments[0]->ID ) : ''; 172 } 173 174 // Append Info URL. 175 if ( $download_url && class_exists( '\WordPressdotorg\Plugin_Directory\API\Routes\Plugin_Review' ) ) { 176 $download_url = \WordPressdotorg\Plugin_Directory\API\Routes\Plugin_Review::append_plugin_review_info_url( $download_url, $post ); 169 177 } 170 178 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13649 r13651 1859 1859 } 1860 1860 1861 if ( ! $url || ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {1861 if ( ! $url || ! $post || 'plugin' !== $post->post_type || ! current_user_can( 'edit_post', $post->ID ) ) { 1862 1862 return $url; 1863 1863 }
Note: See TracChangeset
for help on using the changeset viewer.