Skip to content

Commit

Permalink
Change max_post_size to post_max_size
Browse files Browse the repository at this point in the history
This has been in here wrong for years, but per https://www.php.net/manual/en/ini.core.php#ini.post-max-size, should be post_max_size and not max_post_size.
  • Loading branch information
TheLastCicada authored Oct 26, 2023
1 parent 043925f commit 850a49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/markdown/Systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The following are settings in the ```php.ini``` file that commonly are adjusted

* **upload_max_filesize**: This will be the largest file size that can be uploaded to WordPress, usually through the media library. While a large value can increase the risk of certain type of flood attacks, these are uncommon and uploading media is a core business requirement of many sites, so it is generally considered safe to increase this as high as needed. When using Nginx, the ```client_max_body_size``` should be set to the same size as ```upload_max_filesize```. Additionally, CDNs such as Cloudflare can have an adjustable upload limit as well. Consider all media types when setting this value as audio and video can be several hundred megabytes.

* **max_post_size**: Needs to be as large or larger than ```upload_max_filesize```. This will be the maximum size of data sent through the POST method.
* **post_max_size**: Needs to be as large or larger than ```upload_max_filesize```. This will be the maximum size of data sent through the POST method.

* **date.timezone**: Set this to the main timezone of the admins of a WordPress site. It doesn’t much matter what this is set to, but some functions will work better when this value is set.

Expand Down

0 comments on commit 850a49d

Please sign in to comment.