static function viewCatalogUrl() {

		if ( isset( $_REQUEST['user_id'] ) ) {

			if ( false === current_user_can( 'edit_user', (int) $_REQUEST['user_id'] ) ) {
				wp_die( __( 'You do not have permission to do that.' ) );
			}

			$u = get_userdata( (int) $_REQUEST['user_id'] );
			if ( false === $u ) {
				wp_die( __( 'The requested user does not exist.' ) );
			}

			$user_login = get_userdata( (int) $_REQUEST['user_id'] )->user_login;
		} else {
			$user_login = get_userdata( get_current_user_id() )->user_login;
		}

		$view_url = network_home_url( "/catalog/$user_login" );

		return $view_url;
	}
static function viewCatalogUrl() {

		if ( isset( $_REQUEST['user_id'] ) ) {

			if ( false === current_user_can( 'edit_user', (int) $_REQUEST['user_id'] ) ) {
				wp_die( __( 'You do not have permission to do that.' ) );
			}

			$u = get_userdata( (int) $_REQUEST['user_id'] );
			if ( false === $u ) {
				wp_die( __( 'The requested user does not exist.' ) );
			}

			$user_login = get_userdata( (int) $_REQUEST['user_id'] )->user_login;
		} else {
			$user_login = get_userdata( get_current_user_id() )->user_login;
		}

		$view_url = network_home_url( "/catalog/$user_login" );

		return $view_url;
	}
static function viewCatalogUrl ( ) { if ( isset ( $ _REQUEST [ 'user_id' ] ) ) { if ( false === current_user_can ( 'edit_user' , ( int ) $ _REQUEST [ 'user_id' ] ) ) { wp_die ( __ ( 'You do not have permission to do that.' ) ) ; } $ u = get_userdata ( ( int ) $ _REQUEST [ 'user_id' ] ) ; if ( false === $ u ) { wp_die ( __ ( 'The requested user does not exist.' ) ) ; } $ user_login = get_userdata ( ( int ) $ _REQUEST [ 'user_id' ] ) -> user_login ; } else { $ user_login = get_userdata ( get_current_user_id ( ) ) -> user_login ; } $ view_url = network_home_url ( "/catalog/$user_login" ) ; return $ view_url ; }
Generate catalog URL. Dies on problem.

@return string
Generate catalog URL . Dies on problem .