Ticket #8892: 8892.5.patch
File 8892.5.patch, 3.2 KB (added by , 19 months ago) |
---|
-
src/bp-core/bp-core-buddybar.php
119 119 * @return false|array Returns false on failure, new nav item on success. 120 120 */ 121 121 function bp_core_create_nav_link( $args = '', $component = 'members' ) { 122 $bp = buddypress();123 122 124 123 $defaults = array( 125 124 'component_id' => '', // The component ID registering this nav item. … … 538 537 * @return false|array Returns false on failure, new BP_Core_Nav_Item instance on success. 539 538 */ 540 539 function bp_core_create_subnav_link( $args = '', $component = 'members' ) { 541 $bp = buddypress();542 540 543 541 $r = bp_parse_args( 544 542 $args, -
src/bp-core/classes/class-bp-block.php
197 197 $this->block = new WP_Error( 'script_registration_error', __( 'The required `editor_script` could not be registered.', 'buddypress' ) ); 198 198 } else { 199 199 // Register the styles. 200 $registered_styles = array();201 200 202 201 foreach ( array( 'editor_style', 'style' ) as $style_handle_key ) { 203 202 if ( ! isset( $wp_args[ $style_handle_key ] ) || ! $wp_args[ $style_handle_key ] ) { -
src/bp-core/classes/class-bp-core-bp-nav-backcompat.php
216 216 * @return bool|array 217 217 */ 218 218 protected function get_nav( $offset ) { 219 $bp = buddypress();220 219 221 220 $component_nav = $this->get_component_nav( $offset ); 222 221 $primary_nav = $component_nav->get_primary( array( 'slug' => $offset ), false ); -
src/bp-core/classes/class-bp-invitation-manager.php
169 169 * @return bool The result of `run_send_action()`. 170 170 */ 171 171 public function send_invitation_by_id( $invitation_id = 0, $args = array() ) { 172 $updated = false;173 172 174 173 $invitation = new BP_Invitation( $invitation_id ); 175 174 … … 327 326 * @return bool The result of `run_send_action()`. 328 327 */ 329 328 public function send_request_notification_by_id( $request_id = 0, $args = array() ) { 330 $updated = false;331 329 332 330 $request = new BP_Invitation( $request_id ); 333 331 -
src/bp-core/classes/class-bp-media-extractor.php
519 519 */ 520 520 protected function extract_embeds( $richtext, $plaintext, $extra_args = array() ) { 521 521 $data = array( 'has' => array( 'embeds' => 0 ), 'embeds' => array() ); 522 $embeds = array();523 522 524 523 if ( ! function_exists( '_wp_oembed_get_object' ) ) { 525 524 require( ABSPATH . WPINC . '/class-oembed.php' );