Plugin Directory

Changeset 2567958


Ignore:
Timestamp:
07/20/2021 08:50:16 AM (5 years ago)
Author:
_luigi
Message:

Publishing RedBrick 1.0.1

Location:
redbrick
Files:
6 edited
8 copied

Legend:

Unmodified
Added
Removed
  • redbrick/tags/1.0.1/includes/comment-validator.class.php

    r2567045 r2567958  
    7777        $this->websiteURL     = $comment_data['comment_author_url'];
    7878        $this->IP             = ( isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '' );
    79         $this->content['raw'] = stripslashes( $comment_data['comment_content'] );
     79        $this->content['raw'] = str_replace( '\\', '', $comment_data['comment_content'] );
    8080    }
    8181
  • redbrick/tags/1.0.1/includes/core.class.php

    r2567045 r2567958  
    103103        switch ( $validation_id ) {
    104104            case 'spam':
    105                 $this->goBack();
     105                $this->goBack( $comment_data['comment_post_ID'] );
    106106                break;
    107107
     
    132132    /**
    133133     * @since 1.0
     134     * @param int $post_id
    134135     */
    135     private function goBack() {
     136    private function goBack( $post_id ) {
    136137        if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
    137138            $redirect_url = $_SERVER['HTTP_REFERER'];
    138139        }
    139140        else {
    140             $post         = get_post( $comment_data['comment_post_ID'] );
     141            $post         = get_post( $post_id );
    141142            $redirect_url = ( $post ? get_permalink( $post ) : home_url() );
    142143        }
  • redbrick/tags/1.0.1/readme.txt

    r2567045 r2567958  
    77Tested up to: 5.7.2
    88Requires PHP: 7.0
    9 Stable tag: 1.0
     9Stable tag: 1.0.1
    1010License: GPLv3
    1111License URI: https://opensource.org/licenses/GPL-3.0
     
    4949== Changelog ==
    5050
     51= 1.0.1 (20 July 2021) =
     52
     53Fixed a PHP notice and improved the detection of hyperlinks with multiple attributes.
     54
     55
    5156= 1.0 (19 July 2021) =
    5257
  • redbrick/tags/1.0.1/redbrick.php

    r2567045 r2567958  
    44 * Plugin URI: https://wordpress.org/plugins/redbrick/
    55 * Description: Simple anti-spam plugin for WordPress blogs.
    6  * Version: 1.0
     6 * Version: 1.0.1
    77 * Requires: 5.5
    88 * Author: Luigi Cavalieri
     
    1313 *
    1414 * @package RedBrick
    15  * @version 1.0
     15 * @version 1.0.1
    1616 * @copyright Copyright 2021 Luigi Cavalieri.
    1717 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0
  • redbrick/trunk/includes/comment-validator.class.php

    r2567045 r2567958  
    7777        $this->websiteURL     = $comment_data['comment_author_url'];
    7878        $this->IP             = ( isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '' );
    79         $this->content['raw'] = stripslashes( $comment_data['comment_content'] );
     79        $this->content['raw'] = str_replace( '\\', '', $comment_data['comment_content'] );
    8080    }
    8181
  • redbrick/trunk/includes/core.class.php

    r2567045 r2567958  
    103103        switch ( $validation_id ) {
    104104            case 'spam':
    105                 $this->goBack();
     105                $this->goBack( $comment_data['comment_post_ID'] );
    106106                break;
    107107
     
    132132    /**
    133133     * @since 1.0
     134     * @param int $post_id
    134135     */
    135     private function goBack() {
     136    private function goBack( $post_id ) {
    136137        if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
    137138            $redirect_url = $_SERVER['HTTP_REFERER'];
    138139        }
    139140        else {
    140             $post         = get_post( $comment_data['comment_post_ID'] );
     141            $post         = get_post( $post_id );
    141142            $redirect_url = ( $post ? get_permalink( $post ) : home_url() );
    142143        }
  • redbrick/trunk/readme.txt

    r2567045 r2567958  
    77Tested up to: 5.7.2
    88Requires PHP: 7.0
    9 Stable tag: 1.0
     9Stable tag: 1.0.1
    1010License: GPLv3
    1111License URI: https://opensource.org/licenses/GPL-3.0
     
    4949== Changelog ==
    5050
     51= 1.0.1 (20 July 2021) =
     52
     53Fixed a PHP notice and improved the detection of hyperlinks with multiple attributes.
     54
     55
    5156= 1.0 (19 July 2021) =
    5257
  • redbrick/trunk/redbrick.php

    r2567045 r2567958  
    44 * Plugin URI: https://wordpress.org/plugins/redbrick/
    55 * Description: Simple anti-spam plugin for WordPress blogs.
    6  * Version: 1.0
     6 * Version: 1.0.1
    77 * Requires: 5.5
    88 * Author: Luigi Cavalieri
     
    1313 *
    1414 * @package RedBrick
    15  * @version 1.0
     15 * @version 1.0.1
    1616 * @copyright Copyright 2021 Luigi Cavalieri.
    1717 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0
Note: See TracChangeset for help on using the changeset viewer.