Changeset 3115944
- Timestamp:
- 07/11/2024 12:08:59 AM (21 months ago)
- Location:
- hey-notify
- Files:
-
- 4 added
- 15 edited
- 1 copied
-
assets/blueprints/blueprint.json (modified) (4 diffs)
-
tags/2.0.3 (copied) (copied from hey-notify/trunk)
-
tags/2.0.3/changelog.txt (modified) (1 diff)
-
tags/2.0.3/data (added)
-
tags/2.0.3/data/live-preview.xml (added)
-
tags/2.0.3/hey-notify.php (modified) (2 diffs)
-
tags/2.0.3/includes/cpt.php (modified) (3 diffs)
-
tags/2.0.3/includes/helpers.php (modified) (3 diffs)
-
tags/2.0.3/languages/hey-notify.pot (modified) (24 diffs)
-
tags/2.0.3/readme.md (modified) (1 diff)
-
tags/2.0.3/readme.txt (modified) (3 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/data (added)
-
trunk/data/live-preview.xml (added)
-
trunk/hey-notify.php (modified) (2 diffs)
-
trunk/includes/cpt.php (modified) (3 diffs)
-
trunk/includes/helpers.php (modified) (3 diffs)
-
trunk/languages/hey-notify.pot (modified) (24 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hey-notify/assets/blueprints/blueprint.json
r3115121 r3115944 1 1 { 2 "landingPage": "/wp-admin/post-new.php?post_type=hey_notify", 2 "$schema": "https://playground.wordpress.net/blueprint-schema.json", 3 "landingPage": "/wp-admin/edit.php?post_type=hey_notify", 3 4 "preferredVersions": { 4 "php": " 7.4",5 "wp": " 5.9"5 "php": "latest", 6 "wp": "latest" 6 7 }, 7 8 "phpExtensionBundles": [ … … 9 10 ], 10 11 "features": { 11 "networking": true12 "networking": false 12 13 }, 13 14 "steps": [ … … 20 21 "step": "installPlugin", 21 22 "pluginZipFile": { 22 "resource": "wordpress.org \/plugins",23 "resource": "wordpress.org/plugins", 23 24 "slug": "hey-notify" 24 25 }, … … 28 29 }, 29 30 { 30 "step": "installPlugin", 31 "pluginZipFile": { 32 "resource": "wordpress.org\/plugins", 33 "slug": "wp-mail-logging" 34 }, 35 "options": { 36 "activate": true 31 "step": "importWxr", 32 "file": { 33 "resource": "url", 34 "url": "https://raw.githubusercontent.com/firetreedesign/hey-notify/main/data/live-preview.xml" 37 35 } 38 36 }, 39 37 { 40 "step": "installPlugin", 41 "pluginZipFile": { 42 "resource": "wordpress.org\/plugins", 43 "slug": "inspect-http-requests" 44 }, 38 "step": "setSiteOptions", 45 39 "options": { 46 "activate": true 40 "blogname": "Hey Notify Live Preview", 41 "hey_notify_live_preview": true 47 42 } 48 43 } -
hey-notify/tags/2.0.3/changelog.txt
r2533806 r3115944 2 2 3 3 This is an archive of older changelog entries. Most recent entries are maintained in readme.txt 4 5 = 1.4.2 = 6 * Fixed an issue with Post/Page/CPT Updated notifications being triggered. 7 8 = 1.4.1 = 9 * Fixed a reference to a function that did not exist. 10 11 = 1.4.0 = 12 * Added support for Microsoft Teams. 13 * Improved the type of status changes than can be detected for Posts, Pages, and Custom Post Types. 14 * Reorganized the Settings page. 4 15 5 16 = 1.3.0 = -
hey-notify/tags/2.0.3/hey-notify.php
r3115315 r3115944 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 2.0. 26 * Version: 2.0.3 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ … … 20 20 } 21 21 22 define( 'HEY_NOTIFY_VERSION', '2.0. 2' );22 define( 'HEY_NOTIFY_VERSION', '2.0.3' ); 23 23 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 24 24 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
hey-notify/tags/2.0.3/includes/cpt.php
r3114686 r3115944 19 19 add_action( 'admin_menu', __NAMESPACE__ . '\\admin_menu' ); 20 20 add_action( 'admin_notices', __NAMESPACE__ . '\\admin_notices', 1 ); 21 add_action( 'admin_notices', __NAMESPACE__ . '\\admin_notices_live_preview' ); 21 22 22 23 // Filters. … … 199 200 function admin_notices() { 200 201 global $pagenow; 201 202 if ( 'edit.php' !== $pagenow ) { 203 return; 204 } 205 206 // phpcs:ignore 207 if ( ! isset( $_GET['post_type'] ) ) { 208 return; 209 } 210 211 // phpcs:ignore 212 if ( 'hey_notify' !== $_GET['post_type'] ) { 202 global $typenow; 203 204 if ( 'edit.php' !== $pagenow && 'post-new.php' !== $pagenow && 'post.php' !== $pagenow ) { 205 return; 206 } 207 208 // phpcs:ignore 209 if ( ! isset( $_GET['post_type'] ) && 'hey_notify' !== $typenow ) { 210 return; 211 } 212 213 // phpcs:ignore 214 if ( isset( $_GET['post_type'] ) && 'hey_notify' !== $_GET['post_type'] ) { 213 215 return; 214 216 } … … 221 223 \Hey_Notify\Helpers\admin_header(); 222 224 } 225 226 /** 227 * Function for handling live preview notifications in the admin area. 228 */ 229 function admin_notices_live_preview() { 230 global $pagenow; 231 global $typenow; 232 233 if ( 'edit.php' !== $pagenow && 'post-new.php' !== $pagenow && 'post.php' !== $pagenow ) { 234 return; 235 } 236 237 // phpcs:ignore 238 if ( ! isset( $_GET['post_type'] ) && 'hey_notify' !== $typenow ) { 239 return; 240 } 241 242 // phpcs:ignore 243 if ( isset( $_GET['post_type'] ) && 'hey_notify' !== $_GET['post_type'] ) { 244 return; 245 } 246 247 $screen = function_exists( 'get_current_screen' ) ? \get_current_screen() : false; 248 if ( $screen && $screen->is_block_editor() ) { 249 return; 250 } 251 252 if ( boolval( get_option( 'hey_notify_live_preview', 0 ) ) !== true ) { 253 return; 254 } 255 256 ?> 257 <div class="notice notice-info"> 258 <p> 259 <?php 260 esc_html_e( 'While in the Live Preview mode, notifications will not be sent.', 'hey-notify' ); 261 ?> 262 </p> 263 </div> 264 <?php 265 } -
hey-notify/tags/2.0.3/includes/helpers.php
r3114686 r3115944 115 115 */ 116 116 function admin_header() { 117 global $pagenow; 118 global $typenow; 119 117 120 $all_tabs = \apply_filters( 'hey_notify_settings_page_tabs', array() ); 118 121 $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : ( count( $all_tabs ) > 0 ? $all_tabs[0]['tab_id'] : '' ); // phpcs:ignore … … 131 134 switch ( $current_page ) { 132 135 case 'settings': 133 $page_title = __( 'Settings', 'easy-digital-downloads' );136 $page_title = __( 'Settings', 'hey-notify' ); 134 137 break; 138 } 139 if ( 'post-new.php' === $pagenow ) { 140 $page_title = __( 'Add Notification', 'hey-notify' ); 141 } 142 if ( 'post.php' === $pagenow && 'hey_notify' === $typenow ) { 143 $page_title = __( 'Edit Notification', 'hey-notify' ); 135 144 } 136 145 ?> … … 139 148 display: none; 140 149 } 141 .page-title-action {150 /* .page-title-action { 142 151 visibility: hidden; 143 } 152 } */ 144 153 .hey-notify-admin-header-container { 145 154 background-color: #fff; -
hey-notify/tags/2.0.3/languages/hey-notify.pot
r3114686 r3115944 4 4 "Project-Id-Version: Hey Notify\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2024-07- 02 05:52+0000\n"6 "POT-Creation-Date: 2024-07-10 21:09+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 "X-Domain: hey-notify" 18 18 19 #: includes/events/page/class-page-event.php:6 320 #: includes/events/post/class-post-event.php:6 321 #: includes/events/cpt/class-cpt-event.php: 9222 #: includes/events/comment/class-comment-event.php:5 823 #: includes/events/user/class-user-event.php: 6024 #: includes/events/system/class-system-event.php:6 319 #: includes/events/page/class-page-event.php:61 20 #: includes/events/post/class-post-event.php:61 21 #: includes/events/cpt/class-cpt-event.php:88 22 #: includes/events/comment/class-comment-event.php:56 23 #: includes/events/user/class-user-event.php:58 24 #: includes/events/system/class-system-event.php:61 25 25 msgid "Action" 26 26 msgstr "" 27 27 28 #: includes/services/class-email.php:6 528 #: includes/services/class-email.php:64 29 29 msgid "Add Email Address" 30 30 msgstr "" … … 42 42 msgstr "" 43 43 44 #: includes/events/user/class-user-event.php:31 44 #: includes/helpers.php:140 45 msgid "Add Notification" 46 msgstr "" 47 48 #: includes/events/user/class-user-event.php:29 45 49 msgid "Administrator Failed Login" 46 50 msgstr "" 47 51 48 #: includes/events/user/class-user-event.php: 3052 #: includes/events/user/class-user-event.php:28 49 53 msgid "Administrator Login" 50 54 msgstr "" … … 58 62 msgstr "" 59 63 60 #: includes/services/class-slack.php:28 864 #: includes/services/class-slack.php:286 61 65 msgid "Attached image" 62 66 msgstr "" 63 67 64 #: includes/services/class-microsoft-teams.php:8 665 #: includes/services/class-microsoft-teams.php:16 668 #: includes/services/class-microsoft-teams.php:84 69 #: includes/services/class-microsoft-teams.php:164 66 70 msgid "Color" 67 71 msgstr "" 68 72 69 #: includes/events/comment/class-comment-event.php: 4173 #: includes/events/comment/class-comment-event.php:39 70 74 msgid "Comments" 71 75 msgstr "" … … 88 92 89 93 #: includes/services/class-discord.php:164 90 #: includes/services/class-discord.php:43291 94 msgid "Default Settings for Discord" 92 95 msgstr "" 93 96 94 #: includes/services/class-microsoft-teams.php:13 997 #: includes/services/class-microsoft-teams.php:137 95 98 msgid "Default Settings for Microsoft Teams" 96 99 msgstr "" 97 100 98 #: includes/services/class-slack.php:11 8101 #: includes/services/class-slack.php:117 99 102 msgid "Default Settings for Slack" 100 103 msgstr "" … … 103 106 #: includes/services/class-discord.php:141 104 107 #: includes/services/class-discord.php:278 105 #: includes/services/class-discord.php:430106 108 msgid "Discord" 107 109 msgstr "" … … 109 111 #: includes/services/class-discord.php:91 110 112 #: includes/services/class-discord.php:191 111 #: includes/services/class-discord.php:436112 113 msgid "Discord Avatar" 113 114 msgstr "" … … 115 116 #: includes/services/class-discord.php:110 116 117 #: includes/services/class-discord.php:207 117 #: includes/services/class-discord.php:439118 118 msgid "Discord Username" 119 119 msgstr "" … … 123 123 msgstr "" 124 124 125 #: includes/cpt.php:44 125 #: includes/cpt.php:44 includes/helpers.php:143 126 126 msgid "Edit Notification" 127 127 msgstr "" 128 128 129 #: includes/services/class-email.php:4 7 includes/services/class-email.php:114129 #: includes/services/class-email.php:46 includes/services/class-email.php:113 130 130 msgid "Email" 131 131 msgstr "" 132 132 133 #: includes/services/class-email.php:70 includes/services/class-email.php:132 134 #: includes/services/class-email.php:138 133 #: includes/services/class-email.php:69 135 134 msgid "Email Address" 136 msgstr ""137 138 #: includes/services/class-email.php:137139 msgid "Email Addresses"140 135 msgstr "" 141 136 … … 181 176 msgstr "" 182 177 183 #: includes/services/class-slack.php:6 6 includes/services/class-slack.php:136178 #: includes/services/class-slack.php:65 includes/services/class-slack.php:135 184 179 #: includes/services/class-discord.php:72 185 180 #: includes/services/class-discord.php:182 186 #: includes/services/class-discord.php:435 187 #: includes/services/class-microsoft-teams.php:67 188 #: includes/services/class-microsoft-teams.php:157 181 #: includes/services/class-microsoft-teams.php:65 182 #: includes/services/class-microsoft-teams.php:155 189 183 msgid "Learn More" 190 184 msgstr "" … … 195 189 msgstr "" 196 190 197 #: includes/services/class-microsoft-teams.php: 51198 #: includes/services/class-microsoft-teams.php:11 6199 #: includes/services/class-microsoft-teams.php:21 9191 #: includes/services/class-microsoft-teams.php:49 192 #: includes/services/class-microsoft-teams.php:114 193 #: includes/services/class-microsoft-teams.php:217 200 194 msgid "Microsoft Teams" 201 195 msgstr "" 202 196 203 #: includes/events/comment/class-comment-event.php:2 9197 #: includes/events/comment/class-comment-event.php:27 204 198 msgid "New Comment" 205 199 msgstr "" 206 200 207 #: includes/events/user/class-user-event.php:2 9201 #: includes/events/user/class-user-event.php:27 208 202 msgid "New User Registration" 209 203 msgstr "" … … 225 219 msgstr "" 226 220 227 #: includes/services/class-microsoft-teams.php:25 8228 #: includes/services/class-microsoft-teams.php:25 9229 #: includes/services/class-microsoft-teams.php:26 6221 #: includes/services/class-microsoft-teams.php:255 222 #: includes/services/class-microsoft-teams.php:256 223 #: includes/services/class-microsoft-teams.php:263 230 224 msgid "Notification from Hey Notify" 225 msgstr "" 226 227 #: includes/helpers.php:133 228 msgid "Notifications" 231 229 msgstr "" 232 230 … … 241 239 #: includes/services/class-discord.php:92 242 240 #: includes/services/class-discord.php:198 243 #: includes/services/class-discord.php:437244 241 msgid "Override the default avatar of the webhook. Not required." 245 242 msgstr "" … … 247 244 #: includes/services/class-discord.php:111 248 245 #: includes/services/class-discord.php:215 249 #: includes/services/class-discord.php:440250 246 msgid "Override the default username of the webhook. Not required." 251 247 msgstr "" 252 248 249 #: includes/events/page/class-page-event.php:27 250 msgid "Page Draft" 251 msgstr "" 252 253 #: includes/events/page/class-page-event.php:32 254 msgid "Page Moved to Trash" 255 msgstr "" 256 257 #: includes/events/page/class-page-event.php:28 258 msgid "Page Pending" 259 msgstr "" 260 253 261 #: includes/events/page/class-page-event.php:29 254 msgid "Page Draft" 255 msgstr "" 256 257 #: includes/events/page/class-page-event.php:34 258 msgid "Page Moved to Trash" 262 msgid "Page Published" 259 263 msgstr "" 260 264 261 265 #: includes/events/page/class-page-event.php:30 262 msgid "Page Pending"266 msgid "Page Scheduled" 263 267 msgstr "" 264 268 265 269 #: includes/events/page/class-page-event.php:31 266 msgid "Page Published"267 msgstr ""268 269 #: includes/events/page/class-page-event.php:32270 msgid "Page Scheduled"271 msgstr ""272 273 #: includes/events/page/class-page-event.php:33274 270 msgid "Page Updated" 275 271 msgstr "" 276 272 277 #: includes/events/page/class-page-event.php:4 6273 #: includes/events/page/class-page-event.php:44 278 274 msgid "Pages" 279 275 msgstr "" … … 291 287 msgstr "" 292 288 293 #: includes/events/system/class-system-event.php: 31289 #: includes/events/system/class-system-event.php:29 294 290 msgid "Plugin Activated" 295 291 msgstr "" 296 292 297 #: includes/events/system/class-system-event.php:3 2293 #: includes/events/system/class-system-event.php:30 298 294 msgid "Plugin Deactivated" 299 295 msgstr "" 300 296 301 #: includes/events/system/class-system-event.php: 30297 #: includes/events/system/class-system-event.php:28 302 298 msgid "Plugin Update Available" 303 299 msgstr "" 304 300 301 #: includes/events/post/class-post-event.php:27 302 msgid "Post Draft" 303 msgstr "" 304 305 #: includes/events/post/class-post-event.php:32 306 msgid "Post Moved to Trash" 307 msgstr "" 308 309 #: includes/events/post/class-post-event.php:28 310 msgid "Post Pending" 311 msgstr "" 312 305 313 #: includes/events/post/class-post-event.php:29 306 msgid "Post Draft" 307 msgstr "" 308 309 #: includes/events/post/class-post-event.php:34 310 msgid "Post Moved to Trash" 314 msgid "Post Published" 311 315 msgstr "" 312 316 313 317 #: includes/events/post/class-post-event.php:30 314 msgid "Post Pending"315 msgstr ""316 317 #: includes/events/post/class-post-event.php:31318 msgid "Post Published"319 msgstr ""320 321 #: includes/events/post/class-post-event.php:32322 318 msgid "Post Scheduled" 323 319 msgstr "" … … 333 329 msgstr "" 334 330 335 #: includes/events/post/class-post-event.php:3 3331 #: includes/events/post/class-post-event.php:31 336 332 msgid "Post Updated" 337 333 msgstr "" 338 334 339 #: includes/events/post/class-post-event.php:4 6335 #: includes/events/post/class-post-event.php:44 340 336 msgid "Posts" 341 337 msgstr "" … … 358 354 msgstr "" 359 355 360 #: includes/services/class-microsoft-teams.php:8 7361 #: includes/services/class-microsoft-teams.php:17 3356 #: includes/services/class-microsoft-teams.php:85 357 #: includes/services/class-microsoft-teams.php:171 362 358 msgid "Select a color to use for the message attachment." 363 359 msgstr "" … … 376 372 msgstr "" 377 373 378 #: includes/services/class-email.php:6 3 includes/services/class-email.php:129374 #: includes/services/class-email.php:62 379 375 msgid "Send notifications to" 380 376 msgstr "" … … 384 380 msgstr "" 385 381 386 #: includes/ admin/class-pages.php:42 includes/admin/class-pages.php:43387 #: includes/admin/class-pages.php: 70382 #: includes/helpers.php:136 includes/admin/class-pages.php:42 383 #: includes/admin/class-pages.php:43 388 384 msgid "Settings" 389 385 msgstr "" 390 386 391 #: includes/services/class-slack.php:4 9 includes/services/class-slack.php:96392 #: includes/services/class-slack.php:18 3387 #: includes/services/class-slack.php:48 includes/services/class-slack.php:95 388 #: includes/services/class-slack.php:182 393 389 msgid "Slack" 394 390 msgstr "" … … 398 394 msgstr "" 399 395 400 #: includes/events/system/class-system-event.php:4 6396 #: includes/events/system/class-system-event.php:44 401 397 msgid "System" 402 398 msgstr "" … … 404 400 #: includes/services/class-discord.php:72 405 401 #: includes/services/class-discord.php:182 406 #: includes/services/class-discord.php:435407 402 msgid "The webhook that you created for your Discord channel." 408 403 msgstr "" 409 404 410 #: includes/services/class-microsoft-teams.php:6 7411 #: includes/services/class-microsoft-teams.php:15 7405 #: includes/services/class-microsoft-teams.php:65 406 #: includes/services/class-microsoft-teams.php:155 412 407 msgid "The webhook that you created for your Microsoft Teams channel." 413 408 msgstr "" 414 409 415 #: includes/services/class-slack.php:6 6 includes/services/class-slack.php:136410 #: includes/services/class-slack.php:65 includes/services/class-slack.php:135 416 411 msgid "The webhook that you created for your Slack channel." 417 412 msgstr "" 418 413 419 #: includes/events/system/class-system-event.php:3 4414 #: includes/events/system/class-system-event.php:32 420 415 msgid "Theme Changed" 421 416 msgstr "" 422 417 423 #: includes/events/system/class-system-event.php:3 3418 #: includes/events/system/class-system-event.php:31 424 419 msgid "Theme Update Available" 425 420 msgstr "" 426 421 427 #: includes/services/class-email.php:6 6422 #: includes/services/class-email.php:65 428 423 msgid "There are email addresses yet." 429 424 msgstr "" … … 450 445 msgstr "" 451 446 452 #: includes/admin/settings/class-uninstall.php:9 2447 #: includes/admin/settings/class-uninstall.php:99 453 448 msgid "" 454 449 "Upon deletion of Hey Notify, you can optionally remove any custom tables, " … … 456 451 msgstr "" 457 452 458 #: includes/events/user/class-user-event.php:4 3453 #: includes/events/user/class-user-event.php:41 459 454 msgid "Users" 460 455 msgstr "" 461 456 462 #: includes/services/class-microsoft-teams.php:30 7457 #: includes/services/class-microsoft-teams.php:304 463 458 msgid "View" 464 459 msgstr "" … … 498 493 msgstr "" 499 494 500 #: includes/services/class-slack.php:6 5 includes/services/class-slack.php:128495 #: includes/services/class-slack.php:64 includes/services/class-slack.php:127 501 496 #: includes/services/class-discord.php:71 502 497 #: includes/services/class-discord.php:174 503 #: includes/services/class-discord.php:433 504 #: includes/services/class-microsoft-teams.php:66 505 #: includes/services/class-microsoft-teams.php:149 498 #: includes/services/class-microsoft-teams.php:64 499 #: includes/services/class-microsoft-teams.php:147 506 500 msgid "Webhook URL" 507 501 msgstr "" 508 502 509 #: includes/events/system/class-system-event.php:29 503 #: includes/cpt.php:260 504 msgid "While in the Live Preview mode, notifications will not be sent." 505 msgstr "" 506 507 #: includes/events/system/class-system-event.php:27 510 508 msgid "WordPress Update Available" 511 509 msgstr "" -
hey-notify/tags/2.0.3/readme.md
r3115121 r3115944 4 4 5 5 [View plugin on WordPress.org](https://wordpress.org/plugins/hey-notify) 6 7 [Live Preview in WordPress Playground](https://wordpress.org/plugins/hey-notify/?preview=1) 6 8 7 9 Get notified when things happen in WordPress. -
hey-notify/tags/2.0.3/readme.txt
r3115315 r3115944 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.2 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 79 = 2.0.3 = 80 * Added support for Live Preview in the Plugin Directory. 81 * Expanded admin header to add and edit notification pages. 82 * Updated language file for translations. 83 79 84 = 2.0.2 = 80 85 * Fixed version. … … 90 95 * Updated Slack settings to reflect their new webhook API. 91 96 * New Comment notifications are not sent if comment is marked as spam. 92 93 = 1.4.2 =94 * Fixed an issue with Post/Page/CPT Updated notifications being triggered.95 96 = 1.4.1 =97 * Fixed a reference to a function that did not exist.98 99 = 1.4.0 =100 * Added support for Microsoft Teams.101 * Improved the type of status changes than can be detected for Posts, Pages, and Custom Post Types.102 * Reorganized the Settings page. -
hey-notify/trunk/changelog.txt
r2533806 r3115944 2 2 3 3 This is an archive of older changelog entries. Most recent entries are maintained in readme.txt 4 5 = 1.4.2 = 6 * Fixed an issue with Post/Page/CPT Updated notifications being triggered. 7 8 = 1.4.1 = 9 * Fixed a reference to a function that did not exist. 10 11 = 1.4.0 = 12 * Added support for Microsoft Teams. 13 * Improved the type of status changes than can be detected for Posts, Pages, and Custom Post Types. 14 * Reorganized the Settings page. 4 15 5 16 = 1.3.0 = -
hey-notify/trunk/hey-notify.php
r3115315 r3115944 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 2.0. 26 * Version: 2.0.3 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ … … 20 20 } 21 21 22 define( 'HEY_NOTIFY_VERSION', '2.0. 2' );22 define( 'HEY_NOTIFY_VERSION', '2.0.3' ); 23 23 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 24 24 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
hey-notify/trunk/includes/cpt.php
r3114686 r3115944 19 19 add_action( 'admin_menu', __NAMESPACE__ . '\\admin_menu' ); 20 20 add_action( 'admin_notices', __NAMESPACE__ . '\\admin_notices', 1 ); 21 add_action( 'admin_notices', __NAMESPACE__ . '\\admin_notices_live_preview' ); 21 22 22 23 // Filters. … … 199 200 function admin_notices() { 200 201 global $pagenow; 201 202 if ( 'edit.php' !== $pagenow ) { 203 return; 204 } 205 206 // phpcs:ignore 207 if ( ! isset( $_GET['post_type'] ) ) { 208 return; 209 } 210 211 // phpcs:ignore 212 if ( 'hey_notify' !== $_GET['post_type'] ) { 202 global $typenow; 203 204 if ( 'edit.php' !== $pagenow && 'post-new.php' !== $pagenow && 'post.php' !== $pagenow ) { 205 return; 206 } 207 208 // phpcs:ignore 209 if ( ! isset( $_GET['post_type'] ) && 'hey_notify' !== $typenow ) { 210 return; 211 } 212 213 // phpcs:ignore 214 if ( isset( $_GET['post_type'] ) && 'hey_notify' !== $_GET['post_type'] ) { 213 215 return; 214 216 } … … 221 223 \Hey_Notify\Helpers\admin_header(); 222 224 } 225 226 /** 227 * Function for handling live preview notifications in the admin area. 228 */ 229 function admin_notices_live_preview() { 230 global $pagenow; 231 global $typenow; 232 233 if ( 'edit.php' !== $pagenow && 'post-new.php' !== $pagenow && 'post.php' !== $pagenow ) { 234 return; 235 } 236 237 // phpcs:ignore 238 if ( ! isset( $_GET['post_type'] ) && 'hey_notify' !== $typenow ) { 239 return; 240 } 241 242 // phpcs:ignore 243 if ( isset( $_GET['post_type'] ) && 'hey_notify' !== $_GET['post_type'] ) { 244 return; 245 } 246 247 $screen = function_exists( 'get_current_screen' ) ? \get_current_screen() : false; 248 if ( $screen && $screen->is_block_editor() ) { 249 return; 250 } 251 252 if ( boolval( get_option( 'hey_notify_live_preview', 0 ) ) !== true ) { 253 return; 254 } 255 256 ?> 257 <div class="notice notice-info"> 258 <p> 259 <?php 260 esc_html_e( 'While in the Live Preview mode, notifications will not be sent.', 'hey-notify' ); 261 ?> 262 </p> 263 </div> 264 <?php 265 } -
hey-notify/trunk/includes/helpers.php
r3114686 r3115944 115 115 */ 116 116 function admin_header() { 117 global $pagenow; 118 global $typenow; 119 117 120 $all_tabs = \apply_filters( 'hey_notify_settings_page_tabs', array() ); 118 121 $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : ( count( $all_tabs ) > 0 ? $all_tabs[0]['tab_id'] : '' ); // phpcs:ignore … … 131 134 switch ( $current_page ) { 132 135 case 'settings': 133 $page_title = __( 'Settings', 'easy-digital-downloads' );136 $page_title = __( 'Settings', 'hey-notify' ); 134 137 break; 138 } 139 if ( 'post-new.php' === $pagenow ) { 140 $page_title = __( 'Add Notification', 'hey-notify' ); 141 } 142 if ( 'post.php' === $pagenow && 'hey_notify' === $typenow ) { 143 $page_title = __( 'Edit Notification', 'hey-notify' ); 135 144 } 136 145 ?> … … 139 148 display: none; 140 149 } 141 .page-title-action {150 /* .page-title-action { 142 151 visibility: hidden; 143 } 152 } */ 144 153 .hey-notify-admin-header-container { 145 154 background-color: #fff; -
hey-notify/trunk/languages/hey-notify.pot
r3114686 r3115944 4 4 "Project-Id-Version: Hey Notify\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2024-07- 02 05:52+0000\n"6 "POT-Creation-Date: 2024-07-10 21:09+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 "X-Domain: hey-notify" 18 18 19 #: includes/events/page/class-page-event.php:6 320 #: includes/events/post/class-post-event.php:6 321 #: includes/events/cpt/class-cpt-event.php: 9222 #: includes/events/comment/class-comment-event.php:5 823 #: includes/events/user/class-user-event.php: 6024 #: includes/events/system/class-system-event.php:6 319 #: includes/events/page/class-page-event.php:61 20 #: includes/events/post/class-post-event.php:61 21 #: includes/events/cpt/class-cpt-event.php:88 22 #: includes/events/comment/class-comment-event.php:56 23 #: includes/events/user/class-user-event.php:58 24 #: includes/events/system/class-system-event.php:61 25 25 msgid "Action" 26 26 msgstr "" 27 27 28 #: includes/services/class-email.php:6 528 #: includes/services/class-email.php:64 29 29 msgid "Add Email Address" 30 30 msgstr "" … … 42 42 msgstr "" 43 43 44 #: includes/events/user/class-user-event.php:31 44 #: includes/helpers.php:140 45 msgid "Add Notification" 46 msgstr "" 47 48 #: includes/events/user/class-user-event.php:29 45 49 msgid "Administrator Failed Login" 46 50 msgstr "" 47 51 48 #: includes/events/user/class-user-event.php: 3052 #: includes/events/user/class-user-event.php:28 49 53 msgid "Administrator Login" 50 54 msgstr "" … … 58 62 msgstr "" 59 63 60 #: includes/services/class-slack.php:28 864 #: includes/services/class-slack.php:286 61 65 msgid "Attached image" 62 66 msgstr "" 63 67 64 #: includes/services/class-microsoft-teams.php:8 665 #: includes/services/class-microsoft-teams.php:16 668 #: includes/services/class-microsoft-teams.php:84 69 #: includes/services/class-microsoft-teams.php:164 66 70 msgid "Color" 67 71 msgstr "" 68 72 69 #: includes/events/comment/class-comment-event.php: 4173 #: includes/events/comment/class-comment-event.php:39 70 74 msgid "Comments" 71 75 msgstr "" … … 88 92 89 93 #: includes/services/class-discord.php:164 90 #: includes/services/class-discord.php:43291 94 msgid "Default Settings for Discord" 92 95 msgstr "" 93 96 94 #: includes/services/class-microsoft-teams.php:13 997 #: includes/services/class-microsoft-teams.php:137 95 98 msgid "Default Settings for Microsoft Teams" 96 99 msgstr "" 97 100 98 #: includes/services/class-slack.php:11 8101 #: includes/services/class-slack.php:117 99 102 msgid "Default Settings for Slack" 100 103 msgstr "" … … 103 106 #: includes/services/class-discord.php:141 104 107 #: includes/services/class-discord.php:278 105 #: includes/services/class-discord.php:430106 108 msgid "Discord" 107 109 msgstr "" … … 109 111 #: includes/services/class-discord.php:91 110 112 #: includes/services/class-discord.php:191 111 #: includes/services/class-discord.php:436112 113 msgid "Discord Avatar" 113 114 msgstr "" … … 115 116 #: includes/services/class-discord.php:110 116 117 #: includes/services/class-discord.php:207 117 #: includes/services/class-discord.php:439118 118 msgid "Discord Username" 119 119 msgstr "" … … 123 123 msgstr "" 124 124 125 #: includes/cpt.php:44 125 #: includes/cpt.php:44 includes/helpers.php:143 126 126 msgid "Edit Notification" 127 127 msgstr "" 128 128 129 #: includes/services/class-email.php:4 7 includes/services/class-email.php:114129 #: includes/services/class-email.php:46 includes/services/class-email.php:113 130 130 msgid "Email" 131 131 msgstr "" 132 132 133 #: includes/services/class-email.php:70 includes/services/class-email.php:132 134 #: includes/services/class-email.php:138 133 #: includes/services/class-email.php:69 135 134 msgid "Email Address" 136 msgstr ""137 138 #: includes/services/class-email.php:137139 msgid "Email Addresses"140 135 msgstr "" 141 136 … … 181 176 msgstr "" 182 177 183 #: includes/services/class-slack.php:6 6 includes/services/class-slack.php:136178 #: includes/services/class-slack.php:65 includes/services/class-slack.php:135 184 179 #: includes/services/class-discord.php:72 185 180 #: includes/services/class-discord.php:182 186 #: includes/services/class-discord.php:435 187 #: includes/services/class-microsoft-teams.php:67 188 #: includes/services/class-microsoft-teams.php:157 181 #: includes/services/class-microsoft-teams.php:65 182 #: includes/services/class-microsoft-teams.php:155 189 183 msgid "Learn More" 190 184 msgstr "" … … 195 189 msgstr "" 196 190 197 #: includes/services/class-microsoft-teams.php: 51198 #: includes/services/class-microsoft-teams.php:11 6199 #: includes/services/class-microsoft-teams.php:21 9191 #: includes/services/class-microsoft-teams.php:49 192 #: includes/services/class-microsoft-teams.php:114 193 #: includes/services/class-microsoft-teams.php:217 200 194 msgid "Microsoft Teams" 201 195 msgstr "" 202 196 203 #: includes/events/comment/class-comment-event.php:2 9197 #: includes/events/comment/class-comment-event.php:27 204 198 msgid "New Comment" 205 199 msgstr "" 206 200 207 #: includes/events/user/class-user-event.php:2 9201 #: includes/events/user/class-user-event.php:27 208 202 msgid "New User Registration" 209 203 msgstr "" … … 225 219 msgstr "" 226 220 227 #: includes/services/class-microsoft-teams.php:25 8228 #: includes/services/class-microsoft-teams.php:25 9229 #: includes/services/class-microsoft-teams.php:26 6221 #: includes/services/class-microsoft-teams.php:255 222 #: includes/services/class-microsoft-teams.php:256 223 #: includes/services/class-microsoft-teams.php:263 230 224 msgid "Notification from Hey Notify" 225 msgstr "" 226 227 #: includes/helpers.php:133 228 msgid "Notifications" 231 229 msgstr "" 232 230 … … 241 239 #: includes/services/class-discord.php:92 242 240 #: includes/services/class-discord.php:198 243 #: includes/services/class-discord.php:437244 241 msgid "Override the default avatar of the webhook. Not required." 245 242 msgstr "" … … 247 244 #: includes/services/class-discord.php:111 248 245 #: includes/services/class-discord.php:215 249 #: includes/services/class-discord.php:440250 246 msgid "Override the default username of the webhook. Not required." 251 247 msgstr "" 252 248 249 #: includes/events/page/class-page-event.php:27 250 msgid "Page Draft" 251 msgstr "" 252 253 #: includes/events/page/class-page-event.php:32 254 msgid "Page Moved to Trash" 255 msgstr "" 256 257 #: includes/events/page/class-page-event.php:28 258 msgid "Page Pending" 259 msgstr "" 260 253 261 #: includes/events/page/class-page-event.php:29 254 msgid "Page Draft" 255 msgstr "" 256 257 #: includes/events/page/class-page-event.php:34 258 msgid "Page Moved to Trash" 262 msgid "Page Published" 259 263 msgstr "" 260 264 261 265 #: includes/events/page/class-page-event.php:30 262 msgid "Page Pending"266 msgid "Page Scheduled" 263 267 msgstr "" 264 268 265 269 #: includes/events/page/class-page-event.php:31 266 msgid "Page Published"267 msgstr ""268 269 #: includes/events/page/class-page-event.php:32270 msgid "Page Scheduled"271 msgstr ""272 273 #: includes/events/page/class-page-event.php:33274 270 msgid "Page Updated" 275 271 msgstr "" 276 272 277 #: includes/events/page/class-page-event.php:4 6273 #: includes/events/page/class-page-event.php:44 278 274 msgid "Pages" 279 275 msgstr "" … … 291 287 msgstr "" 292 288 293 #: includes/events/system/class-system-event.php: 31289 #: includes/events/system/class-system-event.php:29 294 290 msgid "Plugin Activated" 295 291 msgstr "" 296 292 297 #: includes/events/system/class-system-event.php:3 2293 #: includes/events/system/class-system-event.php:30 298 294 msgid "Plugin Deactivated" 299 295 msgstr "" 300 296 301 #: includes/events/system/class-system-event.php: 30297 #: includes/events/system/class-system-event.php:28 302 298 msgid "Plugin Update Available" 303 299 msgstr "" 304 300 301 #: includes/events/post/class-post-event.php:27 302 msgid "Post Draft" 303 msgstr "" 304 305 #: includes/events/post/class-post-event.php:32 306 msgid "Post Moved to Trash" 307 msgstr "" 308 309 #: includes/events/post/class-post-event.php:28 310 msgid "Post Pending" 311 msgstr "" 312 305 313 #: includes/events/post/class-post-event.php:29 306 msgid "Post Draft" 307 msgstr "" 308 309 #: includes/events/post/class-post-event.php:34 310 msgid "Post Moved to Trash" 314 msgid "Post Published" 311 315 msgstr "" 312 316 313 317 #: includes/events/post/class-post-event.php:30 314 msgid "Post Pending"315 msgstr ""316 317 #: includes/events/post/class-post-event.php:31318 msgid "Post Published"319 msgstr ""320 321 #: includes/events/post/class-post-event.php:32322 318 msgid "Post Scheduled" 323 319 msgstr "" … … 333 329 msgstr "" 334 330 335 #: includes/events/post/class-post-event.php:3 3331 #: includes/events/post/class-post-event.php:31 336 332 msgid "Post Updated" 337 333 msgstr "" 338 334 339 #: includes/events/post/class-post-event.php:4 6335 #: includes/events/post/class-post-event.php:44 340 336 msgid "Posts" 341 337 msgstr "" … … 358 354 msgstr "" 359 355 360 #: includes/services/class-microsoft-teams.php:8 7361 #: includes/services/class-microsoft-teams.php:17 3356 #: includes/services/class-microsoft-teams.php:85 357 #: includes/services/class-microsoft-teams.php:171 362 358 msgid "Select a color to use for the message attachment." 363 359 msgstr "" … … 376 372 msgstr "" 377 373 378 #: includes/services/class-email.php:6 3 includes/services/class-email.php:129374 #: includes/services/class-email.php:62 379 375 msgid "Send notifications to" 380 376 msgstr "" … … 384 380 msgstr "" 385 381 386 #: includes/ admin/class-pages.php:42 includes/admin/class-pages.php:43387 #: includes/admin/class-pages.php: 70382 #: includes/helpers.php:136 includes/admin/class-pages.php:42 383 #: includes/admin/class-pages.php:43 388 384 msgid "Settings" 389 385 msgstr "" 390 386 391 #: includes/services/class-slack.php:4 9 includes/services/class-slack.php:96392 #: includes/services/class-slack.php:18 3387 #: includes/services/class-slack.php:48 includes/services/class-slack.php:95 388 #: includes/services/class-slack.php:182 393 389 msgid "Slack" 394 390 msgstr "" … … 398 394 msgstr "" 399 395 400 #: includes/events/system/class-system-event.php:4 6396 #: includes/events/system/class-system-event.php:44 401 397 msgid "System" 402 398 msgstr "" … … 404 400 #: includes/services/class-discord.php:72 405 401 #: includes/services/class-discord.php:182 406 #: includes/services/class-discord.php:435407 402 msgid "The webhook that you created for your Discord channel." 408 403 msgstr "" 409 404 410 #: includes/services/class-microsoft-teams.php:6 7411 #: includes/services/class-microsoft-teams.php:15 7405 #: includes/services/class-microsoft-teams.php:65 406 #: includes/services/class-microsoft-teams.php:155 412 407 msgid "The webhook that you created for your Microsoft Teams channel." 413 408 msgstr "" 414 409 415 #: includes/services/class-slack.php:6 6 includes/services/class-slack.php:136410 #: includes/services/class-slack.php:65 includes/services/class-slack.php:135 416 411 msgid "The webhook that you created for your Slack channel." 417 412 msgstr "" 418 413 419 #: includes/events/system/class-system-event.php:3 4414 #: includes/events/system/class-system-event.php:32 420 415 msgid "Theme Changed" 421 416 msgstr "" 422 417 423 #: includes/events/system/class-system-event.php:3 3418 #: includes/events/system/class-system-event.php:31 424 419 msgid "Theme Update Available" 425 420 msgstr "" 426 421 427 #: includes/services/class-email.php:6 6422 #: includes/services/class-email.php:65 428 423 msgid "There are email addresses yet." 429 424 msgstr "" … … 450 445 msgstr "" 451 446 452 #: includes/admin/settings/class-uninstall.php:9 2447 #: includes/admin/settings/class-uninstall.php:99 453 448 msgid "" 454 449 "Upon deletion of Hey Notify, you can optionally remove any custom tables, " … … 456 451 msgstr "" 457 452 458 #: includes/events/user/class-user-event.php:4 3453 #: includes/events/user/class-user-event.php:41 459 454 msgid "Users" 460 455 msgstr "" 461 456 462 #: includes/services/class-microsoft-teams.php:30 7457 #: includes/services/class-microsoft-teams.php:304 463 458 msgid "View" 464 459 msgstr "" … … 498 493 msgstr "" 499 494 500 #: includes/services/class-slack.php:6 5 includes/services/class-slack.php:128495 #: includes/services/class-slack.php:64 includes/services/class-slack.php:127 501 496 #: includes/services/class-discord.php:71 502 497 #: includes/services/class-discord.php:174 503 #: includes/services/class-discord.php:433 504 #: includes/services/class-microsoft-teams.php:66 505 #: includes/services/class-microsoft-teams.php:149 498 #: includes/services/class-microsoft-teams.php:64 499 #: includes/services/class-microsoft-teams.php:147 506 500 msgid "Webhook URL" 507 501 msgstr "" 508 502 509 #: includes/events/system/class-system-event.php:29 503 #: includes/cpt.php:260 504 msgid "While in the Live Preview mode, notifications will not be sent." 505 msgstr "" 506 507 #: includes/events/system/class-system-event.php:27 510 508 msgid "WordPress Update Available" 511 509 msgstr "" -
hey-notify/trunk/readme.md
r3115121 r3115944 4 4 5 5 [View plugin on WordPress.org](https://wordpress.org/plugins/hey-notify) 6 7 [Live Preview in WordPress Playground](https://wordpress.org/plugins/hey-notify/?preview=1) 6 8 7 9 Get notified when things happen in WordPress. -
hey-notify/trunk/readme.txt
r3115315 r3115944 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.2 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 79 = 2.0.3 = 80 * Added support for Live Preview in the Plugin Directory. 81 * Expanded admin header to add and edit notification pages. 82 * Updated language file for translations. 83 79 84 = 2.0.2 = 80 85 * Fixed version. … … 90 95 * Updated Slack settings to reflect their new webhook API. 91 96 * New Comment notifications are not sent if comment is marked as spam. 92 93 = 1.4.2 =94 * Fixed an issue with Post/Page/CPT Updated notifications being triggered.95 96 = 1.4.1 =97 * Fixed a reference to a function that did not exist.98 99 = 1.4.0 =100 * Added support for Microsoft Teams.101 * Improved the type of status changes than can be detected for Posts, Pages, and Custom Post Types.102 * Reorganized the Settings page.
Note: See TracChangeset
for help on using the changeset viewer.