Changeset 28492
- Timestamp:
- 05/19/2014 12:19:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-importer.php
r25254 r28492 9 9 * @return void 10 10 */ 11 function __construct() {}11 public function __construct() {} 12 12 13 13 /** … … 17 17 * @return array 18 18 */ 19 function get_imported_posts( $importer_name, $bid ) {19 public function get_imported_posts( $importer_name, $bid ) { 20 20 global $wpdb; 21 21 … … 54 54 * @return int 55 55 */ 56 function count_imported_posts( $importer_name, $bid ) {56 public function count_imported_posts( $importer_name, $bid ) { 57 57 global $wpdb; 58 58 … … 80 80 * @return array 81 81 */ 82 function get_imported_comments( $bid ) {82 public function get_imported_comments( $bid ) { 83 83 global $wpdb; 84 84 … … 116 116 } 117 117 118 function set_blog( $blog_id ) {118 public function set_blog( $blog_id ) { 119 119 if ( is_numeric( $blog_id ) ) { 120 120 $blog_id = (int) $blog_id; … … 143 143 } 144 144 145 function set_user( $user_id ) {145 public function set_user( $user_id ) { 146 146 if ( is_numeric( $user_id ) ) { 147 147 $user_id = (int) $user_id; … … 165 165 * @return int 166 166 */ 167 function cmpr_strlen( $a, $b ) {167 public function cmpr_strlen( $a, $b ) { 168 168 return strlen( $b ) - strlen( $a ); 169 169 } … … 178 178 * @return array 179 179 */ 180 function get_page( $url, $username = '', $password = '', $head = false ) {180 public function get_page( $url, $username = '', $password = '', $head = false ) { 181 181 // Increase the timeout 182 182 add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) ); … … 200 200 * @return int 201 201 */ 202 function bump_request_timeout( $val ) {202 public function bump_request_timeout( $val ) { 203 203 return 60; 204 204 } … … 209 209 * @return bool 210 210 */ 211 function is_user_over_quota() {211 public function is_user_over_quota() { 212 212 if ( function_exists( 'upload_is_user_over_quota' ) ) { 213 213 if ( upload_is_user_over_quota( 1 ) ) { … … 226 226 * @return string 227 227 */ 228 function min_whitespace( $string ) {228 public function min_whitespace( $string ) { 229 229 return preg_replace( '|[\r\n\t ]+|', ' ', $string ); 230 230 } … … 235 235 * @return void 236 236 */ 237 function stop_the_insanity() {237 public function stop_the_insanity() { 238 238 global $wpdb, $wp_actions; 239 239 // Or define( 'WP_IMPORTING', true );
Note: See TracChangeset
for help on using the changeset viewer.