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-sites.php

    r14632 r14647  
    114114                        </tr>
    115115                        <tr class="form-field">
    116                             <th scope="row"><?php echo _x( 'Registered', 'site' ) ?></th>
     116                            <th scope="row"><?php _ex( 'Registered', 'site' ) ?></th>
    117117                            <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></td>
    118118                        </tr>
     
    415415                <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option>
    416416                <option value="delete"><?php _e( 'Delete' ); ?></option>
    417                 <option value="spam"><?php echo _x( 'Mark as Spam', 'site' ); ?></option>
    418                 <option value="notspam"><?php echo _x( 'Not Spam', 'site' ); ?></option>
     417                <option value="spam"><?php _ex( 'Mark as Spam', 'site' ); ?></option>
     418                <option value="notspam"><?php _ex( 'Not Spam', 'site' ); ?></option>
    419419            </select>
    420420            <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    666666                <option value="-1" selected="selected"><?php _e( 'Bulk Actions' ); ?></option>
    667667                <option value="delete"><?php _e( 'Delete' ); ?></option>
    668                 <option value="spam"><?php echo _x( 'Mark as Spam', 'site' ); ?></option>
    669                 <option value="notspam"><?php echo _x( 'Not Spam', 'site' ); ?></option>
     668                <option value="spam"><?php _ex( 'Mark as Spam', 'site' ); ?></option>
     669                <option value="notspam"><?php _ex( 'Not Spam', 'site' ); ?></option>
    670670            </select>
    671671            <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.