WordPress.org

Making WordPress.org

Changeset 2829


Ignore:
Timestamp:
03/28/2016 06:59:07 PM (3 years ago)
Author:
obenland
Message:

Plugin Directory: Don't use context outside the admin.

Since there is no title in edit.php, we need a context to let users know
plugin they're currently editing. In the toolbar that context is not available
however.

See #1571.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r2777 r2829  
    5151                'add_new'            => __( 'Add New',                   'wporg-plugins' ),
    5252                'add_new_item'       => __( 'Add New Plugin',            'wporg-plugins' ),
    53                 'edit_item'          => __( 'Editing Plugin: %s',        'wporg-plugins' ),
    5453                'new_item'           => __( 'New Plugin',                'wporg-plugins' ),
    5554                'view_item'          => __( 'View Plugin',               'wporg-plugins' ),
     
    5756                'not_found'          => __( 'No plugins found',          'wporg-plugins' ),
    5857                'not_found_in_trash' => __( 'No plugins found in Trash', 'wporg-plugins' ),
     58
     59                // Context only available in admin, not in toolbar.
     60                'edit_item'          => is_admin() ? __( 'Editing Plugin: %s', 'wporg-plugins' ) : __( 'Edit Plugin', 'wporg-plugins' ),
    5961            ),
    6062            'description'     => __( 'A Repo Plugin', 'wporg-plugins' ),
Note: See TracChangeset for help on using the changeset viewer.