Plugin Directory

Changeset 2173658


Ignore:
Timestamp:
10/15/2019 12:01:44 PM (6 years ago)
Author:
db0112358
Message:

fix meta boxes missing when no meta in Template

Location:
content-repeater/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content-repeater/trunk/content-repeater.php

    r2173627 r2173658  
    33 * Plugin Name: Content Repeater
    44 * Description: Quickly set up custom content like Testimonials, Coupons, Products, Flipboxes, Portals, Portfolios, Before & Afters, etc. and display it in interesting ways: Ajax Reload, Masonry, Isotope, Slick Slider, Single Row.
    5  * Version: 1.1.0
     5 * Version: 1.1.1
    66 * Author: Denis Buka
    77 * Text Domain: content-repeater
     
    651651                        array( 'Rptr_Template_Single_Editor', 'create_template_single_page' )
    652652                    );
    653                 }                   
    654                 if( preg_match_all( self::$pat, $v['template'], $matches )
    655                     || preg_match_all( self::$pat, $v['template_single'], $matches_single ) ) { // if Template with tags exists
     653                }
     654                $template_matches = preg_match_all( self::$pat, $v['template'], $matches );
     655                $template_single_matches = preg_match_all( self::$pat, $v['template_single'], $matches_single );
     656                if( $template_matches || $template_single_matches ) { // if Template with tags exists
    656657                    add_submenu_page( // register Repeaters pages
    657658                        'edit.php?post_type=' . $type,
  • content-repeater/trunk/readme.txt

    r2173627 r2173658  
    112112= 1.1.0 =
    113113fixes and improvements
     114= 1.1.1 =
     115fix meta boxes missing when no meta in Template
Note: See TracChangeset for help on using the changeset viewer.