Changeset 50921 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 05/17/2021 05:02:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r50121 r50921 436 436 437 437 $plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags ); 438 $details_url = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $response->slug . '§ion=changelog&TB_iframe=true&width=600&height=800' ); 438 $plugin_slug = isset( $response->slug ) ? $response->slug : $response->id; 439 440 if ( isset( $response->slug ) ) { 441 $details_url = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug . '§ion=changelog' ); 442 } elseif ( isset( $response->url ) ) { 443 $details_url = $response->url; 444 } else { 445 $details_url = $plugin_data['PluginURI']; 446 } 447 448 $details_url = add_query_arg( 449 array( 450 'TB_iframe' => 'true', 451 'width' => 600, 452 'height' => 800, 453 ), 454 $details_url 455 ); 439 456 440 457 /** @var WP_Plugins_List_Table $wp_list_table */ … … 462 479 '<div class="update-message notice inline %s notice-alt"><p>', 463 480 $active_class, 464 esc_attr( $ response->slug . '-update' ),465 esc_attr( $ response->slug ),481 esc_attr( $plugin_slug . '-update' ), 482 esc_attr( $plugin_slug ), 466 483 esc_attr( $file ), 467 484 esc_attr( $wp_list_table->get_column_count() ),
Note: See TracChangeset
for help on using the changeset viewer.