Changeset 2466792
- Timestamp:
- 02/01/2021 10:08:16 PM (5 years ago)
- Location:
- hey-notify
- Files:
-
- 10 added
- 36 edited
- 1 copied
-
tags/1.2.0 (copied) (copied from hey-notify/trunk)
-
tags/1.2.0/changelog.txt (added)
-
tags/1.2.0/hey-notify.php (modified) (3 diffs)
-
tags/1.2.0/includes/class-event.php (modified) (2 diffs)
-
tags/1.2.0/includes/events/comment/class-comment-hook.php (modified) (1 diff)
-
tags/1.2.0/includes/events/cpt (added)
-
tags/1.2.0/includes/events/cpt/class-cpt-event.php (added)
-
tags/1.2.0/includes/events/cpt/class-cpt-hook.php (added)
-
tags/1.2.0/includes/events/cpt/loader.php (added)
-
tags/1.2.0/includes/events/page/class-page-hook.php (modified) (10 diffs)
-
tags/1.2.0/includes/events/post/class-post-hook.php (modified) (10 diffs)
-
tags/1.2.0/includes/events/system/class-system-event.php (modified) (2 diffs)
-
tags/1.2.0/includes/events/system/class-system-hook.php (modified) (4 diffs)
-
tags/1.2.0/includes/events/user/class-user-hook.php (modified) (3 diffs)
-
tags/1.2.0/includes/fields.php (modified) (2 diffs)
-
tags/1.2.0/includes/filters.php (modified) (3 diffs)
-
tags/1.2.0/readme.md (modified) (1 diff)
-
tags/1.2.0/readme.txt (modified) (3 diffs)
-
tags/1.2.0/uninstall.php (modified) (1 diff)
-
tags/1.2.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.2.0/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
tags/1.2.0/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.2.0/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.2.0/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/changelog.txt (added)
-
trunk/hey-notify.php (modified) (3 diffs)
-
trunk/includes/class-event.php (modified) (2 diffs)
-
trunk/includes/events/comment/class-comment-hook.php (modified) (1 diff)
-
trunk/includes/events/cpt (added)
-
trunk/includes/events/cpt/class-cpt-event.php (added)
-
trunk/includes/events/cpt/class-cpt-hook.php (added)
-
trunk/includes/events/cpt/loader.php (added)
-
trunk/includes/events/page/class-page-hook.php (modified) (10 diffs)
-
trunk/includes/events/post/class-post-hook.php (modified) (10 diffs)
-
trunk/includes/events/system/class-system-event.php (modified) (2 diffs)
-
trunk/includes/events/system/class-system-hook.php (modified) (4 diffs)
-
trunk/includes/events/user/class-user-hook.php (modified) (3 diffs)
-
trunk/includes/fields.php (modified) (2 diffs)
-
trunk/includes/filters.php (modified) (3 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hey-notify/tags/1.2.0/hey-notify.php
r2461187 r2466792 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 1. 1.66 * Version: 1.2.0 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ … … 19 19 } 20 20 21 define( 'HEY_NOTIFY_VERSION', '1. 1.6' );21 define( 'HEY_NOTIFY_VERSION', '1.2.0' ); 22 22 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 23 23 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 39 39 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/events/user/loader.php'; 40 40 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/events/system/loader.php'; 41 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/events/cpt/loader.php'; 41 42 42 43 // Services. -
hey-notify/tags/1.2.0/includes/class-event.php
r2345565 r2466792 40 40 41 41 /** 42 * Type 43 * 44 * @var string 45 */ 46 public $type; 47 48 /** 42 49 * Class constructor 43 50 * … … 46 53 */ 47 54 public function __construct( $type, $hook ) { 55 $this->type = $type; 48 56 $this->hook = $hook; 49 57 -
hey-notify/tags/1.2.0/includes/events/comment/class-comment-hook.php
r2349284 r2466792 37 37 } 38 38 39 $subject = \ sprintf(39 $subject = \wp_sprintf( 40 40 /* translators: %s: Name of the site */ 41 41 \__( 'Hey, a new comment has been posted on %s!', 'hey-notify' ), 42 42 \get_bloginfo( 'name' ) 43 43 ); 44 45 $subject = apply_filters( 'hey_notify_comment_new_subject', $subject, $comment ); 44 46 45 47 $this->prepare_data( $subject, $comment ); -
hey-notify/tags/1.2.0/includes/events/page/class-page-hook.php
r2349284 r2466792 37 37 38 38 if ( 0 === $current_user ) { 39 $subject = \sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a new page was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a new page was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 39 $subject = \wp_sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a page was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \wp_sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a page was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 52 53 $subject = apply_filters( 'hey_notify_page_draft_subject', $subject, $post ); 52 54 53 55 $this->prepare_data( $subject, $post ); … … 73 75 74 76 if ( 0 === $current_user ) { 75 $subject = \sprintf( 76 /* translators: %s: Name of the site */ 77 \__( 'Hey, a new page was published on %s!', 'hey-notify' ), 78 \get_bloginfo( 'name' ) 79 ); 80 } else { 81 $subject = \sprintf( 82 /* translators: 1: Name of the user 2: Name of the site */ 83 \__( 'Hey, a new page was published by %1$s on %2$s!', 'hey-notify' ), 84 \esc_html( $current_user->display_name ), 85 \get_bloginfo( 'name' ) 86 ); 87 } 77 $subject = \wp_sprintf( 78 /* translators: %s: Name of the site */ 79 \__( 'Hey, a page was published on %s!', 'hey-notify' ), 80 \get_bloginfo( 'name' ) 81 ); 82 } else { 83 $subject = \wp_sprintf( 84 /* translators: 1: Name of the user 2: Name of the site */ 85 \__( 'Hey, a page was published by %1$s on %2$s!', 'hey-notify' ), 86 \esc_html( $current_user->display_name ), 87 \get_bloginfo( 'name' ) 88 ); 89 } 90 91 $subject = apply_filters( 'hey_notify_page_published_subject', $subject, $post ); 88 92 89 93 $this->prepare_data( $subject, $post ); … … 109 113 110 114 if ( 0 === $current_user ) { 111 $subject = \sprintf( 112 /* translators: %s: Name of the site */ 113 \__( 'Hey, a new page was scheduled on %s!', 'hey-notify' ), 114 \get_bloginfo( 'name' ) 115 ); 116 } else { 117 $subject = \sprintf( 118 /* translators: 1: Name of the user 2: Name of the site */ 119 \__( 'Hey, a new page was scheduled by %1$s on %2$s!', 'hey-notify' ), 120 \esc_html( $current_user->display_name ), 121 \get_bloginfo( 'name' ) 122 ); 123 } 115 $subject = \wp_sprintf( 116 /* translators: %s: Name of the site */ 117 \__( 'Hey, a page was scheduled on %s!', 'hey-notify' ), 118 \get_bloginfo( 'name' ) 119 ); 120 } else { 121 $subject = \wp_sprintf( 122 /* translators: 1: Name of the user 2: Name of the site */ 123 \__( 'Hey, a page was scheduled by %1$s on %2$s!', 'hey-notify' ), 124 \esc_html( $current_user->display_name ), 125 \get_bloginfo( 'name' ) 126 ); 127 } 128 129 $subject = apply_filters( 'hey_notify_page_scheduled_subject', $subject, $post ); 124 130 125 131 $this->prepare_data( $subject, $post ); … … 134 140 public function page_pending( $post ) { 135 141 136 $subject = \sprintf( 142 if ( empty( $post ) || ! is_object( $post ) ) { 143 return; 144 } 145 146 if ( 'page' !== $post->post_type ) { 147 return; 148 } 149 150 $subject = \wp_sprintf( 137 151 /* translators: %s: Name of the site */ 138 \__( 'Hey, a newpage is pending on %s!', 'hey-notify' ),152 \__( 'Hey, a page is pending on %s!', 'hey-notify' ), 139 153 \get_bloginfo( 'name' ) 140 154 ); 141 155 156 $subject = apply_filters( 'hey_notify_page_pending_subject', $subject, $post ); 157 142 158 $this->prepare_data( $subject, $post ); 143 159 } … … 166 182 167 183 if ( 0 === $current_user ) { 168 $subject = \ sprintf(184 $subject = \wp_sprintf( 169 185 /* translators: %s: Name of the site */ 170 186 \__( 'Hey, a page was updated on %s!', 'hey-notify' ), … … 172 188 ); 173 189 } else { 174 $subject = \ sprintf(190 $subject = \wp_sprintf( 175 191 /* translators: 1: Name of the user 2: Name of the site */ 176 192 \__( 'Hey, a page was updated by %1$s on %2$s!', 'hey-notify' ), … … 180 196 } 181 197 198 $subject = apply_filters( 'hey_notify_page_updated_subject', $subject, $post ); 199 182 200 $this->prepare_data( $subject, $post ); 183 201 } … … 204 222 205 223 if ( 0 === $current_user ) { 206 $subject = \ sprintf(224 $subject = \wp_sprintf( 207 225 /* translators: %s: Name of the site */ 208 226 \__( 'Hey, a page was deleted on %s!', 'hey-notify' ), … … 210 228 ); 211 229 } else { 212 $subject = \ sprintf(230 $subject = \wp_sprintf( 213 231 /* translators: 1: Name of the user 2: Name of the site */ 214 232 \__( 'Hey, a page was deleted by %1$s on %2$s!', 'hey-notify' ), … … 217 235 ); 218 236 } 237 238 $subject = apply_filters( 'hey_notify_page_trashed_subject', $subject, $post ); 219 239 220 240 $this->prepare_data( $subject, $post ); -
hey-notify/tags/1.2.0/includes/events/post/class-post-hook.php
r2349284 r2466792 37 37 38 38 if ( 0 === $current_user ) { 39 $subject = \sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a new post was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a new post was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 39 $subject = \wp_sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a post was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \wp_sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a post was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 52 53 $subject = apply_filters( 'hey_notify_post_draft_subject', $subject, $post ); 52 54 53 55 $this->prepare_data( $subject, $post ); … … 73 75 74 76 if ( 0 === $current_user ) { 75 $subject = \sprintf( 76 /* translators: %s: Name of the site */ 77 \__( 'Hey, a new post was published on %s!', 'hey-notify' ), 78 \get_bloginfo( 'name' ) 79 ); 80 } else { 81 $subject = \sprintf( 82 /* translators: 1: Name of the user 2: Name of the site */ 83 \__( 'Hey, a new post was published by %1$s on %2$s!', 'hey-notify' ), 84 \esc_html( $current_user->display_name ), 85 \get_bloginfo( 'name' ) 86 ); 87 } 77 $subject = \wp_sprintf( 78 /* translators: %s: Name of the site */ 79 \__( 'Hey, a post was published on %s!', 'hey-notify' ), 80 \get_bloginfo( 'name' ) 81 ); 82 } else { 83 $subject = \wp_sprintf( 84 /* translators: 1: Name of the user 2: Name of the site */ 85 \__( 'Hey, a post was published by %1$s on %2$s!', 'hey-notify' ), 86 \esc_html( $current_user->display_name ), 87 \get_bloginfo( 'name' ) 88 ); 89 } 90 91 $subject = apply_filters( 'hey_notify_post_published_subject', $subject, $post ); 88 92 89 93 $this->prepare_data( $subject, $post ); … … 109 113 110 114 if ( 0 === $current_user ) { 111 $subject = \sprintf( 112 /* translators: %s: Name of the site */ 113 \__( 'Hey, a new post was scheduled on %s!', 'hey-notify' ), 114 \get_bloginfo( 'name' ) 115 ); 116 } else { 117 $subject = \sprintf( 118 /* translators: 1: Name of the user 2: Name of the site */ 119 \__( 'Hey, a new post was scheduled by %1$s on %2$s!', 'hey-notify' ), 120 \esc_html( $current_user->display_name ), 121 \get_bloginfo( 'name' ) 122 ); 123 } 115 $subject = \wp_sprintf( 116 /* translators: %s: Name of the site */ 117 \__( 'Hey, a post was scheduled on %s!', 'hey-notify' ), 118 \get_bloginfo( 'name' ) 119 ); 120 } else { 121 $subject = \wp_sprintf( 122 /* translators: 1: Name of the user 2: Name of the site */ 123 \__( 'Hey, a post was scheduled by %1$s on %2$s!', 'hey-notify' ), 124 \esc_html( $current_user->display_name ), 125 \get_bloginfo( 'name' ) 126 ); 127 } 128 129 $subject = apply_filters( 'hey_notify_post_scheduled_subject', $subject, $post ); 124 130 125 131 $this->prepare_data( $subject, $post ); … … 133 139 */ 134 140 public function post_pending( $post ) { 141 142 if ( empty( $post ) || ! is_object( $post ) ) { 143 return; 144 } 145 146 if ( 'post' !== $post->post_type ) { 147 return; 148 } 135 149 136 150 $subject = \sprintf( 137 151 /* translators: %s: Name of the site */ 138 \__( 'Hey, a newpost is pending on %s!', 'hey-notify' ),152 \__( 'Hey, a post is pending on %s!', 'hey-notify' ), 139 153 \get_bloginfo( 'name' ) 140 154 ); 141 155 156 $subject = apply_filters( 'hey_notify_post_pending_subject', $subject, $post ); 157 142 158 $this->prepare_data( $subject, $post ); 143 159 } … … 166 182 167 183 if ( 0 === $current_user ) { 168 $subject = \ sprintf(184 $subject = \wp_sprintf( 169 185 /* translators: %s: Name of the site */ 170 186 \__( 'Hey, a post was updated on %s!', 'hey-notify' ), … … 172 188 ); 173 189 } else { 174 $subject = \ sprintf(190 $subject = \wp_sprintf( 175 191 /* translators: 1: Name of the user 2: Name of the site */ 176 192 \__( 'Hey, a post was updated by %1$s on %2$s!', 'hey-notify' ), … … 180 196 } 181 197 198 $subject = apply_filters( 'hey_notify_post_updated_subject', $subject, $post ); 199 182 200 $this->prepare_data( $subject, $post ); 183 201 } … … 204 222 205 223 if ( 0 === $current_user ) { 206 $subject = \ sprintf(224 $subject = \wp_sprintf( 207 225 /* translators: %s: Name of the site */ 208 226 \__( 'Hey, a post was deleted on %s!', 'hey-notify' ), … … 210 228 ); 211 229 } else { 212 $subject = \ sprintf(230 $subject = \wp_sprintf( 213 231 /* translators: 1: Name of the user 2: Name of the site */ 214 232 \__( 'Hey, a post was deleted by %1$s on %2$s!', 'hey-notify' ), … … 217 235 ); 218 236 } 237 238 $subject = apply_filters( 'hey_notify_post_trashed_subject', $subject, $post ); 219 239 220 240 $this->prepare_data( $subject, $post ); -
hey-notify/tags/1.2.0/includes/events/system/class-system-event.php
r2461184 r2466792 44 44 ->set_options( 45 45 array( 46 'system_core_update' => __( 'WordPress Update Available', 'hey-notify' ), 47 'system_theme_update' => __( 'Theme Update Available', 'hey-notify' ), 48 'system_plugin_update' => __( 'Plugin Update Available', 'hey-notify' ), 46 'system_core_update' => __( 'WordPress Update Available', 'hey-notify' ), 47 'system_plugin_update' => __( 'Plugin Update Available', 'hey-notify' ), 48 'system_plugin_activated' => __( 'Plugin Activated', 'hey-notify' ), 49 'system_plugin_deactivated' => __( 'Plugin Deactivated', 'hey-notify' ), 50 'system_theme_update' => __( 'Theme Update Available', 'hey-notify' ), 51 'system_theme_changed' => __( 'Theme Changed', 'hey-notify' ), 49 52 ) 50 53 ) … … 74 77 switch ( $event->{$event->type} ) { 75 78 case 'system_core_update': 76 add_action( 'wp_version_check', array( $hook, 'system_core_update' ), 9 ); 77 add_action( 'wp_version_check', array( $hook, 'system_core_update_done' ), 10 ); 79 \add_action( 'wp_version_check', array( $hook, 'system_core_update' ), 9 ); 80 \add_action( 'wp_version_check', array( $hook, 'system_core_update_done' ), 10 ); 81 break; 82 case 'system_plugin_update': 83 \add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update' ), 10 ); 84 \add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update_done' ), 11 ); 85 break; 86 case 'system_plugin_activated': 87 \add_action( 'activated_plugin', array( $hook, 'system_plugin_activated' ), 10, 2 ); 88 break; 89 case 'system_plugin_deactivated': 90 \add_action( 'deactivated_plugin', array( $hook, 'system_plugin_deactivated' ), 10, 2 ); 78 91 break; 79 92 case 'system_theme_update': 80 add_action( 'wp_update_themes', array( $hook, 'system_theme_update' ), 10 );81 add_action( 'wp_update_themes', array( $hook, 'system_theme_update_done' ), 11 );93 \add_action( 'wp_update_themes', array( $hook, 'system_theme_update' ), 10 ); 94 \add_action( 'wp_update_themes', array( $hook, 'system_theme_update_done' ), 11 ); 82 95 break; 83 case 'system_plugin_update': 84 add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update' ), 10 ); 85 add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update_done' ), 11 ); 96 case 'system_theme_changed': 97 \add_action( 'switch_theme', array( $hook, 'system_theme_changed' ), 10 ); 86 98 break; 87 99 } -
hey-notify/tags/1.2.0/includes/events/system/class-system-hook.php
r2461184 r2466792 61 61 } 62 62 63 $subject = \ sprintf(63 $subject = \wp_sprintf( 64 64 /* translators: %s: Name of the site */ 65 65 \__( 'Hey, a new version of WordPress is available on %s!', 'hey-notify' ), 66 66 \get_bloginfo( 'name' ) 67 67 ); 68 69 $subject = apply_filters( 'hey_notify_system_core_update_subject', $subject ); 68 70 69 71 $fields = array( … … 187 189 } 188 190 189 $subject = \ sprintf(191 $subject = \wp_sprintf( 190 192 /* translators: %s: Name of the site */ 191 193 \esc_html__( 'Hey, new theme updates are available on %s!', 'hey-notify' ), 192 194 \get_bloginfo( 'name' ) 193 195 ); 196 197 $subject = apply_filters( 'hey_notify_system_theme_update_subject', $subject ); 194 198 195 199 $data = array( … … 284 288 } 285 289 286 $subject = \ sprintf(290 $subject = \wp_sprintf( 287 291 /* translators: %s: Name of the site */ 288 292 \esc_html__( 'Hey, new plugin updates are available on %s!', 'hey-notify' ), 289 293 \get_bloginfo( 'name' ) 290 294 ); 295 296 $subject = apply_filters( 'hey_notify_system_plugin_update_subject', $subject ); 291 297 292 298 $data = array( … … 331 337 332 338 } 339 340 /** 341 * Plugin Activated 342 * 343 * @param object $plugin Plugin object. 344 * @param boolean $network_wide Was network activated. 345 * @return void 346 */ 347 public function system_plugin_activated( $plugin, $network_wide ) { 348 $plugin_data = \get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, true, false ); 349 350 $fields = array( 351 array( 352 'name' => \esc_html__( 'Name', 'hey-notify' ), 353 'value' => $plugin_data['Name'], 354 'inline' => true, 355 ), 356 array( 357 'name' => \esc_html__( 'Version', 'hey-notify' ), 358 'value' => $plugin_data['Version'], 359 'inline' => true, 360 ), 361 ); 362 363 $subject = \wp_sprintf( 364 /* translators: %s: Name of the site */ 365 \esc_html__( 'Hey, a plugin was just activated on %s!', 'hey-notify' ), 366 \get_bloginfo( 'name' ) 367 ); 368 369 $subject = apply_filters( 'hey_notify_system_plugin_activated_subject', $subject ); 370 371 $data = array( 372 'subject' => $subject, 373 'title' => __( 'View installed plugins', 'hey-notify' ), 374 'url' => \admin_url( 'plugins.php' ), 375 'fields' => $fields, 376 ); 377 378 $this->send( $data ); 379 } 380 381 /** 382 * Plugin Deactivated 383 * 384 * @param object $plugin Plugin object. 385 * @param boolean $network_wide Was network activated. 386 * @return void 387 */ 388 public function system_plugin_deactivated( $plugin, $network_wide ) { 389 $plugin_data = \get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, true, false ); 390 391 $fields = array( 392 array( 393 'name' => \esc_html__( 'Name', 'hey-notify' ), 394 'value' => $plugin_data['Name'], 395 'inline' => true, 396 ), 397 array( 398 'name' => \esc_html__( 'Version', 'hey-notify' ), 399 'value' => $plugin_data['Version'], 400 'inline' => true, 401 ), 402 ); 403 404 $subject = \wp_sprintf( 405 /* translators: %s: Name of the site */ 406 \esc_html__( 'Hey, a plugin was just deactivated on %s!', 'hey-notify' ), 407 \get_bloginfo( 'name' ) 408 ); 409 410 $subject = apply_filters( 'hey_notify_system_plugin_deactivated_subject', $subject ); 411 412 $data = array( 413 'subject' => $subject, 414 'title' => __( 'View installed plugins', 'hey-notify' ), 415 'url' => \admin_url( 'plugins.php' ), 416 'fields' => $fields, 417 ); 418 419 $this->send( $data ); 420 } 421 422 /** 423 * Theme changed 424 * 425 * @param string $new_name New theme name. 426 * @return void 427 */ 428 public function system_theme_changed( $new_name ) { 429 $fields = array( 430 array( 431 'name' => \esc_html__( 'New Theme', 'hey-notify' ), 432 'value' => $new_name, 433 'inline' => true, 434 ), 435 ); 436 437 $subject = \wp_sprintf( 438 /* translators: %s: Name of the site */ 439 \esc_html__( 'Hey, the theme was changed on %s!', 'hey-notify' ), 440 \get_bloginfo( 'name' ) 441 ); 442 443 $subject = apply_filters( 'hey_notify_system_theme_changed_subject', $subject ); 444 445 $data = array( 446 'subject' => $subject, 447 'title' => __( 'View themes', 'hey-notify' ), 448 'url' => \admin_url( 'themes.php' ), 449 'fields' => $fields, 450 ); 451 452 $this->send( $data ); 453 } 333 454 } -
hey-notify/tags/1.2.0/includes/events/user/class-user-hook.php
r2349284 r2466792 32 32 } 33 33 34 $subject = \ sprintf(34 $subject = \wp_sprintf( 35 35 /* translators: %s: Name of the site */ 36 36 \__( 'Hey, a new user just registered on %s!', 'hey-notify' ), 37 37 \get_bloginfo( 'name' ) 38 38 ); 39 40 $subject = apply_filters( 'hey_notify_user_new_subject', $subject, $user ); 39 41 40 42 $this->prepare_data( $subject, $user ); … … 55 57 } 56 58 57 $subject = \ sprintf(59 $subject = \wp_sprintf( 58 60 /* translators: %s: Name of the site */ 59 61 \__( 'Hey, an administrator just logged in to %s!', 'hey-notify' ), 60 62 \get_bloginfo( 'name' ) 61 63 ); 64 65 $subject = apply_filters( 'hey_notify_user_admin_login_subject', $subject, $user ); 62 66 63 67 $this->prepare_data( $subject, $user ); … … 88 92 } 89 93 90 $subject = \ sprintf(94 $subject = \wp_sprintf( 91 95 /* translators: %s: Name of the site */ 92 96 \__( 'Hey, an administrator just failed to log in to %s!', 'hey-notify' ), 93 97 \get_bloginfo( 'name' ) 94 98 ); 99 100 $subject = apply_filters( 'hey_notify_user_admin_login_failed_subject', $subject, $user ); 95 101 96 102 $this->prepare_data( $subject, $user ); -
hey-notify/tags/1.2.0/includes/fields.php
r2357853 r2466792 30 30 function boot() { 31 31 \Carbon_Fields\Carbon_Fields::boot(); 32 $sidebar_manager = \Carbon_Fields\Carbon_Fields::resolve( 'sidebar_manager' ); 33 remove_action( 'admin_enqueue_scripts', array( $sidebar_manager, 'enqueue_scripts' ) ); 32 34 } 33 35 … … 76 78 __( 'Uninstall', 'hey-notify' ), 77 79 apply_filters( 'hey_notify_settings_uninstall', array() ) 80 ) 81 ->add_tab( 82 __( 'Licenses', 'hey-notify' ), 83 apply_filters( 'hey_notify_settings_licenses', array() ) 78 84 ); 79 85 -
hey-notify/tags/1.2.0/includes/filters.php
r2349284 r2466792 77 77 ->set_html( 78 78 sprintf( 79 '< p>%1s</p>',79 '<h2>%1s</h2>', 80 80 __( 'Upon deletion of the plugin, you can optionally remove all custom data, settings, etc.', 'hey-notify' ) 81 81 ) … … 99 99 ->set_html( 100 100 sprintf( 101 '< p>%1s</p>',102 __( 'General settings for Hey Notify .', 'hey-notify' )101 '<h2>%1s</h2>', 102 __( 'General settings for Hey Notify', 'hey-notify' ) 103 103 ) 104 104 ) … … 107 107 Field::make( 'radio_image', 'hey_notify_default_service', __( 'Default service:', 'hey-notify' ) ) 108 108 ->set_options( get_service_options() ) 109 ); 110 $fields[] = ( 111 Field::make( 'html', 'hey_notify_services_cpt_heading' ) 112 ->set_html( 113 sprintf( 114 '<h2>%1s</h2>', 115 __( 'Custom Post Type Settings', 'hey-notify' ) 116 ) 117 ) 118 ); 119 $fields[] = ( 120 Field::make( 'checkbox', 'hey_notify_show_public_cpt', __( 'Only display public Custom Post Types', 'hey-notify' ) ) 121 ->set_option_value( 'yes' ) 122 ->set_default_value( 'yes' ) 109 123 ); 110 124 return $fields; -
hey-notify/tags/1.2.0/readme.md
r2349893 r2466792 7 7 Get notified when things happen in WordPress. 8 8 9 __Notifications can be sent to:__ 9 **Notifications can be sent to:** 10 10 11 *Slack12 *Discord13 *Email11 - Slack 12 - Discord 13 - Email 14 14 15 __Notifications for:__ 15 **Notifications for:** 16 16 17 * Posts - Status transitions 18 * Pages - Status transitions 19 * Comments - New comments 20 * Users - New users, admin logins, failed admin logins 21 * System Events - WordPress, plugin, and theme updates 22 17 - Posts 18 - Draft 19 - Pending 20 - Scheduled 21 - Published 22 - Trashed 23 - Pages 24 - Draft 25 - Pending 26 - Scheduled 27 - Published 28 - Trashed 29 - Custom Post Types 30 - Draft 31 - Pending 32 - Scheduled 33 - Published 34 - Trashed 35 - Comments 36 - New Comment 37 - Users 38 - New User 39 - Administrator Login 40 - Failed Administrator Login 41 - System Events 42 - WordPress Updates 43 - Plugin Updates 44 - Plugin Activation 45 - Plugin Deactivation 46 - Theme Updates 47 - Theme Change 23 48 24 49 ## Installation 25 50 26 51 1. Upload the `hey-notify` folder to the `/wp-content/plugins/` directory. 27 2. Activate the __Hey Notify__ plugin through the __Plugins__menu in WordPress.28 3. Configure the plugin by going to the __Hey Notify__menu that appears in your WordPress Admin.52 2. Activate the **Hey Notify** plugin through the **Plugins** menu in WordPress. 53 3. Configure the plugin by going to the **Hey Notify** menu that appears in your WordPress Admin. 29 54 30 55 ## Support -
hey-notify/tags/1.2.0/readme.txt
r2461187 r2466792 1 1 === Hey Notify === 2 Contributors: firetree, danielmilner2 Contributors: firetree, danielmilner 3 3 Tags: notifications, slack, discord, email 4 4 Requires at least: 4.3 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.3 7 Stable tag: 1. 1.67 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 23 23 = Notifications for: = 24 24 25 * Posts - Status transitions 26 * Pages - Status transitions 27 * Comments - New comments 28 * Users - New users, admin logins, failed admin logins 29 * System Events - WordPress, plugin, and theme updates 25 * Posts 26 * Draft 27 * Pending 28 * Scheduled 29 * Published 30 * Trashed 31 * Pages 32 * Draft 33 * Pending 34 * Scheduled 35 * Published 36 * Trashed 37 * Custom Post Types 38 * Draft 39 * Pending 40 * Scheduled 41 * Published 42 * Trashed 43 * Comments 44 * New Comment 45 * Users 46 * New User 47 * Administrator Login 48 * Failed Administrator Login 49 * System Events 50 * WordPress Updates 51 * Plugin Updates 52 * Plugin Activation 53 * Plugin Deactivation 54 * Theme Updates 55 * Theme Change 30 56 31 57 == Installation == … … 41 67 == Changelog == 42 68 43 = 1.1.6 = 44 * Removed some unneeded vendor files from the previous release. 45 46 = 1.1.5 = 47 * Fixed an issue where System events could only send notifications to one service. 48 49 = 1.1.4 = 50 * Fixed an issue with the Discord service. 51 52 = 1.1.3 = 53 * Fixed Discord message titles. 54 * Fixed an error with WordPress Core update checks. 55 * Added an action for interacting with the Settings container. 56 57 = 1.1.2 = 58 * Removed parentheses surrounding new version numbers in theme and plugin update notifications. 59 60 = 1.1.0 = 61 * Added comment notifications. 62 * Added user notifications. 63 * Added system notifications. 64 65 = 1.0.0 = 66 * Initial release. 69 = 1.2.0 = 70 * Added new System notification for Plugin Activation, Plugin Deactivation, and Theme Changes. 71 * Added Custom Post Type notifications. 72 * For developers: Added filter hooks to the message subjects. -
hey-notify/tags/1.2.0/uninstall.php
r2349284 r2466792 47 47 \delete_option( '_hey_notify_remove_data' ); 48 48 \delete_option( '_hey_notify_default_service' ); 49 \delete_option( '_hey_notify_show_public_cpt' ); 49 50 \delete_option( 'hey_notify_wordpress_version' ); 50 51 \delete_option( 'hey_notify_theme_versions' ); 51 52 \delete_option( 'hey_notify_plugin_versions' ); 53 \delete_option( 'hey_notify_custom_post_types' ); 52 54 } 53 55 -
hey-notify/tags/1.2.0/vendor/autoload.php
r2461184 r2466792 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b::getLoader();7 return ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547::getLoader(); -
hey-notify/tags/1.2.0/vendor/composer/InstalledVersions.php
r2461184 r2466792 25 25 'root' => 26 26 array ( 27 'pretty_version' => '1. 1.5.x-dev',28 'version' => '1. 1.5.9999999-dev',27 'pretty_version' => '1.2.0.x-dev', 28 'version' => '1.2.0.9999999-dev', 29 29 'aliases' => 30 30 array ( 31 31 ), 32 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',32 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 33 33 'name' => '__root__', 34 34 ), … … 37 37 '__root__' => 38 38 array ( 39 'pretty_version' => '1. 1.5.x-dev',40 'version' => '1. 1.5.9999999-dev',39 'pretty_version' => '1.2.0.x-dev', 40 'version' => '1.2.0.9999999-dev', 41 41 'aliases' => 42 42 array ( 43 43 ), 44 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',44 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 45 45 ), 46 46 'htmlburger/carbon-fields' => -
hey-notify/tags/1.2.0/vendor/composer/autoload_real.php
r2461184 r2466792 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b5 class ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 29 spl_autoload_unregister(array('ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitf423eb57d555607d3ce8435dde716547::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
hey-notify/tags/1.2.0/vendor/composer/autoload_static.php
r2461184 r2466792 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b7 class ComposerStaticInitf423eb57d555607d3ce8435dde716547 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 28 28 { 29 29 return \Closure::bind(function () use ($loader) { 30 $loader->prefixLengthsPsr4 = ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::$prefixLengthsPsr4;31 $loader->prefixDirsPsr4 = ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::$prefixDirsPsr4;32 $loader->classMap = ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::$classMap;30 $loader->prefixLengthsPsr4 = ComposerStaticInitf423eb57d555607d3ce8435dde716547::$prefixLengthsPsr4; 31 $loader->prefixDirsPsr4 = ComposerStaticInitf423eb57d555607d3ce8435dde716547::$prefixDirsPsr4; 32 $loader->classMap = ComposerStaticInitf423eb57d555607d3ce8435dde716547::$classMap; 33 33 34 34 }, null, ClassLoader::class); -
hey-notify/tags/1.2.0/vendor/composer/installed.php
r2461184 r2466792 2 2 'root' => 3 3 array ( 4 'pretty_version' => '1. 1.5.x-dev',5 'version' => '1. 1.5.9999999-dev',4 'pretty_version' => '1.2.0.x-dev', 5 'version' => '1.2.0.9999999-dev', 6 6 'aliases' => 7 7 array ( 8 8 ), 9 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',9 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 10 10 'name' => '__root__', 11 11 ), … … 14 14 '__root__' => 15 15 array ( 16 'pretty_version' => '1. 1.5.x-dev',17 'version' => '1. 1.5.9999999-dev',16 'pretty_version' => '1.2.0.x-dev', 17 'version' => '1.2.0.9999999-dev', 18 18 'aliases' => 19 19 array ( 20 20 ), 21 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',21 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 22 22 ), 23 23 'htmlburger/carbon-fields' => -
hey-notify/trunk/hey-notify.php
r2461187 r2466792 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 1. 1.66 * Version: 1.2.0 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ … … 19 19 } 20 20 21 define( 'HEY_NOTIFY_VERSION', '1. 1.6' );21 define( 'HEY_NOTIFY_VERSION', '1.2.0' ); 22 22 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 23 23 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 39 39 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/events/user/loader.php'; 40 40 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/events/system/loader.php'; 41 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/events/cpt/loader.php'; 41 42 42 43 // Services. -
hey-notify/trunk/includes/class-event.php
r2345565 r2466792 40 40 41 41 /** 42 * Type 43 * 44 * @var string 45 */ 46 public $type; 47 48 /** 42 49 * Class constructor 43 50 * … … 46 53 */ 47 54 public function __construct( $type, $hook ) { 55 $this->type = $type; 48 56 $this->hook = $hook; 49 57 -
hey-notify/trunk/includes/events/comment/class-comment-hook.php
r2349284 r2466792 37 37 } 38 38 39 $subject = \ sprintf(39 $subject = \wp_sprintf( 40 40 /* translators: %s: Name of the site */ 41 41 \__( 'Hey, a new comment has been posted on %s!', 'hey-notify' ), 42 42 \get_bloginfo( 'name' ) 43 43 ); 44 45 $subject = apply_filters( 'hey_notify_comment_new_subject', $subject, $comment ); 44 46 45 47 $this->prepare_data( $subject, $comment ); -
hey-notify/trunk/includes/events/page/class-page-hook.php
r2349284 r2466792 37 37 38 38 if ( 0 === $current_user ) { 39 $subject = \sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a new page was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a new page was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 39 $subject = \wp_sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a page was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \wp_sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a page was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 52 53 $subject = apply_filters( 'hey_notify_page_draft_subject', $subject, $post ); 52 54 53 55 $this->prepare_data( $subject, $post ); … … 73 75 74 76 if ( 0 === $current_user ) { 75 $subject = \sprintf( 76 /* translators: %s: Name of the site */ 77 \__( 'Hey, a new page was published on %s!', 'hey-notify' ), 78 \get_bloginfo( 'name' ) 79 ); 80 } else { 81 $subject = \sprintf( 82 /* translators: 1: Name of the user 2: Name of the site */ 83 \__( 'Hey, a new page was published by %1$s on %2$s!', 'hey-notify' ), 84 \esc_html( $current_user->display_name ), 85 \get_bloginfo( 'name' ) 86 ); 87 } 77 $subject = \wp_sprintf( 78 /* translators: %s: Name of the site */ 79 \__( 'Hey, a page was published on %s!', 'hey-notify' ), 80 \get_bloginfo( 'name' ) 81 ); 82 } else { 83 $subject = \wp_sprintf( 84 /* translators: 1: Name of the user 2: Name of the site */ 85 \__( 'Hey, a page was published by %1$s on %2$s!', 'hey-notify' ), 86 \esc_html( $current_user->display_name ), 87 \get_bloginfo( 'name' ) 88 ); 89 } 90 91 $subject = apply_filters( 'hey_notify_page_published_subject', $subject, $post ); 88 92 89 93 $this->prepare_data( $subject, $post ); … … 109 113 110 114 if ( 0 === $current_user ) { 111 $subject = \sprintf( 112 /* translators: %s: Name of the site */ 113 \__( 'Hey, a new page was scheduled on %s!', 'hey-notify' ), 114 \get_bloginfo( 'name' ) 115 ); 116 } else { 117 $subject = \sprintf( 118 /* translators: 1: Name of the user 2: Name of the site */ 119 \__( 'Hey, a new page was scheduled by %1$s on %2$s!', 'hey-notify' ), 120 \esc_html( $current_user->display_name ), 121 \get_bloginfo( 'name' ) 122 ); 123 } 115 $subject = \wp_sprintf( 116 /* translators: %s: Name of the site */ 117 \__( 'Hey, a page was scheduled on %s!', 'hey-notify' ), 118 \get_bloginfo( 'name' ) 119 ); 120 } else { 121 $subject = \wp_sprintf( 122 /* translators: 1: Name of the user 2: Name of the site */ 123 \__( 'Hey, a page was scheduled by %1$s on %2$s!', 'hey-notify' ), 124 \esc_html( $current_user->display_name ), 125 \get_bloginfo( 'name' ) 126 ); 127 } 128 129 $subject = apply_filters( 'hey_notify_page_scheduled_subject', $subject, $post ); 124 130 125 131 $this->prepare_data( $subject, $post ); … … 134 140 public function page_pending( $post ) { 135 141 136 $subject = \sprintf( 142 if ( empty( $post ) || ! is_object( $post ) ) { 143 return; 144 } 145 146 if ( 'page' !== $post->post_type ) { 147 return; 148 } 149 150 $subject = \wp_sprintf( 137 151 /* translators: %s: Name of the site */ 138 \__( 'Hey, a newpage is pending on %s!', 'hey-notify' ),152 \__( 'Hey, a page is pending on %s!', 'hey-notify' ), 139 153 \get_bloginfo( 'name' ) 140 154 ); 141 155 156 $subject = apply_filters( 'hey_notify_page_pending_subject', $subject, $post ); 157 142 158 $this->prepare_data( $subject, $post ); 143 159 } … … 166 182 167 183 if ( 0 === $current_user ) { 168 $subject = \ sprintf(184 $subject = \wp_sprintf( 169 185 /* translators: %s: Name of the site */ 170 186 \__( 'Hey, a page was updated on %s!', 'hey-notify' ), … … 172 188 ); 173 189 } else { 174 $subject = \ sprintf(190 $subject = \wp_sprintf( 175 191 /* translators: 1: Name of the user 2: Name of the site */ 176 192 \__( 'Hey, a page was updated by %1$s on %2$s!', 'hey-notify' ), … … 180 196 } 181 197 198 $subject = apply_filters( 'hey_notify_page_updated_subject', $subject, $post ); 199 182 200 $this->prepare_data( $subject, $post ); 183 201 } … … 204 222 205 223 if ( 0 === $current_user ) { 206 $subject = \ sprintf(224 $subject = \wp_sprintf( 207 225 /* translators: %s: Name of the site */ 208 226 \__( 'Hey, a page was deleted on %s!', 'hey-notify' ), … … 210 228 ); 211 229 } else { 212 $subject = \ sprintf(230 $subject = \wp_sprintf( 213 231 /* translators: 1: Name of the user 2: Name of the site */ 214 232 \__( 'Hey, a page was deleted by %1$s on %2$s!', 'hey-notify' ), … … 217 235 ); 218 236 } 237 238 $subject = apply_filters( 'hey_notify_page_trashed_subject', $subject, $post ); 219 239 220 240 $this->prepare_data( $subject, $post ); -
hey-notify/trunk/includes/events/post/class-post-hook.php
r2349284 r2466792 37 37 38 38 if ( 0 === $current_user ) { 39 $subject = \sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a new post was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a new post was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 39 $subject = \wp_sprintf( 40 /* translators: %s: Name of the site */ 41 \__( 'Hey, a post was drafted on %s!', 'hey-notify' ), 42 \get_bloginfo( 'name' ) 43 ); 44 } else { 45 $subject = \wp_sprintf( 46 /* translators: 1: Name of the user 2: Name of the site */ 47 \__( 'Hey, a post was drafted by %1$s on %2$s!', 'hey-notify' ), 48 \esc_html( $current_user->display_name ), 49 \get_bloginfo( 'name' ) 50 ); 51 } 52 53 $subject = apply_filters( 'hey_notify_post_draft_subject', $subject, $post ); 52 54 53 55 $this->prepare_data( $subject, $post ); … … 73 75 74 76 if ( 0 === $current_user ) { 75 $subject = \sprintf( 76 /* translators: %s: Name of the site */ 77 \__( 'Hey, a new post was published on %s!', 'hey-notify' ), 78 \get_bloginfo( 'name' ) 79 ); 80 } else { 81 $subject = \sprintf( 82 /* translators: 1: Name of the user 2: Name of the site */ 83 \__( 'Hey, a new post was published by %1$s on %2$s!', 'hey-notify' ), 84 \esc_html( $current_user->display_name ), 85 \get_bloginfo( 'name' ) 86 ); 87 } 77 $subject = \wp_sprintf( 78 /* translators: %s: Name of the site */ 79 \__( 'Hey, a post was published on %s!', 'hey-notify' ), 80 \get_bloginfo( 'name' ) 81 ); 82 } else { 83 $subject = \wp_sprintf( 84 /* translators: 1: Name of the user 2: Name of the site */ 85 \__( 'Hey, a post was published by %1$s on %2$s!', 'hey-notify' ), 86 \esc_html( $current_user->display_name ), 87 \get_bloginfo( 'name' ) 88 ); 89 } 90 91 $subject = apply_filters( 'hey_notify_post_published_subject', $subject, $post ); 88 92 89 93 $this->prepare_data( $subject, $post ); … … 109 113 110 114 if ( 0 === $current_user ) { 111 $subject = \sprintf( 112 /* translators: %s: Name of the site */ 113 \__( 'Hey, a new post was scheduled on %s!', 'hey-notify' ), 114 \get_bloginfo( 'name' ) 115 ); 116 } else { 117 $subject = \sprintf( 118 /* translators: 1: Name of the user 2: Name of the site */ 119 \__( 'Hey, a new post was scheduled by %1$s on %2$s!', 'hey-notify' ), 120 \esc_html( $current_user->display_name ), 121 \get_bloginfo( 'name' ) 122 ); 123 } 115 $subject = \wp_sprintf( 116 /* translators: %s: Name of the site */ 117 \__( 'Hey, a post was scheduled on %s!', 'hey-notify' ), 118 \get_bloginfo( 'name' ) 119 ); 120 } else { 121 $subject = \wp_sprintf( 122 /* translators: 1: Name of the user 2: Name of the site */ 123 \__( 'Hey, a post was scheduled by %1$s on %2$s!', 'hey-notify' ), 124 \esc_html( $current_user->display_name ), 125 \get_bloginfo( 'name' ) 126 ); 127 } 128 129 $subject = apply_filters( 'hey_notify_post_scheduled_subject', $subject, $post ); 124 130 125 131 $this->prepare_data( $subject, $post ); … … 133 139 */ 134 140 public function post_pending( $post ) { 141 142 if ( empty( $post ) || ! is_object( $post ) ) { 143 return; 144 } 145 146 if ( 'post' !== $post->post_type ) { 147 return; 148 } 135 149 136 150 $subject = \sprintf( 137 151 /* translators: %s: Name of the site */ 138 \__( 'Hey, a newpost is pending on %s!', 'hey-notify' ),152 \__( 'Hey, a post is pending on %s!', 'hey-notify' ), 139 153 \get_bloginfo( 'name' ) 140 154 ); 141 155 156 $subject = apply_filters( 'hey_notify_post_pending_subject', $subject, $post ); 157 142 158 $this->prepare_data( $subject, $post ); 143 159 } … … 166 182 167 183 if ( 0 === $current_user ) { 168 $subject = \ sprintf(184 $subject = \wp_sprintf( 169 185 /* translators: %s: Name of the site */ 170 186 \__( 'Hey, a post was updated on %s!', 'hey-notify' ), … … 172 188 ); 173 189 } else { 174 $subject = \ sprintf(190 $subject = \wp_sprintf( 175 191 /* translators: 1: Name of the user 2: Name of the site */ 176 192 \__( 'Hey, a post was updated by %1$s on %2$s!', 'hey-notify' ), … … 180 196 } 181 197 198 $subject = apply_filters( 'hey_notify_post_updated_subject', $subject, $post ); 199 182 200 $this->prepare_data( $subject, $post ); 183 201 } … … 204 222 205 223 if ( 0 === $current_user ) { 206 $subject = \ sprintf(224 $subject = \wp_sprintf( 207 225 /* translators: %s: Name of the site */ 208 226 \__( 'Hey, a post was deleted on %s!', 'hey-notify' ), … … 210 228 ); 211 229 } else { 212 $subject = \ sprintf(230 $subject = \wp_sprintf( 213 231 /* translators: 1: Name of the user 2: Name of the site */ 214 232 \__( 'Hey, a post was deleted by %1$s on %2$s!', 'hey-notify' ), … … 217 235 ); 218 236 } 237 238 $subject = apply_filters( 'hey_notify_post_trashed_subject', $subject, $post ); 219 239 220 240 $this->prepare_data( $subject, $post ); -
hey-notify/trunk/includes/events/system/class-system-event.php
r2461184 r2466792 44 44 ->set_options( 45 45 array( 46 'system_core_update' => __( 'WordPress Update Available', 'hey-notify' ), 47 'system_theme_update' => __( 'Theme Update Available', 'hey-notify' ), 48 'system_plugin_update' => __( 'Plugin Update Available', 'hey-notify' ), 46 'system_core_update' => __( 'WordPress Update Available', 'hey-notify' ), 47 'system_plugin_update' => __( 'Plugin Update Available', 'hey-notify' ), 48 'system_plugin_activated' => __( 'Plugin Activated', 'hey-notify' ), 49 'system_plugin_deactivated' => __( 'Plugin Deactivated', 'hey-notify' ), 50 'system_theme_update' => __( 'Theme Update Available', 'hey-notify' ), 51 'system_theme_changed' => __( 'Theme Changed', 'hey-notify' ), 49 52 ) 50 53 ) … … 74 77 switch ( $event->{$event->type} ) { 75 78 case 'system_core_update': 76 add_action( 'wp_version_check', array( $hook, 'system_core_update' ), 9 ); 77 add_action( 'wp_version_check', array( $hook, 'system_core_update_done' ), 10 ); 79 \add_action( 'wp_version_check', array( $hook, 'system_core_update' ), 9 ); 80 \add_action( 'wp_version_check', array( $hook, 'system_core_update_done' ), 10 ); 81 break; 82 case 'system_plugin_update': 83 \add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update' ), 10 ); 84 \add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update_done' ), 11 ); 85 break; 86 case 'system_plugin_activated': 87 \add_action( 'activated_plugin', array( $hook, 'system_plugin_activated' ), 10, 2 ); 88 break; 89 case 'system_plugin_deactivated': 90 \add_action( 'deactivated_plugin', array( $hook, 'system_plugin_deactivated' ), 10, 2 ); 78 91 break; 79 92 case 'system_theme_update': 80 add_action( 'wp_update_themes', array( $hook, 'system_theme_update' ), 10 );81 add_action( 'wp_update_themes', array( $hook, 'system_theme_update_done' ), 11 );93 \add_action( 'wp_update_themes', array( $hook, 'system_theme_update' ), 10 ); 94 \add_action( 'wp_update_themes', array( $hook, 'system_theme_update_done' ), 11 ); 82 95 break; 83 case 'system_plugin_update': 84 add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update' ), 10 ); 85 add_action( 'wp_update_plugins', array( $hook, 'system_plugin_update_done' ), 11 ); 96 case 'system_theme_changed': 97 \add_action( 'switch_theme', array( $hook, 'system_theme_changed' ), 10 ); 86 98 break; 87 99 } -
hey-notify/trunk/includes/events/system/class-system-hook.php
r2461184 r2466792 61 61 } 62 62 63 $subject = \ sprintf(63 $subject = \wp_sprintf( 64 64 /* translators: %s: Name of the site */ 65 65 \__( 'Hey, a new version of WordPress is available on %s!', 'hey-notify' ), 66 66 \get_bloginfo( 'name' ) 67 67 ); 68 69 $subject = apply_filters( 'hey_notify_system_core_update_subject', $subject ); 68 70 69 71 $fields = array( … … 187 189 } 188 190 189 $subject = \ sprintf(191 $subject = \wp_sprintf( 190 192 /* translators: %s: Name of the site */ 191 193 \esc_html__( 'Hey, new theme updates are available on %s!', 'hey-notify' ), 192 194 \get_bloginfo( 'name' ) 193 195 ); 196 197 $subject = apply_filters( 'hey_notify_system_theme_update_subject', $subject ); 194 198 195 199 $data = array( … … 284 288 } 285 289 286 $subject = \ sprintf(290 $subject = \wp_sprintf( 287 291 /* translators: %s: Name of the site */ 288 292 \esc_html__( 'Hey, new plugin updates are available on %s!', 'hey-notify' ), 289 293 \get_bloginfo( 'name' ) 290 294 ); 295 296 $subject = apply_filters( 'hey_notify_system_plugin_update_subject', $subject ); 291 297 292 298 $data = array( … … 331 337 332 338 } 339 340 /** 341 * Plugin Activated 342 * 343 * @param object $plugin Plugin object. 344 * @param boolean $network_wide Was network activated. 345 * @return void 346 */ 347 public function system_plugin_activated( $plugin, $network_wide ) { 348 $plugin_data = \get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, true, false ); 349 350 $fields = array( 351 array( 352 'name' => \esc_html__( 'Name', 'hey-notify' ), 353 'value' => $plugin_data['Name'], 354 'inline' => true, 355 ), 356 array( 357 'name' => \esc_html__( 'Version', 'hey-notify' ), 358 'value' => $plugin_data['Version'], 359 'inline' => true, 360 ), 361 ); 362 363 $subject = \wp_sprintf( 364 /* translators: %s: Name of the site */ 365 \esc_html__( 'Hey, a plugin was just activated on %s!', 'hey-notify' ), 366 \get_bloginfo( 'name' ) 367 ); 368 369 $subject = apply_filters( 'hey_notify_system_plugin_activated_subject', $subject ); 370 371 $data = array( 372 'subject' => $subject, 373 'title' => __( 'View installed plugins', 'hey-notify' ), 374 'url' => \admin_url( 'plugins.php' ), 375 'fields' => $fields, 376 ); 377 378 $this->send( $data ); 379 } 380 381 /** 382 * Plugin Deactivated 383 * 384 * @param object $plugin Plugin object. 385 * @param boolean $network_wide Was network activated. 386 * @return void 387 */ 388 public function system_plugin_deactivated( $plugin, $network_wide ) { 389 $plugin_data = \get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, true, false ); 390 391 $fields = array( 392 array( 393 'name' => \esc_html__( 'Name', 'hey-notify' ), 394 'value' => $plugin_data['Name'], 395 'inline' => true, 396 ), 397 array( 398 'name' => \esc_html__( 'Version', 'hey-notify' ), 399 'value' => $plugin_data['Version'], 400 'inline' => true, 401 ), 402 ); 403 404 $subject = \wp_sprintf( 405 /* translators: %s: Name of the site */ 406 \esc_html__( 'Hey, a plugin was just deactivated on %s!', 'hey-notify' ), 407 \get_bloginfo( 'name' ) 408 ); 409 410 $subject = apply_filters( 'hey_notify_system_plugin_deactivated_subject', $subject ); 411 412 $data = array( 413 'subject' => $subject, 414 'title' => __( 'View installed plugins', 'hey-notify' ), 415 'url' => \admin_url( 'plugins.php' ), 416 'fields' => $fields, 417 ); 418 419 $this->send( $data ); 420 } 421 422 /** 423 * Theme changed 424 * 425 * @param string $new_name New theme name. 426 * @return void 427 */ 428 public function system_theme_changed( $new_name ) { 429 $fields = array( 430 array( 431 'name' => \esc_html__( 'New Theme', 'hey-notify' ), 432 'value' => $new_name, 433 'inline' => true, 434 ), 435 ); 436 437 $subject = \wp_sprintf( 438 /* translators: %s: Name of the site */ 439 \esc_html__( 'Hey, the theme was changed on %s!', 'hey-notify' ), 440 \get_bloginfo( 'name' ) 441 ); 442 443 $subject = apply_filters( 'hey_notify_system_theme_changed_subject', $subject ); 444 445 $data = array( 446 'subject' => $subject, 447 'title' => __( 'View themes', 'hey-notify' ), 448 'url' => \admin_url( 'themes.php' ), 449 'fields' => $fields, 450 ); 451 452 $this->send( $data ); 453 } 333 454 } -
hey-notify/trunk/includes/events/user/class-user-hook.php
r2349284 r2466792 32 32 } 33 33 34 $subject = \ sprintf(34 $subject = \wp_sprintf( 35 35 /* translators: %s: Name of the site */ 36 36 \__( 'Hey, a new user just registered on %s!', 'hey-notify' ), 37 37 \get_bloginfo( 'name' ) 38 38 ); 39 40 $subject = apply_filters( 'hey_notify_user_new_subject', $subject, $user ); 39 41 40 42 $this->prepare_data( $subject, $user ); … … 55 57 } 56 58 57 $subject = \ sprintf(59 $subject = \wp_sprintf( 58 60 /* translators: %s: Name of the site */ 59 61 \__( 'Hey, an administrator just logged in to %s!', 'hey-notify' ), 60 62 \get_bloginfo( 'name' ) 61 63 ); 64 65 $subject = apply_filters( 'hey_notify_user_admin_login_subject', $subject, $user ); 62 66 63 67 $this->prepare_data( $subject, $user ); … … 88 92 } 89 93 90 $subject = \ sprintf(94 $subject = \wp_sprintf( 91 95 /* translators: %s: Name of the site */ 92 96 \__( 'Hey, an administrator just failed to log in to %s!', 'hey-notify' ), 93 97 \get_bloginfo( 'name' ) 94 98 ); 99 100 $subject = apply_filters( 'hey_notify_user_admin_login_failed_subject', $subject, $user ); 95 101 96 102 $this->prepare_data( $subject, $user ); -
hey-notify/trunk/includes/fields.php
r2357853 r2466792 30 30 function boot() { 31 31 \Carbon_Fields\Carbon_Fields::boot(); 32 $sidebar_manager = \Carbon_Fields\Carbon_Fields::resolve( 'sidebar_manager' ); 33 remove_action( 'admin_enqueue_scripts', array( $sidebar_manager, 'enqueue_scripts' ) ); 32 34 } 33 35 … … 76 78 __( 'Uninstall', 'hey-notify' ), 77 79 apply_filters( 'hey_notify_settings_uninstall', array() ) 80 ) 81 ->add_tab( 82 __( 'Licenses', 'hey-notify' ), 83 apply_filters( 'hey_notify_settings_licenses', array() ) 78 84 ); 79 85 -
hey-notify/trunk/includes/filters.php
r2349284 r2466792 77 77 ->set_html( 78 78 sprintf( 79 '< p>%1s</p>',79 '<h2>%1s</h2>', 80 80 __( 'Upon deletion of the plugin, you can optionally remove all custom data, settings, etc.', 'hey-notify' ) 81 81 ) … … 99 99 ->set_html( 100 100 sprintf( 101 '< p>%1s</p>',102 __( 'General settings for Hey Notify .', 'hey-notify' )101 '<h2>%1s</h2>', 102 __( 'General settings for Hey Notify', 'hey-notify' ) 103 103 ) 104 104 ) … … 107 107 Field::make( 'radio_image', 'hey_notify_default_service', __( 'Default service:', 'hey-notify' ) ) 108 108 ->set_options( get_service_options() ) 109 ); 110 $fields[] = ( 111 Field::make( 'html', 'hey_notify_services_cpt_heading' ) 112 ->set_html( 113 sprintf( 114 '<h2>%1s</h2>', 115 __( 'Custom Post Type Settings', 'hey-notify' ) 116 ) 117 ) 118 ); 119 $fields[] = ( 120 Field::make( 'checkbox', 'hey_notify_show_public_cpt', __( 'Only display public Custom Post Types', 'hey-notify' ) ) 121 ->set_option_value( 'yes' ) 122 ->set_default_value( 'yes' ) 109 123 ); 110 124 return $fields; -
hey-notify/trunk/readme.md
r2349893 r2466792 7 7 Get notified when things happen in WordPress. 8 8 9 __Notifications can be sent to:__ 9 **Notifications can be sent to:** 10 10 11 *Slack12 *Discord13 *Email11 - Slack 12 - Discord 13 - Email 14 14 15 __Notifications for:__ 15 **Notifications for:** 16 16 17 * Posts - Status transitions 18 * Pages - Status transitions 19 * Comments - New comments 20 * Users - New users, admin logins, failed admin logins 21 * System Events - WordPress, plugin, and theme updates 22 17 - Posts 18 - Draft 19 - Pending 20 - Scheduled 21 - Published 22 - Trashed 23 - Pages 24 - Draft 25 - Pending 26 - Scheduled 27 - Published 28 - Trashed 29 - Custom Post Types 30 - Draft 31 - Pending 32 - Scheduled 33 - Published 34 - Trashed 35 - Comments 36 - New Comment 37 - Users 38 - New User 39 - Administrator Login 40 - Failed Administrator Login 41 - System Events 42 - WordPress Updates 43 - Plugin Updates 44 - Plugin Activation 45 - Plugin Deactivation 46 - Theme Updates 47 - Theme Change 23 48 24 49 ## Installation 25 50 26 51 1. Upload the `hey-notify` folder to the `/wp-content/plugins/` directory. 27 2. Activate the __Hey Notify__ plugin through the __Plugins__menu in WordPress.28 3. Configure the plugin by going to the __Hey Notify__menu that appears in your WordPress Admin.52 2. Activate the **Hey Notify** plugin through the **Plugins** menu in WordPress. 53 3. Configure the plugin by going to the **Hey Notify** menu that appears in your WordPress Admin. 29 54 30 55 ## Support -
hey-notify/trunk/readme.txt
r2461187 r2466792 1 1 === Hey Notify === 2 Contributors: firetree, danielmilner2 Contributors: firetree, danielmilner 3 3 Tags: notifications, slack, discord, email 4 4 Requires at least: 4.3 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.3 7 Stable tag: 1. 1.67 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 23 23 = Notifications for: = 24 24 25 * Posts - Status transitions 26 * Pages - Status transitions 27 * Comments - New comments 28 * Users - New users, admin logins, failed admin logins 29 * System Events - WordPress, plugin, and theme updates 25 * Posts 26 * Draft 27 * Pending 28 * Scheduled 29 * Published 30 * Trashed 31 * Pages 32 * Draft 33 * Pending 34 * Scheduled 35 * Published 36 * Trashed 37 * Custom Post Types 38 * Draft 39 * Pending 40 * Scheduled 41 * Published 42 * Trashed 43 * Comments 44 * New Comment 45 * Users 46 * New User 47 * Administrator Login 48 * Failed Administrator Login 49 * System Events 50 * WordPress Updates 51 * Plugin Updates 52 * Plugin Activation 53 * Plugin Deactivation 54 * Theme Updates 55 * Theme Change 30 56 31 57 == Installation == … … 41 67 == Changelog == 42 68 43 = 1.1.6 = 44 * Removed some unneeded vendor files from the previous release. 45 46 = 1.1.5 = 47 * Fixed an issue where System events could only send notifications to one service. 48 49 = 1.1.4 = 50 * Fixed an issue with the Discord service. 51 52 = 1.1.3 = 53 * Fixed Discord message titles. 54 * Fixed an error with WordPress Core update checks. 55 * Added an action for interacting with the Settings container. 56 57 = 1.1.2 = 58 * Removed parentheses surrounding new version numbers in theme and plugin update notifications. 59 60 = 1.1.0 = 61 * Added comment notifications. 62 * Added user notifications. 63 * Added system notifications. 64 65 = 1.0.0 = 66 * Initial release. 69 = 1.2.0 = 70 * Added new System notification for Plugin Activation, Plugin Deactivation, and Theme Changes. 71 * Added Custom Post Type notifications. 72 * For developers: Added filter hooks to the message subjects. -
hey-notify/trunk/uninstall.php
r2349284 r2466792 47 47 \delete_option( '_hey_notify_remove_data' ); 48 48 \delete_option( '_hey_notify_default_service' ); 49 \delete_option( '_hey_notify_show_public_cpt' ); 49 50 \delete_option( 'hey_notify_wordpress_version' ); 50 51 \delete_option( 'hey_notify_theme_versions' ); 51 52 \delete_option( 'hey_notify_plugin_versions' ); 53 \delete_option( 'hey_notify_custom_post_types' ); 52 54 } 53 55 -
hey-notify/trunk/vendor/autoload.php
r2461184 r2466792 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b::getLoader();7 return ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547::getLoader(); -
hey-notify/trunk/vendor/composer/InstalledVersions.php
r2461184 r2466792 25 25 'root' => 26 26 array ( 27 'pretty_version' => '1. 1.5.x-dev',28 'version' => '1. 1.5.9999999-dev',27 'pretty_version' => '1.2.0.x-dev', 28 'version' => '1.2.0.9999999-dev', 29 29 'aliases' => 30 30 array ( 31 31 ), 32 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',32 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 33 33 'name' => '__root__', 34 34 ), … … 37 37 '__root__' => 38 38 array ( 39 'pretty_version' => '1. 1.5.x-dev',40 'version' => '1. 1.5.9999999-dev',39 'pretty_version' => '1.2.0.x-dev', 40 'version' => '1.2.0.9999999-dev', 41 41 'aliases' => 42 42 array ( 43 43 ), 44 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',44 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 45 45 ), 46 46 'htmlburger/carbon-fields' => -
hey-notify/trunk/vendor/composer/autoload_real.php
r2461184 r2466792 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b5 class ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 29 spl_autoload_unregister(array('ComposerAutoloaderInit c4d1016cfbfc548fc9f1275a2706c10b', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitf423eb57d555607d3ce8435dde716547', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitf423eb57d555607d3ce8435dde716547::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
hey-notify/trunk/vendor/composer/autoload_static.php
r2461184 r2466792 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b7 class ComposerStaticInitf423eb57d555607d3ce8435dde716547 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 28 28 { 29 29 return \Closure::bind(function () use ($loader) { 30 $loader->prefixLengthsPsr4 = ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::$prefixLengthsPsr4;31 $loader->prefixDirsPsr4 = ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::$prefixDirsPsr4;32 $loader->classMap = ComposerStaticInit c4d1016cfbfc548fc9f1275a2706c10b::$classMap;30 $loader->prefixLengthsPsr4 = ComposerStaticInitf423eb57d555607d3ce8435dde716547::$prefixLengthsPsr4; 31 $loader->prefixDirsPsr4 = ComposerStaticInitf423eb57d555607d3ce8435dde716547::$prefixDirsPsr4; 32 $loader->classMap = ComposerStaticInitf423eb57d555607d3ce8435dde716547::$classMap; 33 33 34 34 }, null, ClassLoader::class); -
hey-notify/trunk/vendor/composer/installed.php
r2461184 r2466792 2 2 'root' => 3 3 array ( 4 'pretty_version' => '1. 1.5.x-dev',5 'version' => '1. 1.5.9999999-dev',4 'pretty_version' => '1.2.0.x-dev', 5 'version' => '1.2.0.9999999-dev', 6 6 'aliases' => 7 7 array ( 8 8 ), 9 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',9 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 10 10 'name' => '__root__', 11 11 ), … … 14 14 '__root__' => 15 15 array ( 16 'pretty_version' => '1. 1.5.x-dev',17 'version' => '1. 1.5.9999999-dev',16 'pretty_version' => '1.2.0.x-dev', 17 'version' => '1.2.0.9999999-dev', 18 18 'aliases' => 19 19 array ( 20 20 ), 21 'reference' => ' b57d1880d1b08fe658c81e7c07c0d97c48816e8c',21 'reference' => '60ed723ee5f55ddfb49cb97380a05f931f429c64', 22 22 ), 23 23 'htmlburger/carbon-fields' =>
Note: See TracChangeset
for help on using the changeset viewer.