Changeset 4658 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 12/21/2006 11:06:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4657 r4658 41 41 if ( 'page' == $_POST['post_type'] ) { 42 42 if ( !current_user_can( 'edit_others_pages' ) ) 43 return new WP_Error( 'edit_others_pages', __( 'You cannotcreate pages as this user.' ) );43 return new WP_Error( 'edit_others_pages', __( 'You are not allowed to create pages as this user.' ) ); 44 44 } else { 45 45 if ( !current_user_can( 'edit_others_posts' ) ) 46 return new WP_Error( 'edit_others_posts', __( 'You cannotpost as this user.' ) );46 return new WP_Error( 'edit_others_posts', __( 'You are not allowed to post as this user.' ) ); 47 47 48 48 } … … 185 185 if ( 'page' == $_POST['post_type'] ) { 186 186 if ( !current_user_can( 'edit_others_pages' ) ) 187 wp_die( __('You cannotedit pages as this user.' ));187 wp_die( __('You are not allowed to edit pages as this user.' )); 188 188 } else { 189 189 if ( !current_user_can( 'edit_others_posts' ) ) 190 wp_die( __('You cannotedit posts as this user.' ));190 wp_die( __('You are not allowed to edit posts as this user.' )); 191 191 192 192 } … … 562 562 function edit_link( $link_id = '' ) { 563 563 if (!current_user_can( 'manage_links' )) 564 wp_die( __( "Cheatin' uh ?"));564 wp_die( __( 'Cheatin&8217; uh?' )); 565 565 566 566 $_POST['link_url'] = wp_specialchars( $_POST['link_url'] ); … … 827 827 if ( $numposts > 0 ) { 828 828 $r .= "<a href='edit.php?author=$user_object->ID' title='" . __( 'View posts by this author' ) . "' class='edit'>"; 829 $r .= sprintf( __('View %1$s %2$s' ), $numposts, __ngettext( 'post', 'posts', $numposts ));829 $r .= sprintf(__ngettext( 'View %s post', 'View %s posts', $numposts ), $numposts); 830 830 $r .= '</a>'; 831 831 } … … 1070 1070 <?php 1071 1071 if ( $edit ) { 1072 _e( 'Existing timestamp' ); 1073 //echo ': ' . $wp_locale->get_month( $mm ) . "$jj, $aa @ $hh:$mn"; 1074 echo sprintf( __(': %1$s %2$s, %3$s @ %4$s:%5$s' ), $wp_locale->get_month( $mm ), $jj, $aa, $hh, $mn ); 1072 printf( __('Existing timestamp: %1$s %2$s, %3$s @ %4$s:%5$s' ), $wp_locale->get_month( $mm ), $jj, $aa, $hh, $mn ); 1075 1073 } 1076 1074 ?>
Note: See TracChangeset
for help on using the changeset viewer.