wordpress: Allow installing/updating plugins and themes
Based on work by Benedek Nagy at: !2198 (closed)
Tests:
-
Install WordPress without this patch. Then switch to code with this patch. Restart FreedomBox. WordPress setup should get executed and the setup version should get incremented to 2. The configuration file should contain the include line for freedombox-static.php. freedombox-static.php should be installed and should contain the line for setting FS_METHOD to 'direct'.
-
Uninstall WordPress and wipe everything. Install WordPress freshly using this patch. The line to include freedombox-static.php should be present in the default configuration file. freedombox-static.php should be installed and should contain the line for setting FS_METHOD to 'direct'.
-
Installing a new theme using a URL and setting the default theme to the new theme should work.
-
Installing a plugin and enabling it should work.
-
(untested) Installing an older version of a plugin and then updating it should work.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org