WordPress.org

Plugin Directory

Changeset 567868


Ignore:
Timestamp:
07/05/12 15:50:51 (22 months ago)
Author:
jbrinley
Message:

typo when setting access callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-router/trunk/WP_Route.class.php

    r567867 r567868  
    4242        } 
    4343         
    44         if ( $this->access_arguments && $properties['access_callback'] ) { 
     44        if ( $this->access_arguments && !$properties['access_callback'] ) { 
    4545            $this->set('access_callback', 'current_user_can'); 
    4646        } 
Note: See TracChangeset for help on using the changeset viewer.