[wp-trac] [WordPress Trac] #7059: WP_filesystem changes to work
with new directory constants
WordPress Trac
wp-trac at lists.automattic.com
Thu May 29 02:56:37 GMT 2008
#7059: WP_filesystem changes to work with new directory constants
----------------------------+-----------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version: 2.6
Severity: normal | Keywords: has-patch needs-testing
----------------------------+-----------------------------------------------
Thanks to #6938 and [7999] the WP Filesystem abstraction classes need a
update in order for the plugin upgrader to continue working.
* All Fielsystem classes now extend the WP_Filesystem_Base class
* The code now has a few methods to get the various folders needed:
wp_content_dir(), wp_plugins_dir(), abspath(), wp_themes_dir()
* The find_folder() method should locate any real path on the server
hopefully. Be warned there will be cases where it'll locate the wrong
folder if the requested folder doesnt exist.
* The gethchmod() and getnumchmodfromh() methods which were common have
been moved to the base calss
* The upgrader code has a few extra error cases builtin (Eg. Copy Failed
messages will now indicate what copy process failed)
* A lot of whitespace additions to the classes
Warning: Tested in a few setups, Needs a full testing with a variety of
custom setups.
--
Ticket URL: <http://trac.wordpress.org/ticket/7059>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list