Plugin Directory

Changeset 959971


Ignore:
Timestamp:
08/04/2014 01:09:04 PM (12 years ago)
Author:
george_michael
Message:

bug fix for http

Location:
suggest-review
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • suggest-review/tags/1.2.5/readme.txt

    r925700 r959971  
    55Requires at least: 3.5.2
    66Tested up to: 3.9.1
    7 Stable tag: 1.2.4
     7Stable tag: 1.2.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 1.2.5 =
     51* Fixed bug that caused the button to now appear when using http instead of https. Thanks to WPHaider for finding it.
     52
    5053= 1.2.4 =
    5154* Added option for text alignment of footer.
     
    7881== Upgrade Notice ==
    7982
     83= 1.2.5 =
     84Bug fix. Upgrade recommended.
     85
    8086= 1.2.4 =
    8187New option. Upgrade optional.
  • suggest-review/tags/1.2.5/suggest-review.php

    r878914 r959971  
    22/**
    33 * @package Suggest_Review
    4  * @version 1.2.4
     4 * @version 1.2.5
    55 */
    66/*
     
    99Description: Lets users suggest that content may need to be reviewed or re-examined.
    1010Author: Michael George
    11 Version: 1.2.4
     11Version: 1.2.5
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    106106            //Check to see if the URL is a permalink, if not, we aren't doing anything
    107107            //This prevents the suggest review button from appear on search results and post lists
    108             if ( "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] == get_permalink() ) {
    109 
     108            // Bug fix in 1.2.5: The check below was hard coded to using https and is now dynamic
     109            if ( "http" . ( $_SERVER['HTTPS'] == "on" ? "s" : "" ) . "://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] == get_permalink() ) {
     110                echo "<!-- sr content_insertion found uri is permalink -->\r";
    110111                if ( isset( $_POST['suggestreview'] ) && $_POST['suggestreview'] == '1' && isset( $_POST['suggestreviewid'] ) && $_POST['suggestreviewid'] == $my_post_id ) {
    111112                    $this->markForReview( $_POST['suggestreviewid'], $my_user->user_login, date( 'Y-m-d H:i:s', current_time( 'timestamp', 0 ) ), $_POST['suggestreviewcomment'], $my_author );
  • suggest-review/trunk/readme.txt

    r925700 r959971  
    55Requires at least: 3.5.2
    66Tested up to: 3.9.1
    7 Stable tag: 1.2.4
     7Stable tag: 1.2.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 1.2.5 =
     51* Fixed bug that caused the button to now appear when using http instead of https. Thanks to WPHaider for finding it.
     52
    5053= 1.2.4 =
    5154* Added option for text alignment of footer.
     
    7881== Upgrade Notice ==
    7982
     83= 1.2.5 =
     84Bug fix. Upgrade recommended.
     85
    8086= 1.2.4 =
    8187New option. Upgrade optional.
  • suggest-review/trunk/suggest-review.php

    r878914 r959971  
    22/**
    33 * @package Suggest_Review
    4  * @version 1.2.4
     4 * @version 1.2.5
    55 */
    66/*
     
    99Description: Lets users suggest that content may need to be reviewed or re-examined.
    1010Author: Michael George
    11 Version: 1.2.4
     11Version: 1.2.5
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    106106            //Check to see if the URL is a permalink, if not, we aren't doing anything
    107107            //This prevents the suggest review button from appear on search results and post lists
    108             if ( "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] == get_permalink() ) {
    109 
     108            // Bug fix in 1.2.5: The check below was hard coded to using https and is now dynamic
     109            if ( "http" . ( $_SERVER['HTTPS'] == "on" ? "s" : "" ) . "://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] == get_permalink() ) {
     110                echo "<!-- sr content_insertion found uri is permalink -->\r";
    110111                if ( isset( $_POST['suggestreview'] ) && $_POST['suggestreview'] == '1' && isset( $_POST['suggestreviewid'] ) && $_POST['suggestreviewid'] == $my_post_id ) {
    111112                    $this->markForReview( $_POST['suggestreviewid'], $my_user->user_login, date( 'Y-m-d H:i:s', current_time( 'timestamp', 0 ) ), $_POST['suggestreviewcomment'], $my_author );
Note: See TracChangeset for help on using the changeset viewer.