wordpress-develop/tests/phpunit/tests/admin
John Blackbourn d1707d6542 Posts, Post Types: Prevent users from being able to delete a protected meta field from a post.
Previously a user could remove a protected meta field by using their browser developer tools to alter the form field properties in the Custom Fields meta box, given that they know the ID of the protected meta field. This change prevents this by preventing any change to a protected meta field, including changing its key.

Props ajoah, johnbillion, peterwilsoncc
Fixes #38293


git-svn-id: https://develop.svn.wordpress.org/trunk@39062 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-31 19:29:07 +00:00
..
includesComment.php Unit Tests: 2016-08-27 08:35:16 +00:00
includesFile.php Unit Tests: 2016-08-27 08:35:16 +00:00
includesListTable.php List Tables: Do not show filter button when there are no filter options available. 2016-10-21 10:32:55 +00:00
includesMisc.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includesPlugin.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
includesPost.php Posts, Post Types: Prevent users from being able to delete a protected meta field from a post. 2016-10-31 19:29:07 +00:00
includesScreen.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
includesTemplate.php Administration: Add the ability to pass an array of screen IDs to add_meta_box() and remove_meta_box(). 2015-10-08 19:06:32 +00:00
includesTheme.php Posts, Post Types: Add support for post type templates. 2016-10-26 08:06:43 +00:00
includesUpdateCore.php Tests: Remove test_new_files_are_not_in_old_files_array() from [36843]. 2016-03-08 16:44:25 +00:00