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