Changeset 11499 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 05/31/2009 09:08:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r11450 r11499 721 721 } 722 722 function __construct($args = array()) { 723 $defaults = array( 'url' => '', 'nonce' => '', 'title' => '' );723 $defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false ); 724 724 $this->options = wp_parse_args($args, $defaults); 725 725 } … … 735 735 function request_filesystem_credentials($error = false) { 736 736 $url = $this->options['url']; 737 $context = $this->options['context']; 737 738 if ( !empty($this->options['nonce']) ) 738 739 $url = wp_nonce_url($url, $this->options['nonce']); 739 return request_filesystem_credentials($url, '', $error ); //Possible to bring inline, Leaving as0is for now.740 return request_filesystem_credentials($url, '', $error, $context); //Possible to bring inline, Leaving as is for now. 740 741 } 741 742
Note: See TracChangeset
for help on using the changeset viewer.