Skip to:
Content

BuddyPress.org

Changeset 13927


Ignore:
Timestamp:
06/13/2024 07:39:42 PM (3 months ago)
Author:
johnjamesjacoby
Message:

WPCS: param & global docs corrections.

Some were missing, out-of-order, or potentially wrong based on conditional logic (I.E. when specific class names are juggled based on Site/Network admin area contexts). For those, I opted just to use "object" rather than the exact class names, because they're lengthy & ugly & make the docs more difficult to read. Feel free to override that decision later!

See: #9174.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-functions.php

    r13897 r13927  
    403403 * @since 2.2.0
    404404 *
    405  * @global $wp_post_types
     405 * @global array $wp_post_types
    406406 *
    407407 * @param string $post_type The name of the post type, as registered with WordPress. Eg 'post' or 'page'.
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r13896 r13927  
    2727 * The old "bp-general-settings" page was renamed "bp-components".
    2828 *
    29  * @since 1.6.0 
     29 * @since 1.6.0
    3030 *
    3131 * @global array $_parent_pages
     
    11311131 * @since 7.0.0 Uses wp_nav_menu_item_post_type_meta_box()
    11321132 *
    1133  * @global $nav_menu_selected_id
     1133 * @global int|string $nav_menu_selected_id
    11341134 *
    11351135 * @param WP_Post $post The current post object.
  • trunk/src/bp-core/admin/bp-core-admin-optouts.php

    r13926 r13927  
    2020 * @since 8.0.0
    2121 *
    22  * @global $bp_optouts_list_table BP_Optouts_List_Table List table instance for nonmember opt-outs admin page.
     22 * @global object $bp_optouts_list_table List table instance for nonmember opt-outs admin page.
    2323 */
    2424function bp_core_optouts_admin_load() {
     
    291291 * @since 8.0.0
    292292 *
    293  * @global $plugin_page
    294  * @global $bp_optouts_list_table BP_Optouts_List_Table List table instance for nonmember opt-outs admin page.
     293 * @global string $plugin_page
     294 * @global object $bp_optouts_list_table List table instance for nonmember opt-outs admin page.
    295295 */
    296296function bp_core_optouts_admin_index() {
  • trunk/src/bp-core/bp-core-avatars.php

    r13891 r13927  
    21322132 * @since 2.3.0
    21332133 *
    2134  * @global $is_safari
    2135  * @global $is_IE
     2134 * @global bool $is_safari
     2135 * @global bool $is_IE
    21362136 *
    21372137 * @return bool True to load the Webcam Avatar UI part. False otherwise.
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r13878 r13927  
    18191819     * @since 2.0.0
    18201820     *
    1821      * @global $bp_members_signup_list_table
     1821     * @global object $bp_members_signup_list_table
    18221822     */
    18231823    public function signups_admin_load() {
     
    22872287     * @since 2.0.0
    22882288     *
    2289      * @global $plugin_page
    2290      * @global $bp_members_signup_list_table
     2289     * @global string $plugin_page
     2290     * @global object $bp_members_signup_list_table
    22912291     */
    22922292    public function signups_admin_index() {
     
    28682868     * @since 8.0.0
    28692869     *
    2870      * @global $bp_members_invitations_list_table
     2870     * @global object $bp_members_invitations_list_table
    28712871     */
    28722872    public function members_invitations_admin_load() {
     
    31953195     * @since 8.0.0
    31963196     *
    3197      * @global $plugin_page
    3198      * @global $bp_members_invitations_list_table
     3197     * @global string $plugin_page
     3198     * @global object $bp_members_invitations_list_table
    31993199     */
    32003200    public function invitations_admin_index() {
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/manage-members.php

    r13822 r13927  
    6666                             * @since 2.7.0 Added $section parameter.
    6767                             *
    68                              * @param $section Which list contains this item.
     68                             * @param string $section Which list contains this item.
    6969                             */
    7070                            do_action( 'bp_group_manage_members_admin_item', 'admins-list' ); ?>
     
    8383                             * @since 2.7.0
    8484                             *
    85                              * @param $section Which list contains this item.
     85                             * @param string $section Which list contains this item.
    8686                             */
    8787                            do_action( 'bp_group_manage_members_admin_actions', 'admins-list' ); ?>
     
    160160                             * @since 2.7.0 Added $section parameter.
    161161                             *
    162                              * @param $section Which list contains this item.
     162                             * @param string $section Which list contains this item.
    163163                             */
    164164                            do_action( 'bp_group_manage_members_admin_item', 'admins-list' ); ?>
     
    176176                             * @since 2.7.0
    177177                             *
    178                              * @param $section Which list contains this item.
     178                             * @param string $section Which list contains this item.
    179179                             */
    180180                            do_action( 'bp_group_manage_members_admin_actions', 'mods-list' ); ?>
     
    261261                             * @since 2.7.0 Added $section parameter.
    262262                             *
    263                              * @param $section Which list contains this item.
     263                             * @param string $section Which list contains this item.
    264264                             */
    265265                            do_action( 'bp_group_manage_members_admin_item', 'admins-list' ); ?>
     
    288288                             * @since 2.7.0
    289289                             *
    290                              * @param $section Which list contains this item.
     290                             * @param string $section Which list contains this item.
    291291                             */
    292292                            do_action( 'bp_group_manage_members_admin_actions', 'members-list' ); ?>
Note: See TracChangeset for help on using the changeset viewer.