Skip to:
Content

BuddyPress.org

Ticket #8890: 8890.6.patch

File 8890.6.patch, 2.1 KB (added by viralsampat, 3 years ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • bp-notifications-adminbar.php

     
    1717 *
    1818 * @since 1.9.0
    1919 *
    20  * @param WP_Admin_Bar $wp_admin_bar WordPress object implementing a Toolbar API, passed by reference.
     20 * @global WP_Admin_Bar $wp_admin_bar WordPress object implementing a Toolbar API, passed by reference.
    2121 *
    2222 * @return bool
    2323 */
  • bp-notifications-functions.php

     
    777777 *
    778778 * @since 2.3.0
    779779 *
    780  * @global wpdb $wpdb WordPress database object.
    781  *
    782780 * @param int    $notification_id ID of the notification item whose metadata is being deleted.
    783781 * @param string $meta_key        Optional. The key of the metadata being deleted. If
    784782 *                                omitted, all metadata associated with the notification
  • classes/class-bp-notifications-notification.php

     
    915915         * @param array  $data  Array of notification data to update.
    916916         * @param array  $where The WHERE params to use to specify the item IDs to update.
    917917         * @return int|false    The number of updated rows. False on error.
     918         *
     919         * @global wpdb $wpdb WordPress database object.
    918920         */
    919921        public static function update_id_list( $field, $items = array(), $data = array(), $where = array() ) {
    920922                global $wpdb;
     
    10121014         * @param int[]  $items The list of items to delete.
    10131015         * @param array  $args  The WHERE arguments to use to specify the item IDs to delete.
    10141016         * @return int|false    The number of deleted rows. False on error.
     1017         *
     1018         * @global wpdb $wpdb WordPress database object.
    10151019         */
    10161020        public static function delete_by_id_list( $field, $items = array(), $args = array() ) {
    10171021                global $wpdb;