Plugin Directory

Changeset 2096748


Ignore:
Timestamp:
05/28/2019 08:28:52 PM (7 years ago)
Author:
dwayneparton
Message:

Enqueue bug fix

Location:
gecko-section/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gecko-section/trunk/gecko-section.php

    r2072593 r2096748  
    44 * Plugin URI:  https://github.com/gecko-designs/gecko-section
    55 * Description: Section block for full row layouts in themes that support gutenberg full-width blocks.
    6  * Version: 1.0.3
     6 * Version: 1.0.5
    77 * Author: Gecko Designs
    88 * Author URI: https://geckodesigns.com
     
    4949        );
    5050        // If Post has block then enqueue script
    51         add_action( 'the_post', function($post){
    52             if(has_block( 'gecko/section', $post )){
     51        add_filter( 'the_content', function($content){
     52            if(has_block( 'gecko/section', $content )){
    5353                wp_enqueue_style('gecko-section');
    5454            }
    55         } );
     55            return $content;
     56        }, 1 );
    5657        // Initialize custom blocks
    5758        // Dynamically import blocks in blocks folder
  • gecko-section/trunk/readme.txt

    r2072593 r2096748  
    55Requires at least: 5.0
    66Tested up to: 5.0.3
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.5
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    2323
    2424== Changelog ==
     25= 1.0.% =
     26* Enqueue Bug fix
     27= 1.0.4 =
     28* Bug fix
    2529= 1.0.3 =
    2630* Added contrast toggle
     
    3337
    3438== Upgrade Notice ==
     39= 1.0.5 =
     40* Bug fix
     41= 1.0.4 =
     42* Bug fix
    3543= 1.0.3 =
    3644* Added contrast toggle
Note: See TracChangeset for help on using the changeset viewer.