Skip to:
Content

bbPress.org

Changeset 7027


Ignore:
Timestamp:
12/13/2019 06:59:04 PM (2 years ago)
Author:
johnjamesjacoby
Message:

Users: register the _bbp_last_posted meta key.

This commit ensures that the meta key used to check if a user needs to be slowed down is registered.

See #3305. For 2.6.4, branches/2.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/bbpress.php

    r7022 r7027  
    790790        register_meta( 'user', '_bbp_topic_count', $count );
    791791        register_meta( 'user', '_bbp_reply_count', $count );
     792
     793        // Activity
     794        register_meta( 'user', '_bbp_last_posted', array(
     795            'type'              => 'integer',
     796            'description'       => esc_html__( 'bbPress User Activity', 'bbpress' ),
     797            'single'            => true,
     798            'show_in_rest'      => true,
     799            'sanitize_callback' => 'bbp_number_not_negative',
     800            'auth_callback'     => '__return_true'
     801        ) );
    792802    }
    793803
Note: See TracChangeset for help on using the changeset viewer.