Plugin Directory

Changeset 3478502


Ignore:
Timestamp:
03/09/2026 08:06:39 PM (3 weeks ago)
Author:
tommcfarlin
Message:

Update to version 1.1.0 from GitHub

Location:
excerpt-check
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • excerpt-check/tags/1.1.0/assets/js/block-editor.js

    r3471295 r3478502  
    9595
    9696        if ( 'remind' === settings.mode ) {
     97            var publishBtn = document.querySelector(
     98                '.editor-post-publish-button, .editor-post-publish-panel__toggle'
     99            );
     100            var actionLabel = publishBtn ? publishBtn.textContent.trim() : 'Publish';
     101            var anywayLabel = actionLabel + ' ' + ( settings.anywayLabel || 'Anyway' );
     102
    97103            buttons.push(
    98104                createElement(
     
    105111                            bypassed = true;
    106112
    107                             var btn = document.querySelector(
    108                                 '.editor-post-publish-button, .editor-post-publish-panel__toggle'
    109                             );
    110                             if ( btn ) {
    111                                 btn.click();
     113                            if ( publishBtn ) {
     114                                publishBtn.click();
    112115                            }
    113116                        },
    114117                    },
    115                     settings.publishAnywayLabel || 'Publish Anyway'
     118                    anywayLabel
    116119                )
    117120            );
  • excerpt-check/tags/1.1.0/assets/js/classic-editor.js

    r3471295 r3478502  
    5050
    5151        if ( 'remind' === settings.mode ) {
    52             var $bypassBtn = $( '<button type="button" class="button ec-publish-anyway">' )
    53                 .text( settings.publishAnywayLabel );
     52            var actionLabel = $( '#publish' ).val() || 'Publish';
     53            var anywayLabel = actionLabel + ' ' + ( settings.anywayLabel || 'Anyway' );
     54            var $bypassBtn  = $( '<button type="button" class="button ec-publish-anyway">' )
     55                .text( anywayLabel );
    5456            $buttons.append( ' ' ).append( $bypassBtn );
    5557        }
  • excerpt-check/tags/1.1.0/excerpt-check.php

    r3471295 r3478502  
    1212 * Plugin URI:        https://pressware.co/wp/excerpt-check/
    1313 * Description:       Prompts authors to add an excerpt before publishing or scheduling a WordPress post.
    14  * Version:           1.0.0
     14 * Version:           1.1.0
    1515 * Requires at least: 6.9
    1616 * Tested up to:      6.9
     
    2727defined( 'WPINC' ) || die;
    2828
    29 const VERSION = '1.0.0';
     29const VERSION = '1.1.0';
    3030
    3131/**
  • excerpt-check/tags/1.1.0/includes/class-block-editor.php

    r3471295 r3478502  
    6565            'excerptCheck',
    6666            array(
    67                 'mode'               => $mode,
    68                 'title'              => __( 'No Excerpt Found', 'excerpt-check' ),
    69                 'message'            => 'require' === $mode
     67                'mode'            => $mode,
     68                'title'           => __( 'No Excerpt Found', 'excerpt-check' ),
     69                'message'         => 'require' === $mode
    7070                    ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' )
    7171                    : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ),
    72                 'addExcerptLabel'    => __( 'Add Excerpt', 'excerpt-check' ),
    73                 'publishAnywayLabel' => __( 'Publish Anyway', 'excerpt-check' ),
     72                'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),
     73                'anywayLabel'     => __( 'Anyway', 'excerpt-check' ),
    7474            )
    7575        );
  • excerpt-check/tags/1.1.0/includes/class-classic-editor.php

    r3471295 r3478502  
    8181            'excerptCheck',
    8282            array(
    83                 'mode'               => $mode,
    84                 'title'              => __( 'No Excerpt Found', 'excerpt-check' ),
    85                 'message'            => 'require' === $mode
     83                'mode'            => $mode,
     84                'title'           => __( 'No Excerpt Found', 'excerpt-check' ),
     85                'message'         => 'require' === $mode
    8686                    ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' )
    8787                    : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ),
    88                 'addExcerptLabel'    => __( 'Add Excerpt', 'excerpt-check' ),
    89                 'publishAnywayLabel' => __( 'Publish Anyway', 'excerpt-check' ),
     88                'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),
     89                'anywayLabel'     => __( 'Anyway', 'excerpt-check' ),
    9090            )
    9191        );
  • excerpt-check/tags/1.1.0/readme.txt

    r3471295 r3478502  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.0.0
     8Stable tag: 1.1.0
    99License: GPL-3.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7575== Changelog ==
    7676
     77= 1.1.0 =
     78* Modal bypass button now mirrors the editor's own button label (e.g. "Save Anyway" instead of "Publish Anyway" when editing a published post)
     79
    7780= 1.0.0 =
    7881* Initial release
  • excerpt-check/trunk/assets/js/block-editor.js

    r3471295 r3478502  
    9595
    9696        if ( 'remind' === settings.mode ) {
     97            var publishBtn = document.querySelector(
     98                '.editor-post-publish-button, .editor-post-publish-panel__toggle'
     99            );
     100            var actionLabel = publishBtn ? publishBtn.textContent.trim() : 'Publish';
     101            var anywayLabel = actionLabel + ' ' + ( settings.anywayLabel || 'Anyway' );
     102
    97103            buttons.push(
    98104                createElement(
     
    105111                            bypassed = true;
    106112
    107                             var btn = document.querySelector(
    108                                 '.editor-post-publish-button, .editor-post-publish-panel__toggle'
    109                             );
    110                             if ( btn ) {
    111                                 btn.click();
     113                            if ( publishBtn ) {
     114                                publishBtn.click();
    112115                            }
    113116                        },
    114117                    },
    115                     settings.publishAnywayLabel || 'Publish Anyway'
     118                    anywayLabel
    116119                )
    117120            );
  • excerpt-check/trunk/assets/js/classic-editor.js

    r3471295 r3478502  
    5050
    5151        if ( 'remind' === settings.mode ) {
    52             var $bypassBtn = $( '<button type="button" class="button ec-publish-anyway">' )
    53                 .text( settings.publishAnywayLabel );
     52            var actionLabel = $( '#publish' ).val() || 'Publish';
     53            var anywayLabel = actionLabel + ' ' + ( settings.anywayLabel || 'Anyway' );
     54            var $bypassBtn  = $( '<button type="button" class="button ec-publish-anyway">' )
     55                .text( anywayLabel );
    5456            $buttons.append( ' ' ).append( $bypassBtn );
    5557        }
  • excerpt-check/trunk/excerpt-check.php

    r3471295 r3478502  
    1212 * Plugin URI:        https://pressware.co/wp/excerpt-check/
    1313 * Description:       Prompts authors to add an excerpt before publishing or scheduling a WordPress post.
    14  * Version:           1.0.0
     14 * Version:           1.1.0
    1515 * Requires at least: 6.9
    1616 * Tested up to:      6.9
     
    2727defined( 'WPINC' ) || die;
    2828
    29 const VERSION = '1.0.0';
     29const VERSION = '1.1.0';
    3030
    3131/**
  • excerpt-check/trunk/includes/class-block-editor.php

    r3471295 r3478502  
    6565            'excerptCheck',
    6666            array(
    67                 'mode'               => $mode,
    68                 'title'              => __( 'No Excerpt Found', 'excerpt-check' ),
    69                 'message'            => 'require' === $mode
     67                'mode'            => $mode,
     68                'title'           => __( 'No Excerpt Found', 'excerpt-check' ),
     69                'message'         => 'require' === $mode
    7070                    ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' )
    7171                    : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ),
    72                 'addExcerptLabel'    => __( 'Add Excerpt', 'excerpt-check' ),
    73                 'publishAnywayLabel' => __( 'Publish Anyway', 'excerpt-check' ),
     72                'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),
     73                'anywayLabel'     => __( 'Anyway', 'excerpt-check' ),
    7474            )
    7575        );
  • excerpt-check/trunk/includes/class-classic-editor.php

    r3471295 r3478502  
    8181            'excerptCheck',
    8282            array(
    83                 'mode'               => $mode,
    84                 'title'              => __( 'No Excerpt Found', 'excerpt-check' ),
    85                 'message'            => 'require' === $mode
     83                'mode'            => $mode,
     84                'title'           => __( 'No Excerpt Found', 'excerpt-check' ),
     85                'message'         => 'require' === $mode
    8686                    ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' )
    8787                    : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ),
    88                 'addExcerptLabel'    => __( 'Add Excerpt', 'excerpt-check' ),
    89                 'publishAnywayLabel' => __( 'Publish Anyway', 'excerpt-check' ),
     88                'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),
     89                'anywayLabel'     => __( 'Anyway', 'excerpt-check' ),
    9090            )
    9191        );
  • excerpt-check/trunk/readme.txt

    r3471295 r3478502  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.0.0
     8Stable tag: 1.1.0
    99License: GPL-3.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7575== Changelog ==
    7676
     77= 1.1.0 =
     78* Modal bypass button now mirrors the editor's own button label (e.g. "Save Anyway" instead of "Publish Anyway" when editing a published post)
     79
    7780= 1.0.0 =
    7881* Initial release
Note: See TracChangeset for help on using the changeset viewer.