Code Duplication    Length = 4-4 lines in 2 locations

src/wp-admin/includes/class-wp-ms-sites-list-table.php 1 location

@@ 86-89 (lines=4) @@
83
84
		$s = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST[ 's' ] ) ) : '';
85
		$wild = '';
86
		if ( false !== strpos($s, '*') ) {
87
			$wild = '*';
88
			$s = trim($s, '*');
89
		}
90
91
		/*
92
		 * If the network is large and a search is not being performed, show only

src/wp-admin/includes/ajax-actions.php 1 location

@@ 126-129 (lines=4) @@
123
	$comma = _x( ',', 'tag delimiter' );
124
	if ( ',' !== $comma )
125
		$s = str_replace( $comma, ',', $s );
126
	if ( false !== strpos( $s, ',' ) ) {
127
		$s = explode( ',', $s );
128
		$s = $s[count( $s ) - 1];
129
	}
130
	$s = trim( $s );
131
132
	/**