• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wp-graphql / wp-graphql-woocommerce / 23477357490
84%

Build:
DEFAULT BRANCH: develop
Ran 24 Mar 2026 07:15AM UTC
Jobs 1
Files 233
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Mar 2026 07:06AM UTC coverage: 84.069% (+0.002%) from 84.067%
23477357490

push

github

web-flow
fix: prevent WooCommerce session creation on CORS preflight OPTIONS requests (#992)

Move session initialization from graphql_process_http_request hook to
init_graphql_request hook with an is_graphql_http_request() guard.

graphql_process_http_request fires before WPGraphQL's OPTIONS check in
Router::process_http_request(), causing wc_load_cart() to create a new
session for every preflight request. init_graphql_request fires inside
Request constructor which is only instantiated after the OPTIONS exit.

The is_graphql_http_request() guard ensures initialize_session_and_cart()
only runs for actual HTTP requests, not programmatic graphql() calls in
tests or internal usage.

2 of 3 new or added lines in 1 file covered. (66.67%)

14232 of 16929 relevant lines covered (84.07%)

109.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
30.43
2.08% includes/class-woocommerce-filters.php
Jobs
ID Job ID Ran Files Coverage
1 23477357490.1 24 Mar 2026 07:15AM UTC 233
84.07
GitHub Action Run
Source Files on build 23477357490
  • Tree
  • List 233
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3ca56162 on github
  • Prev Build on develop (#23475366929)
  • Next Build on develop (#23478872426)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc