Make WordPress Core

Changeset 19322


Ignore:
Timestamp:
11/17/2011 06:43:33 PM (13 years ago)
Author:
ryan
Message:

Avoid notice when handling malformed permalink structure. Props SergeyBiryukov. fixes #18883

File:
1 edited

Legend:

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

    r19018 r19322  
    12651265
    12661266            //get the 'tagname=$matches[i]'
    1267             $query = ( isset($queries) && is_array($queries) ) ? $queries[$num_toks - 1] : '';
     1267            $query = ( isset($queries) && is_array($queries) && !empty($num_toks) ) ? $queries[$num_toks - 1] : '';
    12681268
    12691269            //set up $ep_mask_specific which is used to match more specific URL types
Note: See TracChangeset for help on using the changeset viewer.