Changeset 9877 for trunk/src/bp-members/bp-members-admin.php
- Timestamp:
- 05/19/2015 01:40:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-admin.php
r9819 r9877 208 208 209 209 /** 210 * Get the user ID 210 * Get the user ID. 211 211 * 212 212 * Look for $_GET['user_id']. If anything else, force the user ID to the … … 233 233 234 234 /** 235 * Can the current user edit the one displayed 235 * Can the current user edit the one displayed. 236 236 * 237 237 * self profile editing / or bp_moderate check. … … 241 241 * @access public 242 242 * @since BuddyPress (2.1.0) 243 * 244 * @param int $user_id ID of the user being checked for edit ability. 245 * 246 * @return bool 243 247 */ 244 248 private function member_can_edit( $user_id = 0 ) { … … 263 267 264 268 /** 265 * Get admin notice when saving a user or member profile 269 * Get admin notice when saving a user or member profile. 266 270 * 267 271 * @since BuddyPress (2.1.0) … … 464 468 465 469 /** 466 * Highlight the Users menu if on Edit Profile. 467 * 468 * + Check if on the user's admin profile 470 * Highlight the Users menu if on Edit Profile and check if on the user's admin profile. 469 471 * 470 472 * @access public … … 599 601 * @access public 600 602 * @since BuddyPress (2.0.0) 603 * 604 * @param object|null $user User to create profile navigation for. 605 * @param string $active Which profile to highlight. 606 * 607 * @return string 601 608 */ 602 609 public function profile_nav( $user = null, $active = 'WordPress' ) { … … 1152 1159 * @since BuddyPress (2.0.0) 1153 1160 * 1154 * @param array $actions WordPress row actions (edit, delete). 1155 * @param object $user The object for the user row. 1161 * @param array|string $actions WordPress row actions (edit, delete). 1162 * @param object $user The object for the user row. 1163 * 1156 1164 * @return array Merged actions. 1157 1165 */ … … 1206 1214 1207 1215 /** 1208 * Add a filter to edit profile url in WP Admin Bar 1216 * Add a filter to edit profile url in WP Admin Bar. 1209 1217 * 1210 1218 * @access public … … 1216 1224 1217 1225 /** 1218 * Filter the profile url 1226 * Filter the profile url. 1219 1227 * 1220 1228 * @access public … … 1222 1230 * 1223 1231 * @uses user_admin_url() 1232 * 1233 * @param string $profile_link Profile Link for admin bar. 1234 * @param string $url Profile URL. 1235 * @param int $user_id User ID. 1236 * 1237 * @return string 1224 1238 */ 1225 1239 public function filter_adminbar_profile_link( $profile_link = '', $url = '', $user_id = 0 ) { … … 1231 1245 1232 1246 /** 1233 * Remove the filter to edit profile url in WP Admin Bar 1247 * Remove the filter to edit profile url in WP Admin Bar. 1234 1248 * 1235 1249 * @access public … … 1248 1262 * @since BuddyPress (2.0.0) 1249 1263 * 1250 * @param int $value 1251 * @param string $option 1252 * @param int $new_value 1253 * @return int the pagination preferences 1264 * @param int $value 1265 * @param string $option 1266 * @param int $new_value 1267 * 1268 * @return int The pagination preferences. 1254 1269 */ 1255 1270 public function signup_screen_options( $value = 0, $option = '', $new_value = 0 ) { … … 1275 1290 * @since BuddyPress (2.0.0) 1276 1291 * 1277 * @param WP_User_Query $query The users query. 1292 * @param WP_User_Query $query The users query. 1293 * 1278 1294 * @return WP_User_Query The users query without the signups. 1279 1295 */ … … 1317 1333 * @since BuddyPress (2.0.0) 1318 1334 * 1319 * @param array $views WP List Table views. 1335 * @param array $views WP List Table views. 1336 * 1320 1337 * @return array The views with the signup view added. 1321 1338 */ … … 1344 1361 * @since BuddyPress (2.0.0) 1345 1362 * 1346 * @param string $class The name of the class to use. 1347 * @param string $required The parent class. 1363 * @param string $class The name of the class to use. 1364 * @param string $required The parent class. 1365 * 1348 1366 * @return WP_List_Table The List table. 1349 1367 */ … … 1569 1587 1570 1588 /** 1571 * Get admin notice when viewing the sign-up page 1589 * Get admin notice when viewing the sign-up page. 1572 1590 * 1573 1591 * @since BuddyPress (2.1.0) … … 1720 1738 * 1721 1739 * Depending on the context, display 1722 * - the list of signups 1723 * - or the delete confirmation screen 1724 * - or the activate confirmation screen 1725 * - or the "resend" email confirmation screen 1740 * - the list of signups, 1741 * - or the delete confirmation screen, 1742 * - or the activate confirmation screen, 1743 * - or the "resend" email confirmation screen. 1726 1744 * 1727 1745 * Also prepare the admin notices. … … 1864 1882 * 1865 1883 * @param string $action Delete, activate, or resend activation link. 1884 * 1885 * @return string 1866 1886 */ 1867 1887 public function signups_admin_manage( $action = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.