| @@ 305-326 (lines=22) @@ | ||
| 302 | /* |
|
| 303 | * Update messages for the Comic admin. |
|
| 304 | */ |
|
| 305 | function updated_messages( $messages ) { |
|
| 306 | global $post; |
|
| 307 | ||
| 308 | $messages['jetpack-comic'] = array( |
|
| 309 | 0 => '', // Unused. Messages start at index 1. |
|
| 310 | 1 => sprintf( __( 'Comic updated. <a href="%s">View comic</a>', 'jetpack'), esc_url( get_permalink( $post->ID ) ) ), |
|
| 311 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), |
|
| 312 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), |
|
| 313 | 4 => esc_html__( 'Comic updated.', 'jetpack' ), |
|
| 314 | /* translators: %s: date and time of the revision */ |
|
| 315 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Comic restored to revision from %s', 'jetpack'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, |
|
| 316 | 6 => sprintf( __( 'Comic published. <a href="%s">View comic</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), |
|
| 317 | 7 => esc_html__( 'Comic saved.', 'jetpack' ), |
|
| 318 | 8 => sprintf( __( 'Comic submitted. <a target="_blank" href="%s">Preview comic</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 319 | 9 => sprintf( __( 'Comic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview comic</a>', 'jetpack' ), |
|
| 320 | // translators: Publish box date format, see https://php.net/date |
|
| 321 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ), |
|
| 322 | 10 => sprintf( __( 'Comic draft updated. <a target="_blank" href="%s">Preview comic</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 323 | ); |
|
| 324 | ||
| 325 | return $messages; |
|
| 326 | } |
|
| 327 | ||
| 328 | /** |
|
| 329 | * Should this Custom Post Type be made available? |
|
| @@ 262-283 (lines=22) @@ | ||
| 259 | /** |
|
| 260 | * Update messages for the Menu Item admin. |
|
| 261 | */ |
|
| 262 | function updated_messages( $messages ) { |
|
| 263 | global $post; |
|
| 264 | ||
| 265 | $messages[self::MENU_ITEM_POST_TYPE] = array( |
|
| 266 | 0 => '', // Unused. Messages start at index 1. |
|
| 267 | /* translators: this is about a food menu */ |
|
| 268 | 1 => sprintf( __( 'Menu item updated. <a href="%s">View item</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), |
|
| 269 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), |
|
| 270 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), |
|
| 271 | /* translators: this is about a food menu */ |
|
| 272 | 4 => esc_html__( 'Menu item updated.', 'jetpack' ), |
|
| 273 | /* translators: %s: date and time of the revision */ |
|
| 274 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Menu item restored to revision from %s', 'jetpack' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, |
|
| 275 | /* translators: this is about a food menu */ |
|
| 276 | 6 => sprintf( __( 'Menu item published. <a href="%s">View item</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), |
|
| 277 | /* translators: this is about a food menu */ |
|
| 278 | 7 => esc_html__( 'Menu item saved.', 'jetpack' ), |
|
| 279 | /* translators: this is about a food menu */ |
|
| 280 | 8 => sprintf( __( 'Menu item submitted. <a target="_blank" href="%s">Preview item</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 281 | /* translators: this is about a food menu */ |
|
| 282 | 9 => sprintf( __( 'Menu item scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview item</a>', 'jetpack' ), |
|
| 283 | // translators: Publish box date format, see https://php.net/date |
|
| 284 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ), |
|
| 285 | /* translators: this is about a food menu */ |
|
| 286 | 10 => sprintf( __( 'Menu item draft updated. <a target="_blank" href="%s">Preview item</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| @@ 373-394 (lines=22) @@ | ||
| 370 | /** |
|
| 371 | * Update messages for the Portfolio admin. |
|
| 372 | */ |
|
| 373 | function updated_messages( $messages ) { |
|
| 374 | global $post; |
|
| 375 | ||
| 376 | $messages[self::CUSTOM_POST_TYPE] = array( |
|
| 377 | 0 => '', // Unused. Messages start at index 1. |
|
| 378 | 1 => sprintf( __( 'Project updated. <a href="%s">View item</a>', 'jetpack'), esc_url( get_permalink( $post->ID ) ) ), |
|
| 379 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), |
|
| 380 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), |
|
| 381 | 4 => esc_html__( 'Project updated.', 'jetpack' ), |
|
| 382 | /* translators: %s: date and time of the revision */ |
|
| 383 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Project restored to revision from %s', 'jetpack'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, |
|
| 384 | 6 => sprintf( __( 'Project published. <a href="%s">View project</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), |
|
| 385 | 7 => esc_html__( 'Project saved.', 'jetpack' ), |
|
| 386 | 8 => sprintf( __( 'Project submitted. <a target="_blank" href="%s">Preview project</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 387 | 9 => sprintf( __( 'Project scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview project</a>', 'jetpack' ), |
|
| 388 | // translators: Publish box date format, see https://php.net/date |
|
| 389 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ), |
|
| 390 | 10 => sprintf( __( 'Project item draft updated. <a target="_blank" href="%s">Preview project</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 391 | ); |
|
| 392 | ||
| 393 | return $messages; |
|
| 394 | } |
|
| 395 | ||
| 396 | /** |
|
| 397 | * Change ‘Title’ column label |
|
| @@ 341-362 (lines=22) @@ | ||
| 338 | /** |
|
| 339 | * Update messages for the Testimonial admin. |
|
| 340 | */ |
|
| 341 | function updated_messages( $messages ) { |
|
| 342 | global $post; |
|
| 343 | ||
| 344 | $messages[ self::CUSTOM_POST_TYPE ] = array( |
|
| 345 | 0 => '', // Unused. Messages start at index 1. |
|
| 346 | 1 => sprintf( __( 'Testimonial updated. <a href="%s">View testimonial</a>', 'jetpack'), esc_url( get_permalink( $post->ID ) ) ), |
|
| 347 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), |
|
| 348 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), |
|
| 349 | 4 => esc_html__( 'Testimonial updated.', 'jetpack' ), |
|
| 350 | /* translators: %s: date and time of the revision */ |
|
| 351 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Testimonial restored to revision from %s', 'jetpack'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, |
|
| 352 | 6 => sprintf( __( 'Testimonial published. <a href="%s">View testimonial</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), |
|
| 353 | 7 => esc_html__( 'Testimonial saved.', 'jetpack' ), |
|
| 354 | 8 => sprintf( __( 'Testimonial submitted. <a target="_blank" href="%s">Preview testimonial</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 355 | 9 => sprintf( __( 'Testimonial scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview testimonial</a>', 'jetpack' ), |
|
| 356 | // translators: Publish box date format, see https://php.net/date |
|
| 357 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ), |
|
| 358 | 10 => sprintf( __( 'Testimonial draft updated. <a target="_blank" href="%s">Preview testimonial</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), |
|
| 359 | ); |
|
| 360 | ||
| 361 | return $messages; |
|
| 362 | } |
|
| 363 | ||
| 364 | /** |
|
| 365 | * Change ‘Enter Title Here’ text for the Testimonial. |
|