Skip to:
Content

bbPress.org

Changeset 7028


Ignore:
Timestamp:
12/13/2019 07:00:05 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.7, trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bbpress.php

    r7006 r7028  
    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.