| @@ 298-319 (lines=22) @@ | ||
| 295 | /* | |
| 296 | * Update messages for the Comic admin. | |
| 297 | */ | |
| 298 | 	function updated_messages( $messages ) { | |
| 299 | global $post; | |
| 300 | ||
| 301 | $messages['jetpack-comic'] = array( | |
| 302 | 0 => '', // Unused. Messages start at index 1. | |
| 303 | 1 => sprintf( __( 'Comic updated. <a href="%s">View comic</a>', 'jetpack'), esc_url( get_permalink( $post->ID ) ) ), | |
| 304 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), | |
| 305 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), | |
| 306 | 4 => esc_html__( 'Comic updated.', 'jetpack' ), | |
| 307 | /* translators: %s: date and time of the revision */ | |
| 308 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Comic restored to revision from %s', 'jetpack'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, | |
| 309 | 6 => sprintf( __( 'Comic published. <a href="%s">View comic</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), | |
| 310 | 7 => esc_html__( 'Comic saved.', 'jetpack' ), | |
| 311 | 8 => sprintf( __( 'Comic submitted. <a target="_blank" href="%s">Preview comic</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), | |
| 312 | 9 => sprintf( __( 'Comic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview comic</a>', 'jetpack' ), | |
| 313 | // translators: Publish box date format, see http://php.net/date | |
| 314 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ), | |
| 315 | 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 ) ) ) ), | |
| 316 | ); | |
| 317 | ||
| 318 | return $messages; | |
| 319 | } | |
| 320 | ||
| 321 | /** | |
| 322 | * Should this Custom Post Type be made available? | |
| @@ 333-354 (lines=22) @@ | ||
| 330 | /** | |
| 331 | * Update messages for the Testimonial admin. | |
| 332 | */ | |
| 333 | 	function updated_messages( $messages ) { | |
| 334 | global $post; | |
| 335 | ||
| 336 | $messages[ self::CUSTOM_POST_TYPE ] = array( | |
| 337 | 0 => '', // Unused. Messages start at index 1. | |
| 338 | 1 => sprintf( __( 'Testimonial updated. <a href="%s">View testimonial</a>', 'jetpack'), esc_url( get_permalink( $post->ID ) ) ), | |
| 339 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), | |
| 340 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), | |
| 341 | 4 => esc_html__( 'Testimonial updated.', 'jetpack' ), | |
| 342 | /* translators: %s: date and time of the revision */ | |
| 343 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Testimonial restored to revision from %s', 'jetpack'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, | |
| 344 | 6 => sprintf( __( 'Testimonial published. <a href="%s">View testimonial</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), | |
| 345 | 7 => esc_html__( 'Testimonial saved.', 'jetpack' ), | |
| 346 | 8 => sprintf( __( 'Testimonial submitted. <a target="_blank" href="%s">Preview testimonial</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), | |
| 347 | 9 => sprintf( __( 'Testimonial scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview testimonial</a>', 'jetpack' ), | |
| 348 | // translators: Publish box date format, see http://php.net/date | |
| 349 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ), | |
| 350 | 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 ) ) ) ), | |
| 351 | ); | |
| 352 | ||
| 353 | return $messages; | |
| 354 | } | |
| 355 | ||
| 356 | /** | |
| 357 | * Change ‘Enter Title Here’ text for the Testimonial. | |
| @@ 319-340 (lines=22) @@ | ||
| 316 | /** | |
| 317 | * Update messages for the Portfolio admin. | |
| 318 | */ | |
| 319 | 	function updated_messages( $messages ) { | |
| 320 | global $post; | |
| 321 | ||
| 322 | $messages[self::CUSTOM_POST_TYPE] = array( | |
| 323 | 0 => '', // Unused. Messages start at index 1. | |
| 324 | 1 => sprintf( __( 'Project updated. <a href="%s">View item</a>', 'jetpack'), esc_url( get_permalink( $post->ID ) ) ), | |
| 325 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), | |
| 326 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), | |
| 327 | 4 => esc_html__( 'Project updated.', 'jetpack' ), | |
| 328 | /* translators: %s: date and time of the revision */ | |
| 329 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Project restored to revision from %s', 'jetpack'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, | |
| 330 | 6 => sprintf( __( 'Project published. <a href="%s">View project</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), | |
| 331 | 7 => esc_html__( 'Project saved.', 'jetpack' ), | |
| 332 | 8 => sprintf( __( 'Project submitted. <a target="_blank" href="%s">Preview project</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ), | |
| 333 | 9 => sprintf( __( 'Project scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview project</a>', 'jetpack' ), | |
| 334 | // translators: Publish box date format, see http://php.net/date | |
| 335 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ), | |
| 336 | 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 ) ) ) ), | |
| 337 | ); | |
| 338 | ||
| 339 | return $messages; | |
| 340 | } | |
| 341 | ||
| 342 | /** | |
| 343 | * Change ‘Title’ column label | |
| @@ 232-253 (lines=22) @@ | ||
| 229 | /** | |
| 230 | * Update messages for the Menu Item admin. | |
| 231 | */ | |
| 232 | 	function updated_messages( $messages ) { | |
| 233 | global $post; | |
| 234 | ||
| 235 | $messages[self::MENU_ITEM_POST_TYPE] = array( | |
| 236 | 0 => '', // Unused. Messages start at index 1. | |
| 237 | 1 => sprintf( __( 'Menu item updated. <a href="%s">View item</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), | |
| 238 | 2 => esc_html__( 'Custom field updated.', 'jetpack' ), | |
| 239 | 3 => esc_html__( 'Custom field deleted.', 'jetpack' ), | |
| 240 | 4 => esc_html__( 'Menu item updated.', 'jetpack' ), | |
| 241 | /* translators: %s: date and time of the revision */ | |
| 242 | 5 => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Menu item restored to revision from %s', 'jetpack' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, | |
| 243 | 6 => sprintf( __( 'Menu item published. <a href="%s">View item</a>', 'jetpack' ), esc_url( get_permalink( $post->ID ) ) ), | |
| 244 | 7 => esc_html__( 'Menu item saved.', 'jetpack' ), | |
| 245 | 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 ) ) ) ), | |
| 246 | 9 => sprintf( __( 'Menu item scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview item</a>', 'jetpack' ), | |
| 247 | // translators: Publish box date format, see http://php.net/date | |
| 248 | date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ), | |
| 249 | 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 ) ) ) ), | |
| 250 | ); | |
| 251 | ||
| 252 | return $messages; | |
| 253 | } | |
| 254 | ||
| 255 | ||
| 256 | /** | |