CoreFiles by mySites.guru
route.js16 lines, 273 bytes, from wordpress-7.0-beta2.zip
Raw History Compare with 7.0-beta1
md5
c53f900dc3387de6d4c2a226376db309
sha1
12a4d9d15297ef3f91cc5eb55be66d8c7fbdcdf1
sha256
d055d1915a944fda9d0777324b0de0992f30e6674e2f3717a6c88a0ab23ea6d1
// routes/template-part/route.ts
import { redirect } from "@wordpress/route";
var route = {
  beforeLoad: () => {
    throw redirect({
      throw: true,
      to: "/template-parts/list/$area",
      params: {
        area: "all"
      }
    });
  }
};
export {
  route
};

The same content is in 5 releases, WordPress 7.0-beta1 to 7.0-beta5. See them all, or every version of this file.