- Timestamp:
- 06/02/2024 07:12:25 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core-bp-nav-backcompat.php
r13818 r13900 3 3 * Backward compatibility for the $bp->bp_nav global. 4 4 * 5 * @package BuddyPress 6 * @subpackage Core 5 7 * @since 2.6.0 6 8 * @deprecated 12.0.0 9 * 10 * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.Found 11 * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed 7 12 */ 8 13 … … 11 16 12 17 /** 13 * bp_nav backward compatibility class.14 *15 18 * This class is used to provide backward compatibility for extensions that access and modify 16 19 * the $bp->bp_nav global. 20 * 21 * Backward compatibility class for `bp_nav`. 17 22 * 18 23 * @since 2.6.0 … … 20 25 */ 21 26 class BP_Core_BP_Nav_BackCompat implements ArrayAccess { 27 22 28 /** 23 29 * Nav items. 24 30 * 25 31 * @since 2.6.0 26 * @access public32 * 27 33 * @var array 28 34 */ … … 33 39 * 34 40 * @since 2.6.0 35 * @access public41 * 36 42 * @var array 37 43 */ … … 81 87 * 82 88 * @param mixed $offset Array offset. 83 * @return BP_Core_BP_Nav_BackCompat84 89 */ 85 90 #[ReturnTypeWillChange] … … 100 105 * 101 106 * @param mixed $offset Array offset. 102 * @return bool103 107 */ 104 108 #[ReturnTypeWillChange] … … 135 139 * @since 2.6.0 136 140 * @deprecated 12.0.0 137 * 138 * @param string $component 139 */ 140 public function set_component( $component ) { 141 */ 142 public function set_component() { 141 143 _deprecated_function( __METHOD__, '12.0.0' ); 142 144 } … … 151 153 * @since 2.6.0 152 154 * @deprecated 12.0.0 153 * 154 * @param mixed $offset Array offset. 155 * @return string|array 156 */ 157 public function get_component( $offset = '' ) { 155 */ 156 public function get_component() { 158 157 _deprecated_function( __METHOD__, '12.0.0' ); 159 158 } … … 178 177 * 179 178 * @param mixed $offset Array offset. 180 * @return bool|array181 179 */ 182 180 protected function get_nav( $offset ) { … … 197 195 * 198 196 * @param string $offset Nav item name. 199 * @return BP_Core_Nav200 197 */ 201 198 protected function get_component_nav( $offset = '' ) { … … 208 205 * @since 2.6.0 209 206 * @deprecated 12.0.0 210 *211 * @return array212 207 */ 213 208 protected function to_array() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)