Skip to content

Commit

Permalink
Merge pull request #511 from TGMPA/feature/install-page-notices
Browse files Browse the repository at this point in the history
Fix install/update notices on bulk install page.
  • Loading branch information
GaryJones committed Jan 7, 2016
2 parents 0e8e844 + 0c74be3 commit c8a5262
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2799,8 +2799,9 @@ public function process_bulk_actions() {
);

// Wrap the install process with the appropriate HTML.
echo '<div class="tgmpa wrap">',
'<h2>', esc_html( get_admin_page_title() ), '</h2>';
echo '<div class="tgmpa">',
'<h2 style="font-size: 23px; font-weight: 400; line-height: 29px; margin: 0; padding: 9px 15px 4px 0;">', esc_html( get_admin_page_title() ), '</h2>
<div class="update-php" style="width: 100%; height: 98%; min-height: 850px; padding-top: 1px;">';

// Process the bulk installation submissions.
add_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1, 3 );
Expand All @@ -2816,7 +2817,7 @@ public function process_bulk_actions() {

remove_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1, 3 );

echo '</div>';
echo '</div></div>';

return true;
}
Expand Down

0 comments on commit c8a5262

Please sign in to comment.