使WordPress成为核心

变更集57908


忽略:
时间戳:
2024年1月4日下午05:16:55(8周(之前)
作者:
audrasjb公司
消息:

测试:更新中的期望wp_remote_head()wp_remote_get()测验。

看起来WP.com端发生了一些变化,动态压缩了请求的图像,这与之前在这些测试中的预期相冲突。

后续行动[139/测试],[31258],[47142]

由audrasjb审核。
合并[57903][57904]到6.5分支。
道具右旋、瑞士、戴维鲍姆瓦尔德、谢尔盖·比尤科夫。
修复#60865人

位置:
分支/6.5
文件夹:
3编辑

图例:

未修改
补充
远离的
  • 分支/6.5

  • 分支/6.5/tests/phpunit/tests/functions/wpRemoteFopen.php

    56971兰特 57908兰特  
    2828公共函数test_wp_remote_open(){
    2929//此URL提供直接的200响应。
    30 $url='https://asdftestblog1。文件.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg’;
     30$url='https://asdftestblog1。wordpress.com/wp-content/uploads/2007/09/2007-06-30-dsc_4700-1.jpg’;
    3131$response=wp_remote_open($url);
    3232
  • 分支/6.5/tests/phpunit/tests/http/functions.php

    55210兰特 57908兰特  
    1212公共函数test_head_request(){
    1313//此URL直接给出200的响应。
    14 $url='https://asdftestblog1。文件.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg’;
     14$url='https://asdftestblog1。wordpress.com/wp-content/uploads/2007/09/2007-06-30-dsc_4700-1.jpg’;
    1515$response=wp_remote_head($url);
    1616
     
    4242     */
    4343公共函数test_head_404(){
    44 $url='https://asdftestblog1。文件.wordpress.com/2007/09/awefasdfawef.jpg';
     44$url='https://asdftestblog1。wordpress.com/wp-content/uploads/2007/09/awefasdfawef.jpg';
    4545$response=wp_remote_head($url);
    4646
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。