[wp-trac] [WordPress Trac] #62085: HTML API: Stop counting no-op seek operations against the quota.

WordPress Trac noreply at wordpress.org
Thu Sep 19 21:56:31 UTC 2024


#62085: HTML API: Stop counting no-op seek operations against the quota.
-------------------------+---------------------
 Reporter:  dmsnell      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.7
Component:  HTML API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------

Comment (by dmsnell):

 After proposing this, I'm now wondering if it's wrong to open up the quote
 because I think it's also similarly likely that an accidental infinite
 loop could involve no-op seeks. Perhaps we want a different getter to
 report if the processor has moved from a bookmark?

 {{{#!php
 <?php
 if ( ! $processor->is_at_bookmark( 'here' ) ) {
         $processor->seek( 'here' );
 }
 }}}


 cc: @westonruter @jonsurrell

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62085#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list