Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/23/2024 01:13:42 AM (11 months ago)
Author:
espellcaste
Message:

WPCS: Part XII: miscellaneous fixes for some of the files of the core component.

Follow-up to [13904]

See #9174 and #9173

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-update.php

    r13943 r13968  
    44 *
    55 * @package BuddyPress
    6  * @subpackage Updater
     6 * @subpackage Core
    77 * @since 1.6.0
    88 */
     
    338338 *
    339339 * @since 2.3.0
     340 *
     341 * @global wpdb $wpdb WordPress database object.
    340342 */
    341343function bp_pre_schema_upgrade() {
     
    731733 *
    732734 * @param array $emails The array of emails schema.
     735 * @return array
    733736 */
    734737function bp_core_get_8_0_upgrade_email_schema( $emails ) {
     
    769772 *
    770773 * @param array $emails The array of emails schema.
     774 * @return array
    771775 */
    772776function bp_core_get_10_0_upgrade_email_schema( $emails ) {
     
    807811 *
    808812 * @param array $emails The array of emails schema.
     813 * @return array
    809814 */
    810815function bp_core_get_11_0_upgrade_email_schema( $emails ) {
     
    947952 *
    948953 * Edit db schema to stop using boolean fields in favor of tinyint ones.
    949  * This moves was necessary to support WP Playground.
     954 * This move was necessary to support WP Playground.
    950955 *
    951956 * @since 14.0.0
     957 *
     958 * @global wpdb $wpdb WordPress database object.
    952959 */
    953960function bp_update_to_14_0() {
    954961    global $wpdb;
    955     $bp        = buddypress();
    956     $bp_prefix = bp_core_get_table_prefix();
     962
     963    $bp = buddypress();
    957964
    958965    if ( isset( $bp->members->table_name_last_activity ) && $wpdb->get_var( "SHOW TABLES LIKE '%{$bp->members->table_name_last_activity}%'" ) ) {
     
    10001007function bp_migrate_new_member_activity_component() {
    10011008    global $wpdb;
     1009
    10021010    $bp = buddypress();
    10031011
Note: See TracChangeset for help on using the changeset viewer.