Making WordPress.org

Ticket #2121: 2121.patch

File 2121.patch, 1.1 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

     
    77        public function __construct() {
    88                // Basic behavior filters and actions.
    99                add_filter( 'bbp_get_forum_pagination_count', '__return_empty_string' );
     10                add_filter( 'pre_option__bbp_edit_lock', array( $this, 'increase_edit_lock_time' ) );
    1011
    1112                // Display-related filters and actions.
    1213                add_filter( 'bbp_topic_admin_links', array( $this, 'admin_links' ), 10, 3 );
     
    5354        }
    5455
    5556        /**
     57         * Increase bbPress' default edit lock time from 5 minutes to 1 hour.
     58         *
     59         * @return int Filtered edit lock time.
     60         */
     61        function increase_edit_lock_time() {
     62                return 60;
     63        }
     64
     65        /**
    5666         * Remove some unneeded or redundant admin links for topics and replies,
    5767         * move less commonly used inline quick links to 'Topic Admin' sidebar section.
    5868         *