- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-upgrader-skin.php
r42871 r45926 47 47 if ( ! empty( $this->plugin ) && ! is_wp_error( $this->result ) && $this->plugin_active ) { 48 48 // Currently used only when JS is off for a single plugin update? 49 echo '<iframe title="' . esc_attr__( 'Update progress' ) . '" style="border:0;overflow:hidden" width="100%" height="170" src="' . wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ) . '"></iframe>'; 49 printf( 50 '<iframe title="%s" style="border:0;overflow:hidden" width="100%" height="170" src="%s"></iframe>', 51 esc_attr__( 'Update progress' ), 52 wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ) 53 ); 50 54 } 51 55 … … 53 57 54 58 $update_actions = array( 55 'activate_plugin' => '<a href="' . wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ) . '" target="_parent">' . __( 'Activate Plugin' ) . '</a>', 56 'plugins_page' => '<a href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>', 59 'activate_plugin' => sprintf( 60 '<a href="%s" target="_parent">%s</a>', 61 wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ), 62 __( 'Activate Plugin' ) 63 ), 64 'plugins_page' => sprintf( 65 '<a href="%s" target="_parent">%s</a>', 66 self_admin_url( 'plugins.php' ), 67 __( 'Return to Plugins page' ) 68 ), 57 69 ); 70 58 71 if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugin', $this->plugin ) ) { 59 72 unset( $update_actions['activate_plugin'] );
Note: See TracChangeset
for help on using the changeset viewer.