Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Avoid resolving membership plans twice when compiling products

Chiusa
#1,911 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@superdav42 ci sta già lavorando.

Dal 8/10/2026.

  • #1912 di @superdav42 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

origin:interactive status:in-review

Problem and implementation

inc/models/class-membership.php, Membership::get_all_products(), resolves the plan into $product and then resolves it again when building the product entry. Reuse $product, preserving the missing-plan branch, quantities and add-on order. Do not introduce persistent model caching.

Verification

PHP syntax and configured focused PHPCS; local semantic probes covering missing plans, product identity, add-ons and plan mutation between calls. In authenticated local PHP replay, Xdebug plan resolutions fall from 212 to 108 and model lookups from 220 to 116 on the statistics dashboard, with identical serialized MRR output. Profiling helpers are disposable and are not proposed as repository infrastructure. Full PHPUnit has not been run.

This verified change is being submitted interactively in a PR; no worker dispatch or deployment is requested.


aidevops.sh v3.34.13 plugin for OpenCode v1.18.31 with gpt-6.1-sol spent 12h 22m and 1,099,072 tokens on this with the user in an interactive session.

Lingua principale
PHP
Stelle
218
Fork
87
Merge medio
1g 7h
PR unite (30g)
85

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Ultimate-Multisite/ultimate-multisite

Tutte le issue di Ultimate-Multisite/ultimate-multisite

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.