Make WordPress Core


Ignore:
Timestamp:
05/10/2011 07:18:16 PM (14 years ago)
Author:
ryan
Message:

Remove favorite_actions() from h2s. Restore Add New buttons. see #17324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r17806 r17849  
    386386<div class="wrap">
    387387<?php screen_icon(); ?>
    388 <h2><?php
    389 echo esc_html( $title );
    390 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) {
    391     favorite_actions( $current_screen );
    392 }
     388<h2><?php echo esc_html( $title );
     389if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
     390<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     391<?php }
    393392if ( $s )
    394393    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.