Changeset 13636
- Timestamp:
- 05/01/2024 01:23:04 AM (10 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
r13611 r13636 713 713 $name = $zip_file->submitted_name; 714 714 if ( ! $name ) { 715 $name = explode( '?', basename( $url ) )[0];715 $name = preg_split( '/[?#]/', basename( $url ) )[0]; 716 716 $name = explode( '_', $name, 3 )[2]; 717 717 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13610 r13636 1853 1853 } 1854 1854 1855 $url = add_query_arg( 1856 'info', 1857 urlencode( rest_url( sprintf( 1858 'plugins/v1/pending-plugin/%d-%s/', 1859 $post->ID, 1860 $token 1861 ) ) ), 1862 $url 1863 ); 1855 // Append with a anchor, such that CLI environments don't require special handling. 1856 $url .= '#wporgapi:' . rest_url( sprintf( 1857 'plugins/v1/pending-plugin/%d-%s/', 1858 $post->ID, 1859 $token 1860 ) ); 1864 1861 1865 1862 return $url;
Note: See TracChangeset
for help on using the changeset viewer.