emsone
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP limits uploads although settings in PHP.ini state otherwiseK, so finally I figured everything is working correctly. I simply didn’t know how to properly use the multisite network settings. The experienced restrictions were quickly removed by entering appropriate values in the file upload settings section…
Thanks for all your input!
Cheers
HenryForum: Fixing WordPress
In reply to: WP limits uploads although settings in PHP.ini state otherwiseI’m wrong, $size = 40M. It’s the return value of get_upload_space_available(). Weird…
Will dig deeper later. Gotta catch some sleep for now ??
Cheers
Forum: Fixing WordPress
In reply to: WP limits uploads although settings in PHP.ini state otherwiseThanks for your answers!
@cubecolor: i didn’t know about this setting and it helped to a certain degree. now i get a limit of 2M ??
I tried to chase down the source for the limit in the WP core files and ended up in the ms.php file at the following function:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. ]
function upload_size_limit_filter( $size ) { $fileupload_maxk = 1024 * get_site_option( 'fileupload_maxk', 1500 ); if ( get_site_option( 'upload_space_check_disabled' ) ) return min( $size, $fileupload_maxk ); return min( $size, $fileupload_maxk, get_upload_space_available() ); }
The return value of get_site_option( ‘fileupload_maxk’, 1500 ) is exactly the parameter cubecolor pointed out. However, the function obviously is called with a $size parameter holding the value 2M. I have to admit my knowledge of WP is not good enough to figure out, where this parameter comes from. AFAIK the upload_size_limit_filter function is tied to the filter upload_size_limit. But when I check for where this filter is applied I only find a call with 3 parameters (template.php:801) and all three params do not hold a value of 2M (I checked!).
So on the bottom line I’m kinda put off. When I hardcode the return value of the upload_size_limit_filter function to 40*1024*1024 WP allows me to upload files of sizes up to 40M just fine.
Any thoughts on that?
Cheers
HenryForum: Fixing WordPress
In reply to: WP limits uploads although settings in PHP.ini state otherwiseStill stuck with the problem. No suggestions? Thanks!
Forum: Plugins
In reply to: add class to the editorDid someone find a solution for that? I’d like to edit the presets for that list too.