Ticket #75: wp-admin-templates-protect-config.patch
File wp-admin-templates-protect-config.patch, 714 bytes (added by , 20 years ago) |
---|
-
wordpress/wp-admin/templates.php
RCS file: /cvsroot/cafelog/wordpress/wp-admin/templates.php,v retrieving revision 1.29 diff -U3 -r1.29 templates.php
51 51 default: 52 52 53 53 require_once('./admin-header.php'); 54 55 if (stristr($file, 'config') && $user_level <= 9) { 56 die(__('<p>You do not have sufficient permissions to edit config files for this blog.</p>')); 57 } 58 54 59 if ($user_level <= 5) { 55 60 die(__('<p>You have do not have sufficient permissions to edit templates for this blog.</p>')); 56 61 }