Changeset 3478502
- Timestamp:
- 03/09/2026 08:06:39 PM (3 weeks ago)
- Location:
- excerpt-check
- Files:
-
- 12 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from excerpt-check/trunk)
-
tags/1.1.0/assets/js/block-editor.js (modified) (2 diffs)
-
tags/1.1.0/assets/js/classic-editor.js (modified) (1 diff)
-
tags/1.1.0/excerpt-check.php (modified) (2 diffs)
-
tags/1.1.0/includes/class-block-editor.php (modified) (1 diff)
-
tags/1.1.0/includes/class-classic-editor.php (modified) (1 diff)
-
tags/1.1.0/readme.txt (modified) (2 diffs)
-
trunk/assets/js/block-editor.js (modified) (2 diffs)
-
trunk/assets/js/classic-editor.js (modified) (1 diff)
-
trunk/excerpt-check.php (modified) (2 diffs)
-
trunk/includes/class-block-editor.php (modified) (1 diff)
-
trunk/includes/class-classic-editor.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
excerpt-check/tags/1.1.0/assets/js/block-editor.js
r3471295 r3478502 95 95 96 96 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 97 103 buttons.push( 98 104 createElement( … … 105 111 bypassed = true; 106 112 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(); 112 115 } 113 116 }, 114 117 }, 115 settings.publishAnywayLabel || 'Publish Anyway'118 anywayLabel 116 119 ) 117 120 ); -
excerpt-check/tags/1.1.0/assets/js/classic-editor.js
r3471295 r3478502 50 50 51 51 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 ); 54 56 $buttons.append( ' ' ).append( $bypassBtn ); 55 57 } -
excerpt-check/tags/1.1.0/excerpt-check.php
r3471295 r3478502 12 12 * Plugin URI: https://pressware.co/wp/excerpt-check/ 13 13 * Description: Prompts authors to add an excerpt before publishing or scheduling a WordPress post. 14 * Version: 1. 0.014 * Version: 1.1.0 15 15 * Requires at least: 6.9 16 16 * Tested up to: 6.9 … … 27 27 defined( 'WPINC' ) || die; 28 28 29 const VERSION = '1. 0.0';29 const VERSION = '1.1.0'; 30 30 31 31 /** -
excerpt-check/tags/1.1.0/includes/class-block-editor.php
r3471295 r3478502 65 65 'excerptCheck', 66 66 array( 67 'mode' => $mode,68 'title' => __( 'No Excerpt Found', 'excerpt-check' ),69 'message' => 'require' === $mode67 'mode' => $mode, 68 'title' => __( 'No Excerpt Found', 'excerpt-check' ), 69 'message' => 'require' === $mode 70 70 ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' ) 71 71 : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ), 72 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),73 ' publishAnywayLabel' => __( 'PublishAnyway', 'excerpt-check' ),72 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ), 73 'anywayLabel' => __( 'Anyway', 'excerpt-check' ), 74 74 ) 75 75 ); -
excerpt-check/tags/1.1.0/includes/class-classic-editor.php
r3471295 r3478502 81 81 'excerptCheck', 82 82 array( 83 'mode' => $mode,84 'title' => __( 'No Excerpt Found', 'excerpt-check' ),85 'message' => 'require' === $mode83 'mode' => $mode, 84 'title' => __( 'No Excerpt Found', 'excerpt-check' ), 85 'message' => 'require' === $mode 86 86 ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' ) 87 87 : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ), 88 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),89 ' publishAnywayLabel' => __( 'PublishAnyway', 'excerpt-check' ),88 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ), 89 'anywayLabel' => __( 'Anyway', 'excerpt-check' ), 90 90 ) 91 91 ); -
excerpt-check/tags/1.1.0/readme.txt
r3471295 r3478502 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1. 0.08 Stable tag: 1.1.0 9 9 License: GPL-3.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 75 75 == Changelog == 76 76 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 77 80 = 1.0.0 = 78 81 * Initial release -
excerpt-check/trunk/assets/js/block-editor.js
r3471295 r3478502 95 95 96 96 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 97 103 buttons.push( 98 104 createElement( … … 105 111 bypassed = true; 106 112 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(); 112 115 } 113 116 }, 114 117 }, 115 settings.publishAnywayLabel || 'Publish Anyway'118 anywayLabel 116 119 ) 117 120 ); -
excerpt-check/trunk/assets/js/classic-editor.js
r3471295 r3478502 50 50 51 51 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 ); 54 56 $buttons.append( ' ' ).append( $bypassBtn ); 55 57 } -
excerpt-check/trunk/excerpt-check.php
r3471295 r3478502 12 12 * Plugin URI: https://pressware.co/wp/excerpt-check/ 13 13 * Description: Prompts authors to add an excerpt before publishing or scheduling a WordPress post. 14 * Version: 1. 0.014 * Version: 1.1.0 15 15 * Requires at least: 6.9 16 16 * Tested up to: 6.9 … … 27 27 defined( 'WPINC' ) || die; 28 28 29 const VERSION = '1. 0.0';29 const VERSION = '1.1.0'; 30 30 31 31 /** -
excerpt-check/trunk/includes/class-block-editor.php
r3471295 r3478502 65 65 'excerptCheck', 66 66 array( 67 'mode' => $mode,68 'title' => __( 'No Excerpt Found', 'excerpt-check' ),69 'message' => 'require' === $mode67 'mode' => $mode, 68 'title' => __( 'No Excerpt Found', 'excerpt-check' ), 69 'message' => 'require' === $mode 70 70 ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' ) 71 71 : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ), 72 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),73 ' publishAnywayLabel' => __( 'PublishAnyway', 'excerpt-check' ),72 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ), 73 'anywayLabel' => __( 'Anyway', 'excerpt-check' ), 74 74 ) 75 75 ); -
excerpt-check/trunk/includes/class-classic-editor.php
r3471295 r3478502 81 81 'excerptCheck', 82 82 array( 83 'mode' => $mode,84 'title' => __( 'No Excerpt Found', 'excerpt-check' ),85 'message' => 'require' === $mode83 'mode' => $mode, 84 'title' => __( 'No Excerpt Found', 'excerpt-check' ), 85 'message' => 'require' === $mode 86 86 ? __( 'This post does not have an excerpt. Please add one before publishing.', 'excerpt-check' ) 87 87 : __( 'This post does not have an excerpt. Would you like to add one?', 'excerpt-check' ), 88 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ),89 ' publishAnywayLabel' => __( 'PublishAnyway', 'excerpt-check' ),88 'addExcerptLabel' => __( 'Add Excerpt', 'excerpt-check' ), 89 'anywayLabel' => __( 'Anyway', 'excerpt-check' ), 90 90 ) 91 91 ); -
excerpt-check/trunk/readme.txt
r3471295 r3478502 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1. 0.08 Stable tag: 1.1.0 9 9 License: GPL-3.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 75 75 == Changelog == 76 76 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 77 80 = 1.0.0 = 78 81 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.