Changeset 15452 for branches/3.0/wp-admin/includes/template.php
- Timestamp:
- 07/21/2010 08:10:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/includes/template.php
r15337 r15452 848 848 */ 849 849 function inline_edit_row( $screen ) { 850 global $ current_user, $mode;850 global $mode; 851 851 852 852 if ( is_string($screen) ) { … … 929 929 930 930 if ( post_type_supports( $screen->post_type, 'author' ) ) : 931 $authors = get_editable_user_ids( $current_user->id, true, $screen->post_type ); // TODO: ROLE SYSTEM931 $authors = get_editable_user_ids( get_current_user_id(), true, $screen->post_type ); // TODO: ROLE SYSTEM 932 932 $authors_dropdown = ''; 933 933 if ( $authors && count( $authors ) > 1 ) : … … 1270 1270 */ 1271 1271 function _post_row($a_post, $pending_comments, $mode) { 1272 global $post, $current_ user, $current_screen;1272 global $post, $current_screen; 1273 1273 static $rowclass; 1274 1274 … … 1278 1278 1279 1279 $rowclass = 'alternate' == $rowclass ? '' : 'alternate'; 1280 $post_owner = ( $current_user->ID== $post->post_author ? 'self' : 'other' );1280 $post_owner = ( get_current_user_id() == $post->post_author ? 'self' : 'other' ); 1281 1281 $edit_link = get_edit_post_link( $post->ID ); 1282 1282 $title = _draft_or_post_title(); … … 1796 1796 global $wp_roles; 1797 1797 1798 $current_user = wp_get_current_user();1799 1800 1798 if ( !( is_object( $user_object) && is_a( $user_object, 'WP_User' ) ) ) 1801 1799 $user_object = new WP_User( (int) $user_object ); … … 1814 1812 // Set up the user editing link 1815 1813 // TODO: make profile/user-edit determination a separate function 1816 if ( $current_user->ID== $user_object->ID) {1814 if ( get_current_user_id() == $user_object->ID) { 1817 1815 $edit_link = 'profile.php'; 1818 1816 } else { … … 1831 1829 } 1832 1830 1833 if ( !is_multisite() && $current_user->ID!= $user_object->ID && current_user_can('delete_user', $user_object->ID) )1831 if ( !is_multisite() && get_current_user_id() != $user_object->ID && current_user_can('delete_user', $user_object->ID) ) 1834 1832 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>"; 1835 if ( is_multisite() && $current_user->ID!= $user_object->ID && current_user_can('remove_user', $user_object->ID) )1833 if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can('remove_user', $user_object->ID) ) 1836 1834 $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=remove&user=$user_object->ID", 'bulk-users') . "'>" . __('Remove') . "</a>"; 1837 1835 $actions = apply_filters('user_row_actions', $actions, $user_object); … … 2226 2224 */ 2227 2225 function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) { 2228 global $current_user;2229 2230 2226 // allow plugin to replace the popup content 2231 2227 $content = apply_filters( 'wp_comment_reply', '', array('position' => $position, 'checkbox' => $checkbox, 'mode' => $mode) ); … … 2279 2275 </p> 2280 2276 2281 <input type="hidden" name="user_ID" id="user_ID" value="<?php echo $current_user->ID; ?>" />2277 <input type="hidden" name="user_ID" id="user_ID" value="<?php echo get_current_user_id(); ?>" /> 2282 2278 <input type="hidden" name="action" id="action" value="" /> 2283 2279 <input type="hidden" name="comment_ID" id="comment_ID" value="" />
Note: See TracChangeset
for help on using the changeset viewer.