Changeset 2857200
- Timestamp:
- 01/30/2023 04:52:13 PM (3 years ago)
- Location:
- reusable-content-blocks/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
reusablec-block.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reusable-content-blocks/trunk/readme.txt
r2857099 r2857200 5 5 Requires at least: 4.9.7 6 6 Tested up to: 6.1 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 Requires PHP: 5.6 9 9 License: GPLv3 or later … … 84 84 = 1.1.1 = 85 85 * Bug fixes 86 = 1.1. 1=86 = 1.1.2 = 87 87 * WP 6.0 Comaptiblity 88 = 1.1.3 = 89 * * Bug fixe - WP Bakery Reusuable block is not editable. 88 90 -
reusable-content-blocks/trunk/reusablec-block.php
r2857099 r2857200 4 4 * Plugin URI: http://thecodepoetry.com/plugins/wordpress-reusable-pagebulider-contnet-blocks/ 5 5 * 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. 26 * Version: 1.1.3 7 7 * Author: Thecodepoetry 8 8 * Author URI: http://thecodepoetry.com/ … … 196 196 $rcpost = ''; 197 197 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>'; 203 206 } 204 207
Note: See TracChangeset
for help on using the changeset viewer.