Changeset 13968 for trunk/src/bp-core/bp-core-template-loader.php
- Timestamp:
- 07/23/2024 01:13:42 AM (17 months ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-template-loader.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template-loader.php
r13903 r13968 8 8 * 9 9 * @package BuddyPress 10 * @subpackage TemplateFunctions10 * @subpackage Core 11 11 * @since 1.7.0 12 12 */ … … 19 19 * 20 20 * @since 1.7.0 21 * @since 7.0.0 Added $argsparameter.21 * @since 7.0.0 Added `$args` parameter. 22 22 * 23 23 * @param string $slug Template part slug. Used to generate filenames, … … 55 55 * 56 56 * @since 1.7.0 57 * @since 7.0.0 Added $argsparameter.57 * @since 7.0.0 Added `$args` parameter. 58 58 * 59 59 * @param array $templates Array of templates located. … … 75 75 * 76 76 * @since 2.6.0 77 * @since 7.0.0 Added $argsparameter.77 * @since 7.0.0 Added `$args` parameter. 78 78 * 79 79 * @see bp_get_template_part() for full documentation. … … 156 156 * 157 157 * @since 1.7.0 158 * @since 7.0.0 Added $argsparameter.158 * @since 7.0.0 Added `$args` parameter. 159 159 * 160 160 * @param string|array $template_names Template file(s) to search for, in order. … … 218 218 * @since 2.5.0 219 219 * 220 * @param bool $ value True to load the template, false otherwise.220 * @param bool $load_template True to load the template, false otherwise. 221 221 */ 222 222 $load_template = (bool) apply_filters( 'bp_locate_template_and_load', true ); … … 392 392 * 393 393 * @since 1.7.0 394 * @since 7.0.0 Added $argsparameter.394 * @since 7.0.0 Added `$args` parameter. 395 395 * 396 396 * @see bp_get_template_part() for a description of $slug, $name and $args params. … … 541 541 * @since 1.7.0 542 542 * 543 * @param array $ valueArray of all template locations registered so far.543 * @param array $template_locations Array of all template locations registered so far. 544 544 * @param array $stacks Array of template locations. 545 545 */ … … 643 643 * @since 12.0.0 644 644 * 645 * @param WP_Query $ posts_query WP_Query instance. Passed by reference.645 * @param WP_Query $referer_query WP_Query instance. Passed by reference. 646 646 */ 647 647 do_action_ref_array( 'bp_parse_query', array( &$referer_query ) ); … … 654 654 * 655 655 * @since 12.0.0 656 * 657 * @global WP $wp WordPress main instance. 656 658 * 657 659 * @param string $bp_request A specific BuddyPress request. … … 659 661 * @return true 660 662 */ 661 function bp_reset_query( $bp_request = '', WP_Query$query = null ) {663 function bp_reset_query( $bp_request = '', $query = null ) { 662 664 global $wp; 663 665 … … 676 678 $matched_query = wp_parse_url( $bp_request, PHP_URL_QUERY ); 677 679 } else { 678 // Temporar ly override the request uri.680 // Temporarily override the request uri. 679 681 $_SERVER['REQUEST_URI'] = $bp_request; 680 682 … … 700 702 $query->parse_query( $matched_query ); 701 703 702 // Use to reque ryin case of root profiles.704 // Use to request in case of root profiles. 703 705 } elseif ( isset( $wp->request ) ) { 704 // Temporar ly override the request uri.706 // Temporarily override the request uri. 705 707 $_SERVER['REQUEST_URI'] = str_replace( $wp->request, $bp_request, $reset_server_request_uri ); 706 708 … … 783 785 * @since 1.8.0 784 786 * 785 * @return bool True if yes, false if no.787 * @return bool 786 788 */ 787 789 function bp_is_template_included() { … … 794 796 * @since 1.7.0 795 797 * 796 * @global string $pagenow 798 * @global string $pagenow The current page being loaded. 799 * @global WP_Query $wp_query The WordPress Query object. 797 800 */ 798 801 function bp_load_theme_functions() {
Note: See TracChangeset
for help on using the changeset viewer.