WordPress.org

Plugin Directory

Changeset 1629450


Ignore:
Timestamp:
04/04/17 17:36:40 (7 weeks ago)
Author:
mbis
Message:

Small hotfix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • permalink-manager/trunk/permalink-manager.php

    r1627906 r1629450  
    188188            // Check again in case someone used post/tax IDs instead of slugs 
    189189            $deep_detect_enabled = apply_filters('permalink_manager_deep_uri_detect', false); 
    190             if($deep_detect_enabled && (empty($item_id)) && $endpoint == 'page') { 
     190            if($deep_detect_enabled && (empty($item_id)) && isset($old_query['page'])) { 
     191                $item_id = array_search("{$uri}/{$endpoint_value}",  $permalink_manager_uris); 
    191192                $endpoint_value = $endpoint = ""; 
    192                 $item_id = array_search("{$uri}/{$endpoint_value}",  $permalink_manager_uris); 
    193193            } 
    194194 
Note: See TracChangeset for help on using the changeset viewer.