[wp-trac] [WordPress Trac] #63711: Adopt standard get_temp_dir() in Text_Diff

WordPress Trac noreply at wordpress.org
Thu Jul 17 04:53:36 UTC 2025


#63711: Adopt standard get_temp_dir() in Text_Diff
--------------------------------+------------------------------
 Reporter:  TimoTijhof          |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  trunk
 Severity:  minor               |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by TimoTijhof):

 Related:
 * https://core.trac.wordpress.org/ticket/54505
 * https://core.trac.wordpress.org/ticket/39975

 I note that it appears to be impossible to use this code in practice
 because "auto" chooses between the faster php-xdiff extension and
 fallback/native PHP code. To use it, one would need to use `new
 Text_Diff('shell')` or construct the Text_Diff_Engine_shell class
 directly. Are these two classes considered a public stable API for
 plugin/theme authors? If not, I could instead remove that part of it.

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


More information about the wp-trac mailing list