admin管理员组文章数量:1130349
I need to increase the max size for media. I've change my php.ini. I've change my .htaccess I've change my functions.php
And it's not working.
I've directly change (for try & test) the wp-include/media.php file like this :
function wp_max_upload_size() {
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
$p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );
if(isset($_GET['mathieu'])) {
var_dump($u_bytes);
var_dump($p_bytes);
}
return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
}
In the backoffice, I see :
I've no idea ...
I need to increase the max size for media. I've change my php.ini. I've change my .htaccess I've change my functions.php
And it's not working.
I've directly change (for try & test) the wp-include/media.php file like this :
function wp_max_upload_size() {
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
$p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );
if(isset($_GET['mathieu'])) {
var_dump($u_bytes);
var_dump($p_bytes);
}
return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
}
In the backoffice, I see :
I've no idea ...
Share Improve this question asked Jun 21, 2017 at 9:48 XenofexsXenofexs 1113 bronze badges1 Answer
Reset to default 1I've find the problem. It's multisite WP. The settings need to be set in the multisite admin panel.
https://codex.wordpress/Network_Admin_Settings_Screen
I need to increase the max size for media. I've change my php.ini. I've change my .htaccess I've change my functions.php
And it's not working.
I've directly change (for try & test) the wp-include/media.php file like this :
function wp_max_upload_size() {
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
$p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );
if(isset($_GET['mathieu'])) {
var_dump($u_bytes);
var_dump($p_bytes);
}
return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
}
In the backoffice, I see :
I've no idea ...
I need to increase the max size for media. I've change my php.ini. I've change my .htaccess I've change my functions.php
And it's not working.
I've directly change (for try & test) the wp-include/media.php file like this :
function wp_max_upload_size() {
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
$u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
$p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );
if(isset($_GET['mathieu'])) {
var_dump($u_bytes);
var_dump($p_bytes);
}
return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
}
In the backoffice, I see :
I've no idea ...
Share Improve this question asked Jun 21, 2017 at 9:48 XenofexsXenofexs 1113 bronze badges1 Answer
Reset to default 1I've find the problem. It's multisite WP. The settings need to be set in the multisite admin panel.
https://codex.wordpress/Network_Admin_Settings_Screen
本文标签: uploadsuploadmaxsize doesn39t change
版权声明:本文标题:uploads - upload_max_size doesn't change 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749107700a2316851.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论