WordPress.org

Make WordPress Core

Ticket #7157: wp-app.php.3.diff

File wp-app.php.3.diff, 647 bytes (added by AlanJCastonguay, 6 years ago)

not_allowed() requires an array

  • wp-app.php

     
    197197 
    198198                // check to see if AtomPub is enabled 
    199199                if( !get_option( 'enable_app' ) ) 
    200                         $this->not_allowed( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); 
     200                        $this->not_allowed( array ( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) ) ); 
    201201 
    202202                // dispatch 
    203203                foreach($this->selectors as $regex => $funcs) {