Plugin Directory

Changeset 3188893


Ignore:
Timestamp:
11/14/2024 04:39:37 PM (17 months ago)
Author:
smallpdf
Message:

The embed widget script is now loaded when using the pdf shortcode

Location:
embed-pdf-by-smallpdf
Files:
22 added
3 edited

Legend:

Unmodified
Added
Removed
  • embed-pdf-by-smallpdf/trunk/embed-pdf-by-smallpdf.php

    r3188403 r3188893  
    44 * Plugin URI:        https://smallpdf.com/embed-pdf
    55 * Description:       Embed PDF by Smallpdf is a free and secure plugin that allows you to embed PDF documents directly into your posts and pages. No API keys are required.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Requires at least: 6.5
    88 * Requires PHP:      7.4
  • embed-pdf-by-smallpdf/trunk/includes/class-embed-pdf-by-smallpdf.php

    r3188403 r3188893  
    1515        add_action( 'enqueue_block_editor_assets', array( $this, 'embed_pdf_by_smallpdf_translations' ) );
    1616        add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
     17        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_shortcode_script' ) );
    1718        add_shortcode( 'pdf', array( $this, 'pdf_shortcode' ) );
    1819    }
     
    2425    public function register_block_type() {
    2526        wp_register_script(
    26             'smallpdf-embed-pdf-by-smallpdf-editor-script', // TODO: changing this breaks the i18n
     27            'smallpdf-embed-pdf-by-smallpdf-editor-script',
    2728            EMBED_PDF_BY_SMALLPDF_URL . 'build/blocks/embed-pdf/index.js',
    2829            array( 'wp-blocks', 'react', 'wp-i18n', 'wp-block-editor' ),
  • embed-pdf-by-smallpdf/trunk/readme.txt

    r3188403 r3188893  
    11=== Embed PDF with Smallpdf ===
    22Plugin Name:       Embed PDF with Smallpdf
    3 Version:           1.0.0
     3Version:           1.0.1
    44Auhtor:            Smallpdf
    55Author URI:        https://smallpdf.com
     
    99Requires at least: 6.5
    1010Requires PHP:      7.4
    11 Stable tag:        1.0.0
     11Stable tag:        1.0.1
    1212License:           GPL-2.0-or-later
    1313License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.