WordPress.org

Make WordPress Core

Ticket #75: wp-admin-templates-protect-config.patch

File wp-admin-templates-protect-config.patch, 714 bytes (added by Ihad, 16 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
     
    5151default:
    5252
    5353        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
    5459        if ($user_level <= 5) {
    5560                die(__('<p>You have do not have sufficient permissions to edit templates for this blog.</p>'));
    5661        }