Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 07:12:25 PM (2 years ago)
Author:
espellcaste
Message:

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

Follow-up to [13883], [13886], [13887], [13888], [13891], [13892], [13893]

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-bp-options-nav-backcompat.php

    r13818 r13900  
    33 * Backward compatibility for the $bp->bp_options_nav global.
    44 *
     5 * @package BuddyPress
     6 * @subpackage Core
    57 * @since 2.6.0
    68 * @deprecated 12.0.0
     
    1113
    1214/**
    13  * bp_options_nav backward compatibility class.
    14  *
    1515 * This class is used to provide backward compatibility for extensions that access and modify
    1616 * the $bp->bp_options_nav global.
     17 *
     18 * Backward compatibility class for `bp_options_nav`.
    1719 *
    1820 * @since 2.6.0
     
    2022 */
    2123class BP_Core_BP_Options_Nav_BackCompat extends BP_Core_BP_Nav_BackCompat {
     24
    2225        /**
    2326         * Parent slug of the current nav item.
    2427         *
    2528         * @since 2.6.0
    26          * @access protected
     29         *
    2730         * @var string
    2831         */
     
    3639         *
    3740         * @param mixed $offset Array offset.
    38          * @return BP_Core_BP_Nav_BackCompat
    3941         */
    4042        public function offsetGet( $offset ) {
     
    5557         * @param mixed $offset Array offset.
    5658         */
     59        #[ReturnTypeWillChange]
    5760        public function offsetUnset( $offset ) {
    5861                _doing_it_wrong(
     
    6972         * @since 2.6.0
    7073         * @deprecated 12.0.0
    71          *
    72          * @return string
    7374         */
    7475        public function get_parent_slug() {
     
    8283         * @deprecated 12.0.0
    8384         */
    84         public function set_parent_slug( $slug ) {
     85        public function set_parent_slug() {
    8586                _deprecated_function( __METHOD__, '12.0.0' );
    8687        }
     
    9394         *
    9495         * @param mixed $offset Array offset.
    95          * @return bool|array
    9696         */
    9797        public function get_nav( $offset ) {
Note: See TracChangeset for help on using the changeset viewer.