private static function get_short_location( $location ) {
		$abspath = rtrim( realpath( ABSPATH ), '/' ) . '/';
		if ( defined( 'WP_PLUGIN_DIR' ) && 0 === stripos( $location, WP_PLUGIN_DIR ) ) {
			$location = str_replace( trailingslashit( WP_PLUGIN_DIR ), '', $location );
		} elseif ( defined( 'WPMU_PLUGIN_DIR' ) && 0 === stripos( $location, WPMU_PLUGIN_DIR ) ) {
			$location = str_replace( trailingslashit( dirname( WPMU_PLUGIN_DIR ) ), '', $location );
		} elseif ( function_exists( 'get_theme_root' ) && 0 === stripos( $location, get_theme_root() ) ) {
			$location = str_replace( trailingslashit( get_theme_root() ), '', $location );
		} elseif ( 0 === stripos( $location, $abspath . 'wp-admin/' ) ) {
			$location = str_replace( $abspath, '', $location );
		} elseif ( 0 === stripos( $location, $abspath . 'wp-includes/' ) ) {
			$location = str_replace( $abspath, '', $location );
		}
		return $location;
	}
private static function get_short_location( $location ) {
		$abspath = rtrim( realpath( ABSPATH ), '/' ) . '/';
		if ( defined( 'WP_PLUGIN_DIR' ) && 0 === stripos( $location, WP_PLUGIN_DIR ) ) {
			$location = str_replace( trailingslashit( WP_PLUGIN_DIR ), '', $location );
		} elseif ( defined( 'WPMU_PLUGIN_DIR' ) && 0 === stripos( $location, WPMU_PLUGIN_DIR ) ) {
			$location = str_replace( trailingslashit( dirname( WPMU_PLUGIN_DIR ) ), '', $location );
		} elseif ( function_exists( 'get_theme_root' ) && 0 === stripos( $location, get_theme_root() ) ) {
			$location = str_replace( trailingslashit( get_theme_root() ), '', $location );
		} elseif ( 0 === stripos( $location, $abspath . 'wp-admin/' ) ) {
			$location = str_replace( $abspath, '', $location );
		} elseif ( 0 === stripos( $location, $abspath . 'wp-includes/' ) ) {
			$location = str_replace( $abspath, '', $location );
		}
		return $location;
	}
private static function get_short_location ( $ location ) { $ abspath = rtrim ( realpath ( ABSPATH ) , '/' ) . '/' ; if ( defined ( 'WP_PLUGIN_DIR' ) && 0 === stripos ( $ location , WP_PLUGIN_DIR ) ) { $ location = str_replace ( trailingslashit ( WP_PLUGIN_DIR ) , '' , $ location ) ; } elseif ( defined ( 'WPMU_PLUGIN_DIR' ) && 0 === stripos ( $ location , WPMU_PLUGIN_DIR ) ) { $ location = str_replace ( trailingslashit ( dirname ( WPMU_PLUGIN_DIR ) ) , '' , $ location ) ; } elseif ( function_exists ( 'get_theme_root' ) && 0 === stripos ( $ location , get_theme_root ( ) ) ) { $ location = str_replace ( trailingslashit ( get_theme_root ( ) ) , '' , $ location ) ; } elseif ( 0 === stripos ( $ location , $ abspath . 'wp-admin/' ) ) { $ location = str_replace ( $ abspath , '' , $ location ) ; } elseif ( 0 === stripos ( $ location , $ abspath . 'wp-includes/' ) ) { $ location = str_replace ( $ abspath , '' , $ location ) ; } return $ location ; }
Get the short location from the full location

@param string $location
@return string
Get the short location from the full location