Changeset 7380 for trunk/src/includes/core/update.php
- Timestamp:
- 12/05/2025 02:27:53 AM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/update.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/update.php
r7378 r7380 2 2 3 3 /** 4 * bbPress Updater 4 * bbPress Updater. 5 5 * 6 6 * @package bbPress … … 12 12 13 13 /** 14 * If there is no raw DB version, this is the first installation 14 * If there is no raw DB version, this is the first installation. 15 15 * 16 16 * @since 2.1.0 bbPress (r3764) 17 17 * 18 * @return bool True if update, False if not 18 * @return bool True if update, False if not. 19 19 */ 20 20 function bbp_is_install() { … … 23 23 24 24 /** 25 * Compare the bbPress version to the DB version to determine if updating 25 * Compare the bbPress version to the DB version to determine if updating. 26 26 * 27 27 * @since 2.0.0 bbPress (r3421) 28 28 * 29 * @return bool True if update, False if not 29 * @return bool True if update, False if not. 30 30 */ 31 31 function bbp_is_update() { … … 37 37 38 38 /** 39 * Determine if bbPress is being activated 39 * Determine if bbPress is being activated. 40 40 * 41 41 * Note that this function currently is not used in bbPress core and is here … … 46 46 * @global string $pagenow The filename of the current screen. 47 47 * 48 * @return bool True if activating bbPress, false if not 48 * @param string $basename Plugin base name. 49 * 50 * @return bool True if activating bbPress, false if not. 49 51 */ 50 52 function bbp_is_activation( $basename = '' ) { … … 92 94 93 95 /** 94 * Determine if bbPress is being deactivated 96 * Determine if bbPress is being deactivated. 95 97 * 96 98 * @since 2.0.0 bbPress (r3421) … … 98 100 * @global string $pagenow The filename of the current screen. 99 101 * 100 * @return bool True if deactivating bbPress, false if not 102 * @param string $basename Plugin base name. 103 * 104 * @return bool True if deactivating bbPress, false if not. 101 105 */ 102 106 function bbp_is_deactivation( $basename = '' ) { … … 144 148 145 149 /** 146 * Update the DB to the latest version 150 * Update the DB to the latest version. 147 151 * 148 152 * @since 2.0.0 bbPress (r3421) … … 153 157 154 158 /** 155 * Setup the bbPress updater 159 * Setup the bbPress updater. 156 160 * 157 161 * @since 2.0.0 bbPress (r3419) … … 170 174 /** 171 175 * Runs when a new site is created in a multisite network, and bbPress is active 172 * on that site (hooked to `bbp_new_site`) 176 * on that site (hooked to `bbp_new_site`). 173 177 * 174 178 * @since 2.6.0 bbPress (r6779) 179 * 180 * @param int $site_id Side id. 175 181 */ 176 182 function bbp_setup_new_site( $site_id = 0 ) { … … 193 199 194 200 /** 195 * Create a default forum, topic, and reply 201 * Create a default forum, topic, and reply. 196 202 * 197 203 * @since 2.1.0 bbPress (r3767) 198 204 * 199 * @param array $args Array of arguments to override default values 205 * @param array $args Array of arguments to override default values. 200 206 */ 201 207 function bbp_create_initial_content( $args = array() ) { … … 425 431 426 432 /** 427 * Redirect user to the "What's New" page on activation 433 * Redirect user to the "What's New" page on activation. 428 434 * 429 435 * @since 2.2.0 bbPress (r4389) 430 436 * 431 * @internal Used internally to redirect bbPress to the about page on activation 432 * 433 * @return If network admin or bulk activation 437 * @internal Used internally to redirect bbPress to the about page on activation. 438 * 439 * @return If network admin or bulk activation. 434 440 */ 435 441 function bbp_add_activation_redirect() { … … 445 451 446 452 /** 447 * Redirect user to "What's New" page on activation 453 * Redirect user to "What's New" page on activation. 448 454 * 449 455 * @since 2.2.0 bbPress (r4389) 450 456 * 451 * @internal Used internally to redirect bbPress to the about page on activation 452 * 453 * @return If no transient, or in network admin, or is bulk activation 457 * @internal Used internally to redirect bbPress to the about page on activation. 458 * 459 * @return If no transient, or in network admin, or is bulk activation. 454 460 */ 455 461 function bbp_do_activation_redirect() { … … 484 490 * @since 2.4.0 bbPress (r4910) 485 491 * 486 * @internal Used to internally make the current user a keymaster on activation 487 * 488 * @return If user can't activate plugins or is already a keymaster 492 * @internal Used to internally make the current user a keymaster on activation. 493 * 494 * @return If user can't activate plugins or is already a keymaster. 489 495 */ 490 496 function bbp_make_current_user_keymaster() { … … 532 538 533 539 /** 534 * Return the number of pending upgrades 540 * Return the number of pending upgrades. 535 541 * 536 542 * @since 2.6.0 bbPress (r6895) 537 543 * 538 * @param string $type Type of pending upgrades (upgrade|repair|empty) 544 * @param string $type Type of pending upgrades (upgrade|repair|empty). 539 545 * 540 546 * @return int … … 545 551 546 552 /** 547 * Return an array of pending upgrades 553 * Return an array of pending upgrades. 548 554 * 549 555 * @since 2.6.0 bbPress (r6895) 550 556 * 551 * @param string $type Type of pending upgrades (upgrade|repair|empty) 557 * @param string $type Type of pending upgrades (upgrade|repair|empty). 552 558 * 553 559 * @return array … … 569 575 570 576 /** 571 * Add an upgrade ID to pending upgrades array 577 * Add an upgrade ID to pending upgrades array. 572 578 * 573 579 * @since 2.6.0 bbPress (r6895) … … 590 596 591 597 /** 592 * Add an upgrade ID to pending upgrades array 598 * Add an upgrade ID to pending upgrades array. 593 599 * 594 600 * @since 2.6.0 bbPress (r6895) … … 614 620 615 621 /** 616 * Delete all pending upgrades 622 * Delete all pending upgrades. 617 623 * 618 624 * @since 2.6.0 bbPress (r6895) … … 623 629 624 630 /** 625 * Maybe append an upgrade count to a string 631 * Maybe append an upgrade count to a string. 626 632 * 627 633 * @since 2.6.0 bbPress (r6896) 628 634 * 629 * @param string $text Text to append count to 630 * @param string $type Type of pending upgrades (upgrade|repair|empty) 635 * @param string $text Text to append count to. 636 * @param string $type Type of pending upgrades (upgrade|repair|empty). 631 637 * 632 638 * @return string
Note: See TracChangeset
for help on using the changeset viewer.