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

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

not_allowed() requires an array

Line 
1Index: wp-app.php
2===================================================================
3--- wp-app.php  (revision 8259)
4+++ wp-app.php  (working copy)
5@@ -197,7 +197,7 @@
6 
7                // check to see if AtomPub is enabled
8                if( !get_option( 'enable_app' ) )
9-                       $this->not_allowed( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) );
10+                       $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') ) ) );
11 
12                // dispatch
13                foreach($this->selectors as $regex => $funcs) {