WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/14/2010 09:46:25 PM (11 years ago)
Author:
nacin
Message:

Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-users.php

    r14632 r14647  
    131131                    <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option>
    132132                    <option value="delete"><?php _e( 'Delete' ); ?></option>
    133                     <option value="spam"><?php echo _x( 'Mark as Spam', 'user' ); ?></option>
    134                     <option value="notspam"><?php echo _x( 'Not Spam', 'user' ); ?></option>
     133                    <option value="spam"><?php _ex( 'Mark as Spam', 'user' ); ?></option>
     134                    <option value="notspam"><?php _ex( 'Not Spam', 'user' ); ?></option>
    135135                </select>
    136136                <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    325325                    <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option>
    326326                    <option value="delete"><?php _e( 'Delete' ); ?></option>
    327                     <option value="spam"><?php echo _x( 'Mark as Spam', 'user' ); ?></option>
    328                     <option value="notspam"><?php echo _x( 'Not Spam', 'user' ); ?></option>
     327                    <option value="spam"><?php _ex( 'Mark as Spam', 'user' ); ?></option>
     328                    <option value="notspam"><?php _ex( 'Not Spam', 'user' ); ?></option>
    329329                </select>
    330330                <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
Note: See TracChangeset for help on using the changeset viewer.