Plugin Directory

Changeset 1600977


Ignore:
Timestamp:
02/21/2017 11:56:37 PM (9 years ago)
Author:
kyleabaker
Message:

v1.1.5

  • Fix for comments not appearing when replying via admin comments section (props: ebteb)
Location:
wp-useragent/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-useragent/trunk/readme.txt

    r1586814 r1600977  
    55Requires at least: 2.0
    66Tested up to: 4.7.2
    7 Stable tag: 1.1.4
     7Stable tag: 1.1.5
    88
    99== Description ==
     
    8484
    8585== Changelog ==
     86
     87= v1.1.5 =
     88* Fix for comments not appearing when replying via admin comments section (props: ebteb)
     89
    8690
    8791= v1.1.4 =
     
    690694== Upgrade Notice ==
    691695
    692 = v1.1.4 =
    693 * Fix incorrect/missing image for Android WebView (props: kissshot)
     696= v1.1.5 =
     697* Fix for comments not appearing when replying via admin comments section (props: ebteb)
  • wp-useragent/trunk/wp-useragent.php

    r1586814 r1600977  
    44 * Plugin URI: https://www.kyleabaker.com/goodies/coding/wp-useragent/
    55 * Description: A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment.
    6  * Version: 1.1.4
     6 * Version: 1.1.5
    77 * Author: Kyle Baker
    88 * Author URI: https://www.kyleabaker.com/
     
    199199    // The following conditional will hopefully prevent a problem where
    200200    // the echo statement will interrupt redirects from the comment page.
    201     if (empty($_POST['comment_post_ID']))
     201    if (empty($_POST['comment_post_ID']) || is_admin())
    202202    {
    203203        echo apply_filters('comment_text', $comment->comment_content);
     
    292292    // The following conditional will hopefully prevent a problem where
    293293    // the echo statement will interrupt redirects from the comment page.
    294     if (empty($_POST['comment_post_ID'])) echo $wpua_useragent;
     294    if (empty($_POST['comment_post_ID']) || is_admin()) echo $wpua_useragent;
    295295}
    296296
Note: See TracChangeset for help on using the changeset viewer.