ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-13 02:43:08
Editing: view.js
Cancel
Save Changes
// packages/block-library/build-module/query/view.mjs import { store, getContext, getElement, withSyncEvent } from "@wordpress/interactivity"; var isValidLink = (ref) => ref && ref instanceof window.HTMLAnchorElement && ref.href && (!ref.target || ref.target === "_self") && ref.origin === window.location.origin; var isValidEvent = (event) => event.button === 0 && // Left clicks only. !event.metaKey && // Open in new tab (Mac). !event.ctrlKey && // Open in new tab (Windows). !event.altKey && // Download. !event.shiftKey && !event.defaultPrevented; store( "core/query", { actions: { navigate: withSyncEvent(function* (event) { const ctx = getContext(); const { ref } = getElement(); const queryRef = ref.closest( ".wp-block-query[data-wp-router-region]" ); if (isValidLink(ref) && isValidEvent(event)) { event.preventDefault(); const { actions } = yield import("@wordpress/interactivity-router"); yield actions.navigate(ref.href); ctx.url = ref.href; const firstAnchor = `.wp-block-post-template a[href]`; queryRef.querySelector(firstAnchor)?.focus(); } }), *prefetch() { const { ref } = getElement(); if (isValidLink(ref)) { const { actions } = yield import("@wordpress/interactivity-router"); yield actions.prefetch(ref.href); } } }, callbacks: { *prefetch() { const { url } = getContext(); const { ref } = getElement(); if (url && isValidLink(ref)) { const { actions } = yield import("@wordpress/interactivity-router"); yield actions.prefetch(ref.href); } } } }, { lock: true } );
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete