Ticket #33725: 33725-2.diff
File 33725-2.diff, 4.7 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-filesystem-direct.php
19 19 /** 20 20 * constructor 21 21 * 22 * @access public 23 * 22 24 * @param mixed $arg ignored argument 23 25 */ 24 26 public function __construct($arg) { … … 29 31 /** 30 32 * Reads entire file into a string 31 33 * 34 * @access public 35 * 32 36 * @param string $file Name of the file to read. 33 37 * @return string|bool The function returns the read data or false on failure. 34 38 */ … … 39 43 /** 40 44 * Reads entire file into an array 41 45 * 46 * @access public 47 * 42 48 * @param string $file Path to the file. 43 49 * @return array|bool the file contents in an array or false on failure. 44 50 */ … … 49 55 /** 50 56 * Write a string to a file 51 57 * 58 * @access public 59 * 52 60 * @param string $file Remote path to the file where to write the data. 53 61 * @param string $contents The data to write. 54 62 * @param int $mode Optional. The file permissions as octal number, usually 0644. … … 81 89 /** 82 90 * Gets the current working directory 83 91 * 92 * @access public 93 * 84 94 * @return string|bool the current working directory on success, or false on failure. 85 95 */ 86 96 public function cwd() { … … 90 100 /** 91 101 * Change directory 92 102 * 103 * @access public 104 * 93 105 * @param string $dir The new current directory. 94 106 * @return bool Returns true on success or false on failure. 95 107 */ … … 100 112 /** 101 113 * Changes file group 102 114 * 115 * @access public 116 * 103 117 * @param string $file Path to the file. 104 118 * @param mixed $group A group name or number. 105 119 * @param bool $recursive Optional. If set True changes file group recursively. Default false. … … 124 138 /** 125 139 * Changes filesystem permissions 126 140 * 141 * @access public 142 * 127 143 * @param string $file Path to the file. 128 144 * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 129 145 * 0755 for dirs. Default false. … … 154 170 /** 155 171 * Changes file owner 156 172 * 173 * @access public 174 * 157 175 * @param string $file Path to the file. 158 176 * @param mixed $owner A user name or number. 159 177 * @param bool $recursive Optional. If set True changes file owner recursively. … … 178 196 /** 179 197 * Gets file owner 180 198 * 199 * @access public 200 * 181 201 * @param string $file Path to the file. 182 202 * @return string|bool Username of the user or false on error. 183 203 */ … … 196 216 * 197 217 * FIXME does not handle errors in fileperms() 198 218 * 219 * @access public 220 * 199 221 * @param string $file Path to the file. 200 222 * @return string Mode of the file (last 3 digits). 201 223 */ … … 204 226 } 205 227 206 228 /** 229 * @access public 230 * 207 231 * @param string $file 208 232 * @return string|false 209 233 */ … … 218 242 } 219 243 220 244 /** 245 * @access public 246 * 221 247 * @param string $source 222 248 * @param string $destination 223 249 * @param bool $overwrite … … 235 261 } 236 262 237 263 /** 264 * @access public 265 * 238 266 * @param string $source 239 267 * @param string $destination 240 268 * @param bool $overwrite … … 257 285 } 258 286 259 287 /** 288 * @access public 289 * 260 290 * @param string $file 261 291 * @param bool $recursive 262 292 * @param string $type … … 290 320 return $retval; 291 321 } 292 322 /** 323 * @access public 324 * 293 325 * @param string $file 294 326 * @return bool 295 327 */ … … 297 329 return @file_exists($file); 298 330 } 299 331 /** 332 * @access public 333 * 300 334 * @param string $file 301 335 * @return bool 302 336 */ … … 304 338 return @is_file($file); 305 339 } 306 340 /** 341 * @access public 342 * 307 343 * @param string $path 308 344 * @return bool 309 345 */ … … 312 348 } 313 349 314 350 /** 351 * @access public 352 * 315 353 * @param string $file 316 354 * @return bool 317 355 */ … … 320 358 } 321 359 322 360 /** 361 * @access public 362 * 323 363 * @param string $file 324 364 * @return bool 325 365 */ … … 328 368 } 329 369 330 370 /** 371 * @access public 372 * 331 373 * @param string $file 332 374 * @return int 333 375 */ … … 336 378 } 337 379 338 380 /** 381 * @access public 382 * 339 383 * @param string $file 340 384 * @return int 341 385 */ … … 344 388 } 345 389 346 390 /** 391 * @access public 392 * 347 393 * @param string $file 348 394 * @return int 349 395 */ … … 352 398 } 353 399 354 400 /** 401 * @access public 402 * 355 403 * @param string $file 356 404 * @param int $time 357 405 * @param int $atime … … 366 414 } 367 415 368 416 /** 417 * @access public 418 * 369 419 * @param string $path 370 420 * @param mixed $chmod 371 421 * @param mixed $chown … … 392 442 } 393 443 394 444 /** 445 * @access public 446 * 395 447 * @param string $path 396 448 * @param bool $recursive 397 449 * @return bool … … 401 453 } 402 454 403 455 /** 456 * @access public 457 * 404 458 * @param string $path 405 459 * @param bool $include_hidden 406 460 * @param bool $recursive