Plugin Directory

Changeset 2695270


Ignore:
Timestamp:
03/17/2022 08:47:31 AM (4 years ago)
Author:
upqode
Message:

fixed js error when header doesn’t exist

Location:
stop-the-war/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stop-the-war/trunk/index.php

    r2688266 r2695270  
    99Description: We believe that collecting online donations should be easy and affordable. That’s why our WordPress donation plugin that never charges transaction fees. Russia’s military invasion of Ukraine has brought to the forefront of the global consciousness a long-simmering geopolitical conflict. The situation is changing every minute as Russian troops move across the country and attack from once friendly countries, but the need for humanitarian assistance is obvious as the nation faces casualties and significant property damage.
    1010Author: Upqode
    11 Version: 1.0.2
     11Version: 1.0.3
    1212Author URI: http://upqode.com/
    1313*/
     
    4646        const elem = document.getElementById("stop-war-banner");
    4747        elem.parentNode.removeChild(elem);
    48         if(document.querySelector("header").innerHTML.length > 0){
    49             console.log(elem);
     48        if(document.querySelector("header") !== null){
    5049            document.querySelector("header").prepend(elem);
    5150        }else{
  • stop-the-war/trunk/readme.txt

    r2688266 r2695270  
    55Tested up to: 5.9
    66Requires PHP: 5.6
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 1.0.3 =
     48* Fixed js error when header doesn’t exist.
     49
    4750= 1.0.2 =
    48 * Analytic updated.
     51* Fixed WP compatibility.
    4952
    5053= 1.0.1 =
Note: See TracChangeset for help on using the changeset viewer.