Code Duplication    Length = 8-8 lines in 2 locations

modules/custom-post-types/testimonial.php 1 location

@@ 365-372 (lines=8) @@
362
	/**
363
	 * Change ‘Enter Title Here’ text for the Testimonial.
364
	 */
365
	function change_default_title( $title ) {
366
		$screen = get_current_screen();
367
368
		if ( self::CUSTOM_POST_TYPE == $screen->post_type )
369
			$title = esc_html__( "Enter the customer's name here", 'jetpack' );
370
371
		return $title;
372
	}
373
374
	/**
375
	 * Change ‘Title’ column label on all Testimonials page.

modules/custom-post-types/nova.php 1 location

@@ 313-320 (lines=8) @@
310
	/**
311
	 * Change ‘Enter Title Here’ text for the Menu Item.
312
	 */
313
	function change_default_title( $title ) {
314
		$screen = get_current_screen();
315
316
		if ( self::MENU_ITEM_POST_TYPE == $screen->post_type )
317
			/* translators: this is about a food menu */
318
			$title = esc_html__( "Enter the menu item's name here", 'jetpack' );
319
320
		return $title;
321
	}
322
323