Project

General

Profile

Bug #1856

.htpasswd on cdev conflicting with WP cron

Added by Raymond Hoh over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2012-04-24
Due date:
% Done:

0%

Estimated time:

Description

Since we added .htpasswd on cdev, I've noticed that Reply By Email has stopped working.

I believe this has something to do with how WordPress needs to use wp_remote_post() to ping the site and spawn cron. Since wp_remote_post() cannot access the site without authentication, I'll probably have to write a small override filter to bypass the arguments in wp_remote_post().

Boone: I've added you as a watcher. Feel free to unwatch!

History

#1 Updated by Raymond Hoh over 9 years ago

Fixed in https://github.com/castiron/cac/commit/07f1b8cc356fe3f7b71b71342f54b7d859cd8f7c

Boone: I had to filter 'http_request_args' and hardcoded cdev's username and password from .htpasswd so wp_remote_post() can continue to work as expected.

Let me know if you're okay with this!

#2 Updated by Boone Gorges over 9 years ago

  • Status changed from New to Resolved

Yergh, I forgot about wp_cron. I bet that explains why we used to have to run alternate cron on cdev. Yes, your solution is perfect, thanks.

Also available in: Atom PDF