Code Duplication    Length = 8-8 lines in 3 locations

components/Helpers.php 1 location

@@ 241-248 (lines=8) @@
238
     *
239
     * @since 2.0
240
     */
241
    public function edit_page_form () {
242
        global $post_type;
243
244
        if ( $this->object_type != $post_type )
245
            return;
246
247
        add_filter( 'enter_title_here', array( $this, 'set_title_text' ), 10, 2 );
248
    }
249
250
    /**
251
     * Add meta boxes to the page

components/Pages.php 1 location

@@ 298-305 (lines=8) @@
295
     *
296
     * @since 2.0
297
     */
298
    public function edit_page_form () {
299
        global $post_type;
300
301
        if ( $this->object_type != $post_type )
302
            return;
303
304
        add_filter( 'enter_title_here', array( $this, 'set_title_text' ), 10, 2 );
305
    }
306
307
    /**
308
     * Filter permalinks and adjust for pod pages

components/Templates/Templates.php 1 location

@@ 284-291 (lines=8) @@
281
	 *
282
	 * @since 2.0
283
	 */
284
	public function edit_page_form () {
285
		global $post_type;
286
287
		if ( $this->object_type != $post_type )
288
			return;
289
290
		add_filter( 'enter_title_here', array( $this, 'set_title_text' ), 10, 2 );
291
	}
292
293
	/**
294
	 * Add meta boxes to the page