Code Duplication    Length = 3-3 lines in 2 locations

core/EE_Request_Handler.core.php 2 locations

@@ 142-144 (lines=3) @@
139
			global $wp;
140
		}
141
		$post_name = null;
142
		if ( isset( $wp->query_vars['name'] ) && ! empty( $wp->query_vars['name'] )) {
143
			$post_name = $wp->query_vars['name'];
144
		}
145
		if ( ! $post_name && isset( $wp->query_vars['pagename'] ) && ! empty( $wp->query_vars['pagename'] )) {
146
			$post_name = $wp->query_vars['pagename'];
147
		}
@@ 145-147 (lines=3) @@
142
		if ( isset( $wp->query_vars['name'] ) && ! empty( $wp->query_vars['name'] )) {
143
			$post_name = $wp->query_vars['name'];
144
		}
145
		if ( ! $post_name && isset( $wp->query_vars['pagename'] ) && ! empty( $wp->query_vars['pagename'] )) {
146
			$post_name = $wp->query_vars['pagename'];
147
		}
148
		if ( ! $post_name && isset( $wp->request ) && ! empty( $wp->request )) {
149
			$possible_post_name = basename( $wp->request );
150
			if ( ! is_numeric( $possible_post_name )) {