Ville Mattila
Forum Replies Created
-
Hi,
I am wondering if I could contribute somehow and help solving the issue. Just went through the ms-files.php and it’s rather simple script, though there are no integration points to receive the file from CDN (S3 in our case).
At line 26 the ms-files.php builds the file path:
$file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] );Right after, there is a check
if ( !is_file( $file ) ) {that matches if there is no local file on the server. This is the location where I should somehow check from the CDN if the file exists there.Does W3TC provide any API that I could use to convert the requested file name to a CDN url (to fetch the file and save it locally then)?
Ville
In the WP network environment, W3TC creates /wp-content/w3tc-(blog name)/ folders, as well as /wp-content/w3-total-cache-config-(blog name).php files for each blog in the network.
I have recently seen also a thread (but now can’t find it anywhere) where the W3TC author states that the future versions could share Amazon S3 CDN settings between sites/blogs in a network environment. This could also imply that the per-blog setting files etc are not used in the future…
I think I managed to find at least some kind of solution on this issue.
My custom type
capability_typeargument was not unique (inregister_post_type functioncall). After making it unique to the post type and addingmap_meta_capargument too, I got the custom post types listed as Editor role.However one more oddity to the case: I noticed that the related taxonomy needs at least one term to make the posts visible. If the taxonomy is empty, nothing is listed. It does not matter whether the taxonomy term assigned to any post. Strange. 😉
Also, the RS Role Definitions tab issue (Manage/Assign Category) still exists.
Ville
Here are the code I added to lines 112-114 in category-posts-in-custom-menu.php
$tax = get_taxonomy($menu_item->object); $customPostTypes = $tax->object_type; $query_arr['post_type'] = $customPostTypes;