Plugin Directory

Changeset 2857200


Ignore:
Timestamp:
01/30/2023 04:52:13 PM (3 years ago)
Author:
safeerz
Message:

Version 1.1.3

Location:
reusable-content-blocks/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • reusable-content-blocks/trunk/readme.txt

    r2857099 r2857200  
    55Requires at least: 4.9.7
    66Tested up to: 6.1
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88Requires PHP: 5.6
    99License: GPLv3 or later
     
    8484= 1.1.1 =
    8585* Bug fixes
    86 = 1.1.1 =
     86= 1.1.2 =
    8787* WP 6.0 Comaptiblity
     88= 1.1.3 =
     89* * Bug fixe - WP Bakery Reusuable block is not editable.
    8890
  • reusable-content-blocks/trunk/reusablec-block.php

    r2857099 r2857200  
    44 * Plugin URI: http://thecodepoetry.com/plugins/wordpress-reusable-pagebulider-contnet-blocks/
    55 * Description: Reusable Content Blocks plugin allows you to insert content blocks created with WPBakery Page Builder into pages, posts, custom post types, widget areas and templates using shortcode, Widget or PHP without missing custom/inline styles generated by page builders.
    6  * Version: 1.1.2
     6 * Version: 1.1.3
    77 * Author: Thecodepoetry
    88 * Author URI: http://thecodepoetry.com/
     
    196196    $rcpost = '';
    197197   
    198     foreach ( $posts as $post ) { 
    199         $rcpost .='<option
    200             value="'.$post->ID.'"'.
    201             selected( $selected, $post->ID ).'>'.
    202             get_the_title( $post->ID ).'</option>';
     198    foreach ( $posts as $post ) {
     199            $postID = $post->ID;
     200            $sel = '';
     201            if ($selected == $postID) {
     202                $sel = ' selected';
     203            }
     204        $rcpost .='<option value="'.$postID.'"'.$sel.' >'.
     205            get_the_title( $postID ).'</option>';
    203206    }
    204207   
Note: See TracChangeset for help on using the changeset viewer.