Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Suggestion: “Update” should use PHP’s specified upload_tmp_dir, not assume /tmp

Discussion in 'Misc WordPress Requests' started by cfoster, Dec 6, 2017.

  1. cfoster

    Guest

    Suggestion: “Update” should use PHP’s specified upload_tmp_dir, not assume /tmp, by cfoster

    Hi,

    We had to change PHP’s upload_tmp_dir to get around an issue we were having. But this also seems to disable our ability to update WordPress’s core, plugins, etc. because the update routines look for the downloaded files in /tmp. The fix was easy enough:

    define( 'WP_TEMP_DIR', ini_get( 'upload_tmp_dir' ) );

    But this seems like it should be WordPress’s default behaviour (to try to load the update files from PHP’s specified upload directory, not expect they’ll always be in /tmp).

    Hope this helps,
    Colin

    Suggestion: “Update” should use PHP’s specified upload_tmp_dir, not assume /tmp
     
    #1

Share This Page

Web Hosting