Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2015 11:31:10 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Check that user_url exists before attempting to allow it in max-links. See r9392.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-moderation.php

    r9392 r9395  
    106106
    107107        // Allow for bumping the max to include the user's URL
    108         $num_links = apply_filters( 'comment_max_links_url', $num_links, $post['url'] );
     108        if ( ! empty( $post['url'] ) ) {
     109            $num_links = apply_filters( 'comment_max_links_url', $num_links, $post['url'] );
     110        }
    109111
    110112        // Das ist zu viele links!
     
    182184    // Define local variable
    183185    $post = array();
     186
     187    /** Blacklist *************************************************************/
     188
     189    // Get the moderation keys
     190    $blacklist = trim( get_option( 'blacklist_keys' ) );
     191
     192    // Bail if blacklist is empty
     193    if ( empty( $blacklist ) ) {
     194        return true;
     195    }
    184196
    185197    /** User Data *************************************************************/
     
    207219    $post['content'] = $content;
    208220
    209     /** Blacklist *************************************************************/
    210 
    211     // Get the moderation keys
    212     $blacklist = trim( get_option( 'blacklist_keys' ) );
    213 
    214     // Bail if blacklist is empty
    215     if ( empty( $blacklist ) ) {
    216         return true;
    217     }
    218 
    219221    /** Words *****************************************************************/
    220222
Note: See TracChangeset for help on using the changeset viewer.