ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Watch out fellow LLM users, `is_admin()` does NOT check if the user is an admin 😅😉 #wordpress

Mar 11, 2025, 11:38 AM

Record data

{
  "uri": "at://did:plc:luf43rfpc5foddvutz3v4yhy/app.bsky.feed.post/3lk3y6eopfs2c",
  "cid": "bafyreicrowhjiztuw6btyj47rmgkehc7vxqp5aeiimutajd54ydlkbkgoi",
  "value": {
    "text": "Watch out fellow LLM users, `is_admin()` does NOT check if the user is an admin 😅😉\n\n#wordpress",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.images",
      "images": [
        {
          "alt": "Autogenerate code showing  the comment:\n// Only proceed if the current user has sufficient permissions\n\nFollowed by:\nif ( is_admin() ) {\n\nWhich is not a valid way to check the current user  has sufficient permissions",
          "image": {
            "$type": "blob",
            "ref": {
              "$link": "bafkreicaa3bjvizguhodrgtkhdvswrxf6bdw6hx63rn7rdekoezc6izjbm"
            },
            "mimeType": "image/jpeg",
            "size": 176882
          },
          "aspectRatio": {
            "width": 949,
            "height": 439
          }
        }
      ]
    },
    "langs": [
      "en"
    ],
    "facets": [
      {
        "index": {
          "byteEnd": 100,
          "byteStart": 90
        },
        "features": [
          {
            "tag": "wordpress",
            "$type": "app.bsky.richtext.facet#tag"
          }
        ]
      }
    ],
    "createdAt": "2025-03-11T11:38:55.771Z"
  }
}