Plugin Directory

Changeset 3264857


Ignore:
Timestamp:
04/01/2025 06:06:53 AM (12 months ago)
Author:
wpeasytools
Message:

Removed extra p tags.

Location:
content-shortcode-generator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • content-shortcode-generator/trunk/block.js

    r3244521 r3264857  
    2323                    {
    2424                        value: props.attributes.postId || '',
    25                         options: (posts || []).map( function( post ) {
    26                             return { label: post.title.rendered, value: post.id };
    27                         }),
     25                        options: [{ label: 'Select Content', value: '' }].concat(
     26                            (posts || []).map( function( post ) {
     27                                return { label: post.title.rendered, value: post.id };
     28                            })
     29                        ),
    2830                        onChange: function( value ) {
    2931                            props.setAttributes( { postId: parseInt(value) } );
  • content-shortcode-generator/trunk/content-shortcode-generator.php

    r3252749 r3264857  
    33 * Plugin Name: Content Shortcode Generator
    44 * Description: Create any type of content using Gutenberg editor and insert it anywhere via shortcodes.
    5  * Version: 1.1
     5 * Version: 1.2
    66 * Author: WPEasyTools
    77 * Author URI: https://wpeasytools.com/
     
    9999    if (!$post || $post->post_type !== 'contshge_content' || $post->post_status !== 'publish') return '';
    100100
    101     return apply_filters('the_content', $post->post_content);
     101    $content = apply_filters('the_content', $post->post_content);
     102    return wp_kses_post(balanceTags($content, true));
    102103}
    103104add_shortcode('contshge_content', __NAMESPACE__ . '\\contshge_content_shortcode');
     
    194195}
    195196add_action('pre_get_posts', __NAMESPACE__ . '\\contshge_filter_content_by_category_query');
     197
     198function contshge_custom_mark_css() {
     199    echo '<style>mark { background: none !important; }</style>';
     200}
     201add_action('wp_head', __NAMESPACE__ . '\\contshge_custom_mark_css');
  • content-shortcode-generator/trunk/readme.txt

    r3261689 r3264857  
    22Contributors: wpeasytools
    33Donate link: https://www.wpressblog.com/
    4 Tags: shortcode, shortcode generator, content shortcode, content shortcode generator, Shortcode WordPress
     4Tags: content, shortcode, custom content, shortcode generator,
    55Requires at least: 5.0
    66Tested up to: 6.7
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    2222- **Admin Table Integration:** Displays the generated shortcode directly in the admin posts table for easy copying.
    2323- **Gutenberg Block:** Easily add content as a block in the Gutenberg editor.
     24
     25You can check all the features and how to use the content shortcode generator plugin [from here](https://www.wpressblog.com/content-shortcode-generator-plugin/).
    2426
    2527== Installation ==
     
    5355== Changelog ==
    5456
     57= 1.2 =
     58* Removed unwanted p tags, showing when using shortcode on multiple places on website.
     59* Added first option as select option in gutenberg block.
     60* Removed background color for marked text. It happen when removed extra p tags.
     61
    5562= 1.1 =
    5663* Category filter solved.
Note: See TracChangeset for help on using the changeset viewer.