- Timestamp:
- 05/02/2024 07:16:42 AM (12 months ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.