nextpress-core 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,9 +21,6 @@ export function nextpressProxy(request: NextRequest): NextResponse {
21
21
  response.cookies.set('nextpress_logged_in_user_id', loggedInUserId || '0');
22
22
  return response;
23
23
  }
24
- if (request.cookies.has('nextpress_logged_in_user_id')) {
25
- return NextResponse.next();
26
- }
27
24
 
28
25
  const cookies = request.cookies;
29
26
 
@@ -31,6 +28,10 @@ export function nextpressProxy(request: NextRequest): NextResponse {
31
28
  cookie.name.startsWith('wordpress_logged_in_')
32
29
  );
33
30
 
31
+ if (request.cookies.has('nextpress_logged_in_user_id') && hasWordpressCookie) {
32
+ return NextResponse.next();
33
+ }
34
+
34
35
  if (hasWordpressCookie) {
35
36
  const currentPath = url.pathname + url.search;
36
37
 
@@ -66,7 +66,7 @@ export function RenderTheAdminBar({ loggedInUserId }: Props) {
66
66
  <Script src={adminBar.assets.js.admin_bar}/>
67
67
 
68
68
  <div
69
- className={`fixed top-0 left-0 right-0 transform transition-all duration-300 ease-in-out ${
69
+ className={`fixed top-0 left-0 right-0 z-9999 transform transition-all duration-300 ease-in-out ${
70
70
  isMounted
71
71
  ? "scale-y-100"
72
72
  : "scale-y-0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextpress-core",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Nextpress Core",
5
5
  "keywords": [],
6
6
  "bin": {