WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/01/2009 09:12:17 PM (12 years ago)
Author:
ryan
Message:

Add some CYA cap checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r11379 r11761  
    1818    preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
    1919    $pagenow = $self_matches[1];
     20    $pagenow = trim($pagenow, '/');
    2021    $pagenow = preg_replace('#\?.*?$#', '', $pagenow);
    2122    if ( '' === $pagenow || 'index' === $pagenow || 'index.php' === $pagenow ) {
Note: See TracChangeset for help on using the changeset viewer.