Changeset 57584 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 02/11/2024 07:12:42 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r56637 r57584 6940 6940 } 6941 6941 6942 // Very stupid, but gives time to the 'from' server to publish! 6942 /* 6943 * The remote site may have sent the pingback before it finished publishing its own content 6944 * containing this pingback URL. If that happens then it won't be immediately possible to fetch 6945 * the pinging post; adding a small delay reduces the likelihood of this happening. 6946 * 6947 * While there are more robust methods than calling `sleep()` here (because `sleep()` merely 6948 * mitigates the risk of requesting the remote post before it's available), this is effective 6949 * enough for most cases and avoids introducing more complexity into this code. 6950 * 6951 * One way to improve the reliability of this code might be to add failure-handling to the remote 6952 * fetch and retry up to a set number of times if it receives a 404. This could also handle 401 and 6953 * 403 responses to differentiate the "does not exist" failure from the "may not access" failure. 6954 */ 6943 6955 sleep( 1 ); 6944 6956
Note: See TracChangeset
for help on using the changeset viewer.