Changeset 10196 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-self-transfer.php
- Timestamp:
- 08/21/2020 05:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-self-transfer.php
r10126 r10196 66 66 */ 67 67 public function self_transfer( $request ) { 68 $plugin = Plugin_Directory::get_plugin_post( $request['plugin_slug'] ); 69 $location = get_permalink( $plugin ) . 'advanced/'; 70 header( "Location: $location" ); 68 $plugin = Plugin_Directory::get_plugin_post( $request['plugin_slug'] ); 71 69 $result = [ 72 'location' => $location,70 'location' => wp_get_referer() ?: get_permalink( $plugin ), 73 71 'transferred' => false, 74 72 ]; 73 header( 'Location: ' . $result['location'] ); 75 74 76 75 // New owner must also have commit rights.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)