Plugin Directory

Changeset 2538346


Ignore:
Timestamp:
05/27/2021 05:58:52 AM (5 years ago)
Author:
edge226
Message:

fix widget not appearing on pages

Location:
audiate-me/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • audiate-me/trunk/audiate.php

    r2486766 r2538346  
    88 * Plugin URI: https://www.audioplace.me
    99 * Description: Transform your content into audio to reach a larger audience with our Text-to-Speech widget.
    10  * Version: 1.2.7
     10 * Version: 1.2.8
    1111 * Author: Audioplace.Me
    1212 * License: GPLv2 or later
  • audiate-me/trunk/includes/audiate-widget.php

    r2381071 r2538346  
    154154        $allowedPostTypes = array('post', 'page');
    155155
    156         if (is_singular($allowedPostTypes) && is_single() && in_the_loop() && is_main_query()) {
     156        if (is_singular($allowedPostTypes) && in_the_loop() && is_main_query()) {
    157157            if(!isset($this->options['position_4']) || $this->options['position_4'] === 'before_content') {
    158158                $widget = $this->get_code();
Note: See TracChangeset for help on using the changeset viewer.