Ticket #8890: 8890.4.patch
| File 8890.4.patch, 6.1 KB (added by , 3 years ago) |
|---|
-
bp-members-functions.php
881 881 * 882 882 * @param int $user_id The ID for the user. 883 883 * @return bool True if spammer, otherwise false. 884 * @global BP_Core_Members_Template $members_template The main member template loop class. 884 885 */ 885 886 function bp_is_user_spammer( $user_id = 0 ) { 886 887 … … 2456 2457 * @since 2.0.0 2457 2458 * 2458 2459 * @see bp_core_signup_disable_inactive() 2460 * @global $error 2459 2461 */ 2460 2462 function bp_members_login_resend_activation_email() { 2461 2463 global $error; … … 2624 2626 * Show a custom error message when a logged-in user is marked as a spammer. 2625 2627 * 2626 2628 * @since 1.8.0 2629 * @global $error. 2627 2630 */ 2628 2631 function bp_live_spammer_login_error() { 2629 2632 global $error; -
classes/class-bp-members-admin.php
721 721 /** 722 722 * Highlight the Users menu if on Edit Profile and check if on the user's admin profile. 723 723 * 724 * @since 2.1.0 724 * @since 2.1.0z 725 * 726 * @global string $submenu_file. 727 * @global string $parent_file. 725 728 */ 726 729 public function profile_admin_head() { 727 730 global $submenu_file, $parent_file; … … 1685 1688 * 1686 1689 * @param WP_User_Query|null $query The users query. 1687 1690 * @return WP_User_Query|null The users query without the signups. 1691 * @global wpdb $wpdb WordPress database object. 1688 1692 */ 1689 1693 public function remove_signups_from_user_query( $query = null ) { 1690 1694 global $wpdb; … … 1727 1731 * 1728 1732 * @param array $views WP List Table views. 1729 1733 * @return array The views with the signup view added. 1734 * 1735 * @global string $role. 1730 1736 */ 1731 1737 public function signup_filter_view( $views = array() ) { 1732 1738 global $role; … … 2765 2771 * @param WP_Query $query 2766 2772 * 2767 2773 * @since 2.7.0 2774 * 2775 * @global string $pagenow. 2768 2776 */ 2769 2777 public function users_table_filter_by_type( $query ) { 2770 2778 global $pagenow; -
classes/class-bp-members-component.php
289 289 * @see BP_Component::setup_globals() for description of parameters. 290 290 * 291 291 * @param array $args See {@link BP_Component::setup_globals()}. 292 * @global wpdb $wpdb WordPress database object. 292 293 */ 293 294 public function setup_globals( $args = array() ) { 294 295 global $wpdb; -
classes/class-bp-members-list-table.php
57 57 * manipulation required prior to rendering. 58 58 * 59 59 * @since 2.0.0 60 * 61 * @global $usersearch. 60 62 */ 61 63 public function prepare_items() { 62 64 global $usersearch; … … 98 100 * @since 2.5.0 99 101 * 100 102 * @global string $role The name of role the users screens is filtered by 103 * 104 * @global string $role. 101 105 */ 102 106 public function views() { 103 107 global $role; -
classes/class-bp-members-ms-list-table.php
57 57 * manipulation required prior to rendering. 58 58 * 59 59 * @since 2.0.0 60 * 61 * @global string $usersearch. 62 * @global string $mode. 60 63 */ 61 64 public function prepare_items() { 62 65 global $usersearch, $mode; … … 396 399 * @since 2.0.0 397 400 * 398 401 * @param object|null $signup_object The signup data object. 402 * @global string $mode. 399 403 */ 400 404 public function column_registered( $signup_object = null ) { 401 405 global $mode; … … 415 419 * @since 2.0.0 416 420 * 417 421 * @param object|null $signup_object Signup object instance. 422 * @global string $mode. 418 423 */ 419 424 public function column_date_sent( $signup_object = null ) { 420 425 global $mode; -
classes/class-bp-signup.php
172 172 * Populate the instantiated class with data based on the signup_id provided. 173 173 * 174 174 * @since 2.0.0 175 * 176 * @global wpdb $wpdb WordPress database object. 175 177 */ 176 178 public function populate() { 177 179 global $wpdb; … … 279 281 * @type array $signups Located signups. (IDs only if `fields` is set to `ids`.) 280 282 * @type int $total Total number of signups matching params. 281 283 * } 284 * @global wpdb $wpdb WordPress database object. 282 285 */ 283 286 public static function get( $args = array() ) { 284 287 global $wpdb; … … 454 457 * @type string $meta New user's user meta. 455 458 * } 456 459 * @return int|bool ID of newly created signup on success, false on failure. 460 * @global wpdb $wpdb WordPress database object. 457 461 */ 458 462 public static function add( $args = array() ) { 459 463 global $wpdb; … … 533 537 * @param string $user_email User email address. 534 538 * @param array $usermeta Metadata associated with the signup. 535 539 * @return int User id. 540 * @global wpdb $wpdb WordPress database object. 536 541 */ 537 542 public static function add_backcompat( $user_login = '', $user_password = '', $user_email = '', $usermeta = array() ) { 538 543 global $wpdb; … … 643 648 * 644 649 * @param string $key Activation key. 645 650 * @return bool True on success, false on failure. 651 * @global wpdb $wpdb WordPress database object. 646 652 */ 647 653 public static function validate( $key = '' ) { 648 654 global $wpdb; … … 721 727 * @type array $meta Meta to update. 722 728 * } 723 729 * @return int The signup id. 730 * @global wpdb $wpdb WordPress database object. 724 731 */ 725 732 public static function update( $args = array() ) { 726 733 global $wpdb; … … 984 991 * 985 992 * @param array $signup_ids Single ID or list of IDs to delete. 986 993 * @return array 994 * @global wpdb $wpdb WordPress database object. 987 995 */ 988 996 public static function delete( $signup_ids = array() ) { 989 997 global $wpdb;