Changeset 10108 for trunk/src/bp-core/bp-core-catchuri.php
- Timestamp:
- 09/13/2015 02:02:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r10012 r10108 1 1 <?php 2 3 2 /** 4 3 * BuddyPress URI catcher. … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 31 30 * - $bp->action_variables: array ['group', 5] 32 31 * 33 * @since BuddyPress (1.0.0)32 * @since 1.0.0 34 33 */ 35 34 function bp_core_set_uri_globals() { … … 59 58 * Filters the BuddyPress global URI path. 60 59 * 61 * @since BuddyPress (1.0.0)60 * @since 1.0.0 62 61 * 63 62 * @param string $path Path to set. … … 340 339 * Are root profiles enabled and allowed? 341 340 * 342 * @since BuddyPress (1.6.0)341 * @since 1.6.0 343 342 * 344 343 * @return bool True if yes, false if no. … … 354 353 * Filters whether or not root profiles are enabled and allowed. 355 354 * 356 * @since BuddyPress (1.6.0)355 * @since 1.6.0 357 356 * 358 357 * @param bool $retval Whether or not root profiles are available. … … 407 406 * Allows plugins to alter where the template files are located. 408 407 * 409 * @since BuddyPress (1.1.0)408 * @since 1.1.0 410 409 * 411 410 * @param string $template Located template path. … … 423 422 * Fires before the loading of a located template file. 424 423 * 425 * @since BuddyPress (1.6.0)424 * @since 1.6.0 426 425 * 427 426 * @param string $located_template Template found to be loaded. … … 432 431 * Filters the selected template right before loading. 433 432 * 434 * @since BuddyPress (1.1.0)433 * @since 1.1.0 435 434 * 436 435 * @param string $located_template Template found to be loaded. … … 441 440 * Fires after the loading of a located template file. 442 441 * 443 * @since BuddyPress (1.6.0)442 * @since 1.6.0 444 443 * 445 444 * @param string $located_template Template found that was loaded. … … 466 465 * Fires if there are no found templates to load and theme compat is needed. 467 466 * 468 * @since BuddyPress (1.7.0)467 * @since 1.7.0 469 468 */ 470 469 do_action( 'bp_setup_theme_compat' ); … … 481 480 * Filters the path to redirect users to if XProfile is not enabled. 482 481 * 483 * @since BuddyPress (1.0.0)482 * @since 1.0.0 484 483 * 485 484 * @param string $value Path to redirect users to. … … 492 491 * Catch unauthorized access to certain BuddyPress pages and redirect accordingly. 493 492 * 494 * @since BuddyPress (1.5.0)493 * @since 1.5.0 495 494 */ 496 495 function bp_core_catch_no_access() { … … 517 516 * If authenticated, redirects user back to requested content by default. 518 517 * 519 * @since BuddyPress (1.5.0)518 * @since 1.5.0 520 519 * 521 520 * @param array|string $args { … … 550 549 * Filters the arguments used for user redirecting when visiting access controlled areas. 551 550 * 552 * @since BuddyPress (1.6.0)551 * @since 1.6.0 553 552 * 554 553 * @param array $r Array of parsed arguments for redirect determination. … … 604 603 * Hooks into the "bpnoaccess" action defined in bp_core_no_access(). 605 604 * 606 * @since BuddyPress (1.5.0)605 * @since 1.5.0 607 606 * 608 607 * @global string $error Error message to pass to wp-login.php. … … 614 613 * Filters the error message for wp-login.php when needing to log in before accessing. 615 614 * 616 * @since BuddyPress (1.5.0)615 * @since 1.5.0 617 616 * 618 617 * @param string $value Error message to display. … … 635 634 * example.com/groups/mygroup/home/. 636 635 * 637 * @since BuddyPress (1.6.0)636 * @since 1.6.0 638 637 * 639 638 * @see BP_Members_Component::setup_globals() where … … 648 647 * Filters whether or not to do canonical redirects on BuddyPress URLs. 649 648 * 650 * @since BuddyPress (1.6.0)649 * @since 1.6.0 651 650 * 652 651 * @param bool $value Whether or not to do canonical redirects. Default true. … … 697 696 * Output rel=canonical header tag for BuddyPress content. 698 697 * 699 * @since BuddyPress (1.6.0)698 * @since 1.6.0 700 699 */ 701 700 function bp_rel_canonical() { … … 709 708 * Get the canonical URL of the current page. 710 709 * 711 * @since BuddyPress (1.6.0)710 * @since 1.6.0 712 711 * 713 712 * @uses apply_filters() Filter bp_get_canonical_url to modify return value. … … 757 756 * Filters the logged in register page redirect URL. 758 757 * 759 * @since BuddyPress (1.5.1)758 * @since 1.5.1 760 759 * 761 760 * @param string $value URL to redirect logged in members to. … … 805 804 * Filters the canonical url of the current page. 806 805 * 807 * @since BuddyPress (1.6.0)806 * @since 1.6.0 808 807 * 809 808 * @param string $canonical_url Canonical URL of the current page. … … 816 815 * Return the URL as requested on the current page load by the user agent. 817 816 * 818 * @since BuddyPress (1.6.0)817 * @since 1.6.0 819 818 * 820 819 * @return string Requested URL string. … … 831 830 * Filters the URL as requested on the current page load by the user agent. 832 831 * 833 * @since BuddyPress (1.7.0)832 * @since 1.7.0 834 833 * 835 834 * @param string $value Requested URL string. … … 847 846 * notice in future versions of BuddyPress. 848 847 * 849 * @since BuddyPress (1.6.0)848 * @since 1.6.0 850 849 * 851 850 * @uses bp_is_blog_page() … … 879 878 * (and plugin authors!) should ignore it. 880 879 * 881 * @since BuddyPress (1.6.1)880 * @since 1.6.1 882 881 * 883 882 * @link https://buddypress.trac.wordpress.org/ticket/4329 … … 898 897 * notice in future versions of BuddyPress. 899 898 * 900 * @since BuddyPress (1.6.0)899 * @since 1.6.0 901 900 */ 902 901 function _bp_maybe_remove_rel_canonical() {
Note: See TracChangeset
for help on using the changeset viewer.