Changeset 8645

Show
Ignore:
Timestamp:
08/14/08 06:30:38 (3 months ago)
Author:
westi
Message:

phpdoc for wp-admin. See #7496 props santosj.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-header.php

    r8618 r8645  
    1919$ie6_no_scrollbar = true; 
    2020 
     21/** 
     22 * Append 'minwidth' to value. 
     23 * 
     24 * @param mixed $c 
     25 * @return string 
     26 */ 
    2127function add_minwidth($c) { 
    2228    return $c . 'minwidth '; 
  • trunk/wp-admin/import/blogger.php

    r7713 r8645  
    11<?php 
    2  
    3 define( 'MAX_RESULTS',        50 ); // How many records per GData query 
    4 define( 'MAX_EXECUTION_TIME', 20 ); // How many seconds to let the script run 
    5 define( 'STATUS_INTERVAL',     3 ); // How many seconds between status bar updates 
    6  
     2/** 
     3 * Blogger Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * How many records per GData query 
     11 * 
     12 * @package WordPress 
     13 * @subpackage Blogger_Import 
     14 * @var int 
     15 * @since unknown 
     16 */ 
     17define( 'MAX_RESULTS',        50 ); 
     18 
     19/** 
     20 * How many seconds to let the script run 
     21 * 
     22 * @package WordPress 
     23 * @subpackage Blogger_Import 
     24 * @var int 
     25 * @since unknown 
     26 */ 
     27define( 'MAX_EXECUTION_TIME', 20 ); 
     28 
     29/** 
     30 * How many seconds between status bar updates 
     31 * 
     32 * @package WordPress 
     33 * @subpackage Blogger_Import 
     34 * @var int 
     35 * @since unknown 
     36 */ 
     37define( 'STATUS_INTERVAL',     3 ); 
     38 
     39/** 
     40 * Blogger Importer class 
     41 * 
     42 * @since unknown 
     43 */ 
    744class Blogger_Import { 
    845 
  • trunk/wp-admin/import/blogware.php

    r7104 r8645  
    11<?php 
    2  
    3 /* By Shayne Sweeney - http://www.theshayne.com/ */ 
    4  
     2/** 
     3 * Blogware XML Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 * @author Shayne Sweeney 
     8 * @link http://www.theshayne.com/ 
     9 */ 
     10 
     11/** 
     12 * Blogware XML Importer class 
     13 * 
     14 * Extract posts from Blogware XML export file into your blog. 
     15 * 
     16 * @since unknown 
     17 */ 
    518class BW_Import { 
    619 
  • trunk/wp-admin/import/btt.php

    r7071 r8645  
    11<?php 
     2/** 
     3 * BunnyTags Plugin Tag Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
    28 
     9/** 
     10 * BunnyTags Plugin tag converter 
     11 * 
     12 * This will process the BunnyTags plugin tags and convert them to the WordPress 
     13 * 2.3 taxonomy. 
     14 * 
     15 * @since unknown 
     16 */ 
    317class BunnyTags_Import { 
    418 
  • trunk/wp-admin/import/dotclear.php

    r7645 r8645  
    11<?php 
    2 /* 
    3  * DotClear import plugin 
    4  * by Thomas Quinot - http://thomas.quinot.org/ 
     2/** 
     3 * DotClear Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 * @author Thomas Quinot 
     8 * @link http://thomas.quinot.org/ 
    59 */ 
    610 
     
    1115if(!function_exists('get_comment_count')) 
    1216{ 
     17    /** 
     18     * Get the comment count for posts. 
     19     * 
     20     * @package WordPress 
     21     * @subpackage Dotclear_Import 
     22     * 
     23     * @param int $post_ID Post ID 
     24     * @return int 
     25     */ 
    1326    function get_comment_count($post_ID) 
    1427    { 
     
    2033if(!function_exists('link_exists')) 
    2134{ 
     35    /** 
     36     * Check whether link already exists. 
     37     * 
     38     * @package WordPress 
     39     * @subpackage Dotclear_Import 
     40     * 
     41     * @param string $linkname 
     42     * @return int 
     43     */ 
    2244    function link_exists($linkname) 
    2345    { 
     
    4163// 
    4264 
     65/** 
     66 * @package WordPress 
     67 * @subpackage Dotclear_Import 
     68 * 
     69 * @param string $char 
     70 * @return string 
     71 */ 
    4372function valid_1byte($char) { 
    4473    if(!is_int($char)) return false; 
     
    4675} 
    4776 
     77/** 
     78 * @package WordPress 
     79 * @subpackage Dotclear_Import 
     80 * 
     81 * @param string $char 
     82 * @return string 
     83 */ 
    4884function valid_2byte($char) { 
    4985    if(!is_int($char)) return false; 
     
    5187} 
    5288 
     89/** 
     90 * @package WordPress 
     91 * @subpackage Dotclear_Import 
     92 * 
     93 * @param string $char 
     94 * @return string 
     95 */ 
    5396function valid_3byte($char) { 
    5497    if(!is_int($char)) return false; 
     
    5699} 
    57100 
     101/** 
     102 * @package WordPress 
     103 * @subpackage Dotclear_Import 
     104 * 
     105 * @param string $char 
     106 * @return string 
     107 */ 
    58108function valid_4byte($char) { 
    59109    if(!is_int($char)) return false; 
     
    61111} 
    62112 
     113/** 
     114 * @package WordPress 
     115 * @subpackage Dotclear_Import 
     116 * 
     117 * @param string $char 
     118 * @return string 
     119 */ 
    63120function valid_nextbyte($char) { 
    64121    if(!is_int($char)) return false; 
     
    66123} 
    67124 
     125/** 
     126 * @package WordPress 
     127 * @subpackage Dotclear_Import 
     128 * 
     129 * @param string $string 
     130 * @return string 
     131 */ 
    68132function valid_utf8($string) { 
    69133    $len = strlen($string); 
     
    93157} 
    94158 
     159/** 
     160 * @package WordPress 
     161 * @subpackage Dotclear_Import 
     162 * 
     163 * @param string $s 
     164 * @return string 
     165 */ 
    95166function csc ($s) { 
    96167    if (valid_utf8 ($s)) { 
     
    101172} 
    102173 
     174/** 
     175 * @package WordPress 
     176 * @subpackage Dotclear_Import 
     177 * 
     178 * @param string $s 
     179 * @return string 
     180 */ 
    103181function textconv ($s) { 
    104182    return csc (preg_replace ('|(?<!<br />)\s*\n|', ' ', $s)); 
     
    106184 
    107185/** 
    108     The Main Importer Class 
    109 **/ 
     186 * Dotclear Importer class 
     187 * 
     188 * Will process the WordPress eXtended RSS files that you upload from the export 
     189 * file. 
     190 * 
     191 * @package WordPress 
     192 * @subpackage Importer 
     193 * 
     194 * @since unknown 
     195 */ 
    110196class Dotclear_Import { 
    111197 
     
    743829 
    744830$dc_import = new Dotclear_Import(); 
     831 
    745832register_importer('dotclear', __('DotClear'), __('Import categories, users, posts, comments, and links from a DotClear blog.'), array ($dc_import, 'dispatch')); 
     833 
    746834?> 
  • trunk/wp-admin/import/greymatter.php

    r7883 r8645  
    11<?php 
    2  
     2/** 
     3 * GreyMatter Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * GreyMatter Importer class 
     11 * 
     12 * Basic GreyMatter to WordPress importer, will import posts, comments, and 
     13 * posts karma. 
     14 * 
     15 * @since unknown 
     16 */ 
    317class GM_Import { 
    418 
  • trunk/wp-admin/import/jkw.php

    r7071 r8645  
    11<?php 
     2/** 
     3 * Jeromes Keyword Plugin Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
    28 
     9/** 
     10 * Jeromes Keyword Plugin Importer class 
     11 * 
     12 * Will convert Jeromes Keyword Plugin tags to WordPress taxonomy tags. 
     13 * 
     14 * @since 2.3 
     15 */ 
    316class JeromesKeyword_Import { 
    417 
  • trunk/wp-admin/import/livejournal.php

    r7104 r8645  
    11<?php 
     2/** 
     3 * LiveJournal Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
    28 
     9/** 
     10 * LiveJournal Importer class 
     11 * 
     12 * Imports your LiveJournal XML exported file into WordPress. 
     13 * 
     14 * @since unknown 
     15 */ 
    316class LJ_Import { 
    417 
  • trunk/wp-admin/import/mt.php

    r8600 r8645  
    11<?php 
    2  
     2/** 
     3 * Movable Type and Typepad Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * Moveable Type and Typepad Importer class 
     11 * 
     12 * Upload your exported Movable Type or Typepad entries into WordPress. 
     13 * 
     14 * @since unknown 
     15 */ 
    316class MT_Import { 
    417 
  • trunk/wp-admin/import/rss.php

    r7072 r8645  
    11<?php 
     2/** 
     3 * RSS Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
    28 
     9/** 
     10 * RSS Importer 
     11 * 
     12 * Will process a RSS feed for importing posts into WordPress. This is a very 
     13 * limited importer and should only be used as the last resort, when no other 
     14 * importer is available. 
     15 * 
     16 * @since unknown 
     17 */ 
    318class RSS_Import { 
    419 
  • trunk/wp-admin/import/stp.php

    r7125 r8645  
    11<?php 
     2/** 
     3 * Simple Tags Plugin Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * Simple Tags Plugin Tags converter class. 
     11 * 
     12 * Will convert Simple Tags Plugin tags over to the WordPress 2.3 taxonomy. 
     13 * 
     14 * @since unknown 
     15 */ 
    216class STP_Import { 
    317    function header()  { 
  • trunk/wp-admin/import/textpattern.php

    r7645 r8645  
    11<?php 
    22/** 
    3     Add These Functions to make our lives easier 
    4 **/ 
     3 * TextPattern Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
    58 
    69if(!function_exists('get_comment_count')) 
    710{ 
     11    /** 
     12     * Get the comment count for posts. 
     13     * 
     14     * @package WordPress 
     15     * @subpackage Textpattern_Import 
     16     * 
     17     * @param int $post_ID Post ID 
     18     * @return int 
     19     */ 
    820    function get_comment_count($post_ID) 
    921    { 
     
    1527if(!function_exists('link_exists')) 
    1628{ 
     29    /** 
     30     * Check whether link already exists. 
     31     * 
     32     * @package WordPress 
     33     * @subpackage Textpattern_Import 
     34     * 
     35     * @param string $linkname 
     36     * @return int 
     37     */ 
    1738    function link_exists($linkname) 
    1839    { 
     
    2344 
    2445/** 
    25     The Main Importer Class 
    26 **/ 
     46 * TextPattern Importer Class 
     47 * 
     48 * @since unknown 
     49 */ 
    2750class Textpattern_Import { 
    2851 
     
    671694 
    672695$txp_import = new Textpattern_Import(); 
     696 
    673697register_importer('textpattern', __('Textpattern'), __('Import categories, users, posts, comments, and links from a Textpattern blog.'), array ($txp_import, 'dispatch')); 
     698 
    674699?> 
  • trunk/wp-admin/import/utw.php

    r7071 r8645  
    11<?php 
    2  
     2/** 
     3 * The Ultimate Tag Warrior Importer. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * Ultimate Tag Warrior Converter to 2.3 taxonomy. 
     11 * 
     12 * This converts the Ultimate Tag Warrior tags to the 2.3 WordPress taxonomy. 
     13 * 
     14 * @since 2.3.0 
     15 */ 
    316class UTW_Import { 
    417 
  • trunk/wp-admin/import/wordpress.php

    r8600 r8645  
    11<?php 
    2  
     2/** 
     3 * WordPress Importer 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * WordPress Importer 
     11 * 
     12 * Will process the WordPress eXtended RSS files that you upload from the export 
     13 * file. 
     14 * 
     15 * @since unknown 
     16 */ 
    317class WP_Import { 
    418 
     
    747761} 
    748762 
     763/** 
     764 * Register WordPress Importer 
     765 * 
     766 * @since unknown 
     767 * @var WP_Import 
     768 * @name $wp_import 
     769 */ 
    749770$wp_import = new WP_Import(); 
    750771 
  • trunk/wp-admin/import/wp-cat2tag.php

    r8600 r8645  
    11<?php 
    2  
     2/** 
     3 * WordPress Categories to Tags Converter. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Importer 
     7 */ 
     8 
     9/** 
     10 * WordPress categories to tags converter class. 
     11 * 
     12 * Will convert WordPress categories to tags, removing the category after the 
     13 * process is complete and updating all posts to switch to the tag. 
     14 * 
     15 * @since unknown 
     16 */ 
    317class WP_Categories_to_Tags { 
    418    var $categories_to_convert = array(); 
  • trunk/wp-admin/includes/class-ftp-pure.php

    r7257 r8645  
    44 * 
    55 * @package PemFTP 
     6 * @since 2.5 
     7 * 
     8 * @version 1.0 
     9 * @copyright Alexey Dotsenko 
     10 * @author Alexey Dotsenko 
     11 * @link http://www.phpclasses.org/browse/package/1743.html Site 
     12 * @license LGPL License http://www.opensource.org/licenses/lgpl-license.html 
     13 */ 
     14 
     15/** 
     16 * FTP implementation using fsockopen to connect. 
     17 * 
     18 * @package PemFTP 
     19 * @subpackage Pure 
    620 * @since 2.5 
    721 * 
     
    173187    } 
    174188} 
     189 
    175190?> 
  • trunk/wp-admin/includes/class-ftp-sockets.php

    r7257 r8645  
    44 * 
    55 * @package PemFTP 
     6 * @since 2.5 
     7 * 
     8 * @version 1.0 
     9 * @copyright Alexey Dotsenko 
     10 * @author Alexey Dotsenko 
     11 * @link http://www.phpclasses.org/browse/package/1743.html Site 
     12 * @license LGPL License http://www.opensource.org/licenses/lgpl-license.html 
     13 */ 
     14 
     15/** 
     16 * Socket Based FTP implementation 
     17 * 
     18 * @package PemFTP 
     19 * @subpackage Socket 
    620 * @since 2.5 
    721 * 
  • trunk/wp-admin/includes/class-ftp.php

    r7327 r8645  
    1212 * @license LGPL License http://www.opensource.org/licenses/lgpl-license.html 
    1313 */ 
     14 
     15/** 
     16 * Defines the newline characters, if not defined already. 
     17 * 
     18 * This can be redefined. 
     19 * 
     20 * @since 2.5 
     21 * @var string 
     22 */ 
    1423if(!defined('CRLF')) define('CRLF',"\r\n"); 
     24 
     25/** 
     26 * Sets whatever to autodetect ASCII mode. 
     27 * 
     28 * This can be redefined. 
     29 * 
     30 * @since 2.5 
     31 * @var int 
     32 */ 
    1533if(!defined("FTP_AUTOASCII")) define("FTP_AUTOASCII", -1); 
     34 
     35/** 
     36 * 
     37 * This can be redefined. 
     38 * @since 2.5 
     39 * @var int 
     40 */ 
    1641if(!defined("FTP_BINARY")) define("FTP_BINARY", 1); 
     42 
     43/** 
     44 * 
     45 * This can be redefined. 
     46 * @since 2.5 
     47 * @var int 
     48 */ 
    1749if(!defined("FTP_ASCII")) define("FTP_ASCII", 0); 
    18 if(!defined('FTP_FORCE')) define('FTP_FORCE', TRUE); 
     50 
     51/** 
     52 * Whether to force FTP. 
     53 * 
     54 * This can be redefined. 
     55 * 
     56 * @since 2.5 
     57 * @var bool 
     58 */ 
     59if(!defined('FTP_FORCE')) define('FTP_FORCE', true); 
     60 
     61/** 
     62 * @since 2.5 
     63 * @var string 
     64 */ 
    1965define('FTP_OS_Unix','u'); 
     66 
     67/** 
     68 * @since 2.5 
     69 * @var string 
     70 */ 
    2071define('FTP_OS_Windows','w'); 
     72 
     73/** 
     74 * @since 2.5 
     75 * @var string 
     76 */ 
    2177define('FTP_OS_Mac','m'); 
    2278 
     79/** 
     80 * PemFTP base class 
     81 * 
     82 */ 
    2383class ftp_base { 
    2484    /* Public variables */ 
     
    839899    if(!@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE; 
    840900} 
     901 
    841902require_once "class-ftp-".($mod_sockets?"sockets":"pure").".php"; 
    842903?> 
  • trunk/wp-admin/includes/class-pclzip.php

    r7314 r8645  
    11<?php 
    2 // -------------------------------------------------------------------------------- 
    3 // PhpConcept Library - Zip Module 2.5 
    4 // -------------------------------------------------------------------------------- 
    5 // License GNU/LGPL - Vincent Blavet - March 2006 
    6 // http://www.phpconcept.net 
    7 // -------------------------------------------------------------------------------- 
    8 // 
    9 // Presentation : 
    10 //   PclZip is a PHP library that manage ZIP archives. 
    11 //   So far tests show that archives generated by PclZip are readable by 
    12 //   WinZip application and other tools. 
    13 // 
    14 // Description : 
    15 //   See readme.txt and http://www.phpconcept.net 
    16 // 
    17 // Warning : 
    18 //   This library and the associated files are non commercial, non professional 
    19 //   work. 
    20 //   It should not have unexpected results. However if any damage is caused by 
    21 //   this software the author can not be responsible. 
    22 //   The use of this software is at the risk of the user. 
    23 // 
    24 // -------------------------------------------------------------------------------- 
    25 // $Id: pclzip.lib.php,v 1.44 2006/03/08 21:23:59 vblavet Exp $ 
    26 // -------------------------------------------------------------------------------- 
    27  
    28   // ----- Constants 
    29   define( 'PCLZIP_READ_BLOCK_SIZE', 2048 ); 
    30  
    31   // ----- File list separator 
    32   // In version 1.x of PclZip, the separator for file list is a space 
    33   // (which is not a very smart choice, specifically for windows paths !). 
    34   // A better separator should be a comma (,). This constant gives you the 
    35   // abilty to change that. 
    36   // However notice that changing this value, may have impact on existing 
    37   // scripts, using space separated filenames. 
    38   // Recommanded values for compatibility with older versions : 
    39   //define( 'PCLZIP_SEPARATOR', ' ' ); 
    40   // Recommanded values for smart separation of filenames. 
    41   define( 'PCLZIP_SEPARATOR', ',' ); 
    42  
    43   // ----- Error configuration 
    44   // 0 : PclZip Class integrated error handling 
    45   // 1 : PclError external library error handling. By enabling this 
    46   //     you must ensure that you have included PclError library. 
    47   // [2,...] : reserved for futur use 
    48   define( 'PCLZIP_ERROR_EXTERNAL', 0 ); 
     2/** 
     3 * PhpConcept Library - Zip Module 2.5 
     4 * 
     5 * Presentation : 
     6 *   PclZip is a PHP library that manage ZIP archives. 
     7 *   So far tests show that archives generated by PclZip are readable by 
     8 *   WinZip application and other tools. 
     9 * 
     10 * Warning : 
     11 *   This library and the associated files are non commercial, non professional 
     12 *   work. 
     13 *   It should not have unexpected results. However if any damage is caused by 
     14 *   this software the author can not be responsible. 
     15 *   The use of this software is at the risk of the user. 
     16 * 
     17 * @package External 
     18 * @subpackage PclZip 
     19 * 
     20 * @license License GNU/LGPL 
     21 * @copyright March 2006 Vincent Blavet 
     22 * @author Vincent Blavet 
     23 * @link http://www.phpconcept.net 
     24 * @version $Id: pclzip.lib.php,v 1.44 2006/03/08 21:23:59 vblavet Exp $ 
     25 */ 
     26 
     27/** 
     28 * The read block size for reading zip files. 
     29 * 
     30 * @since 2.5 
     31 */ 
     32define( 'PCLZIP_READ_BLOCK_SIZE', 2048 ); 
     33 
     34/** 
     35 * File list separator 
     36 * 
     37 * In version 1.x of PclZip, the separator for file list is a space(which is not 
     38 * a very smart choice, specifically for windows paths !). A better separator 
     39 * should be a comma (,). This constant gives you the abilty to change that. 
     40 * 
     41 * However notice that changing this value, may have impact on existing scripts, 
     42 * using space separated filenames. Recommanded values for compatibility with 
     43 * older versions : 
     44 * <code>define( 'PCLZIP_SEPARATOR', ' ' );</code> 
     45 * Recommanded values for smart separation of filenames. 
     46 */ 
     47define( 'PCLZIP_SEPARATOR', ',' ); 
     48 
     49/** 
     50 * Error configuration 
     51 * 
     52 * 0 : PclZip Class integrated error handling 
     53 * 1 : PclError external library error handling. By enabling this you must 
     54 *     ensure that you have included PclError library. 
     55 * [2,...] : reserved for future use 
     56 */ 
     57define( 'PCLZIP_ERROR_EXTERNAL', 0 ); 
    4958 
    5059  // ----- Optional static temporary directory 
     
    138147  define( 'PCLZIP_CB_PRE_ADD', 78003 ); 
    139148  define( 'PCLZIP_CB_POST_ADD', 78004 ); 
    140   /* For futur use 
     149  /* For future use 
    141150  define( 'PCLZIP_CB_PRE_LIST', 78005 ); 
    142151  define( 'PCLZIP_CB_POST_LIST', 78006 ); 
  • trunk/wp-admin/includes/class-wp-filesystem-base.php

    r8600 r8645  
    11<?php 
    2 class WP_Filesystem_Base{ 
     2/** 
     3 * Base WordPress Filesystem. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Filesystem 
     7 */ 
     8 
     9/** 
     10 * Base WordPress Filesystem class for which Filesystem implementations extend 
     11 * 
     12 * @since 2.5 
     13 */ 
     14class WP_Filesystem_Base { 
    315    var $verbose = false; 
    416    var $cache = array(); 
     
    156168    } 
    157169} 
     170 
    158171?> 
  • trunk/wp-admin/includes/class-wp-filesystem-direct.php

    r8018 r8645  
    11<?php 
    2  
     2/** 
     3 * WordPress Direct Filesystem. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Filesystem 
     7 */ 
     8 
     9/** 
     10 * WordPress Filesystem Class for direct PHP file and folder manipulation. 
     11 * 
     12 * @since 2.5 
     13 * @package WordPress 
     14 * @subpackage Filesystem 
     15 * @uses WP_Filesystem_Base Extends class 
     16 */ 
    317class WP_Filesystem_Direct  extends WP_Filesystem_Base { 
    418    var $permission = null; 
  • trunk/wp-admin/includes/class-wp-filesystem-ftpext.php

    r8600 r8645  
    11<?php 
    2 class WP_Filesystem_FTPext extends WP_Filesystem_Base{ 
     2/** 
     3 * WordPress FTP Filesystem. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Filesystem 
     7 */ 
     8 
     9/** 
     10 * WordPress Filesystem Class for implementing FTP. 
     11 * 
     12 * @since 2.5 
     13 * @package WordPress 
     14 * @subpackage Filesystem 
     15 * @uses WP_Filesystem_Base Extends class 
     16 */ 
     17class WP_Filesystem_FTPext extends WP_Filesystem_Base { 
    318    var $link; 
    419    var $timeout = 5; 
  • trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php

    r8600 r8645  
    11<?php 
     2/** 
     3 * WordPress FTP Sockets Filesystem. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Filesystem 
     7 */ 
     8 
     9/** 
     10 * WordPress Filesystem Class for implementing FTP Sockets. 
     11 * 
     12 * @since 2.5 
     13 * @package WordPress 
     14 * @subpackage Filesystem 
     15 * @uses WP_Filesystem_Base Extends class 
     16 */ 
    217class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { 
    318    var $ftp = false; 
     
    2338                            ); 
    2439 
    25     function WP_Filesystem_ftpsockets($opt='') { 
     40    function WP_Filesystem_ftpsockets($opt = '') { 
    2641        $this->method = 'ftpsockets'; 
    2742        $this->errors = new WP_Error(); 
     
    87102    } 
    88103 
    89     function get_contents($file, $type = '', $resumepos = 0)
     104    function get_contents($file, $type = '', $resumepos = 0)
    90105        if( ! $this->exists($file) ) 
    91106            return false; 
     
    113128    } 
    114129 
    115     function get_contents_array($file)
     130    function get_contents_array($file)
    116131        return explode("\n", $this->get_contents($file) ); 
    117132    } 
     
    152167    } 
    153168 
    154     function chmod($file, $mode = false, $recursive = false )
     169    function chmod($file, $mode = false, $recursive = false )
    155170        if( ! $mode ) 
    156171            $mode = $this->permission; 
     
    252267    } 
    253268 
    254     function touch($file, $time = 0, $atime = 0 )
     269    function touch($file, $time = 0, $atime = 0 )
    255270        return false; 
    256271    } 
     
    312327    } 
    313328 
    314     function __destruct()
     329    function __destruct()
    315330        $this->ftp->quit(); 
    316331    } 
    317332} 
     333 
    318334?> 
  • trunk/wp-admin/includes/comment.php

    r7775 r8645  
    11<?php 
    22 
     3/** 
     4 * {@internal Missing Short Description}} 
     5 * 
     6 * @since unknown 
     7 * @uses $wpdb 
     8 * 
     9 * @param string $comment_author 
     10 * @param string $comment_date 
     11 * @return mixed Comment ID on success. 
     12 */ 
    313function comment_exists($comment_author, $comment_date) { 
    414    global $wpdb; 
     
    818} 
    919 
     20/** 
     21 *  
     22 * 
     23 */ 
    1024function edit_comment() { 
    1125 
  • trunk/wp-admin/includes/update-core.php

    r8600 r8645  
    11<?php 
    2  
     2/** 
     3 * WordPress core upgrade functionality. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Administration 
     7 * @since 2.7 
     8 */ 
     9 
     10/** 
     11 * Stores files to be deleted. 
     12 * 
     13 * @since 2.7 
     14 * @global array $_old_files 
     15 * @var array 
     16 * @name $_old_files 
     17 */ 
    318global $_old_files; 
    419 
     
    118133); 
    119134 
     135/** 
     136 * Upgrade the core of WordPress. 
     137 * 
     138 * This will create a .maintenance file at the base of the WordPress directory 
     139 * to ensure that people can not access the web site, when the files are being 
     140 * copied to their locations. 
     141 * 
     142 * The files in the {@link $_old_files} list will be removed and the new files 
     143 * copied from the zip file after the database is upgraded. 
     144 * 
     145 * The steps for the upgrader for after the new release is downloaded and 
     146 * unzipped is: 
     147 *   1. Test unzipped location for select files to ensure that unzipped worked. 
     148 *   2. Create the .maintenance file in current WordPress base. 
     149 *   3. Copy new WordPress directory over old WordPress files. 
     150 *   4. Upgrade WordPress to new version. 
     151 *   5. Delete new WordPress directory path. 
     152 *   6. Delete .maintenance file. 
     153 *   7. Remove old files. 
     154 *   8. Delete 'update_core' option. 
     155 * 
     156 * There are several areas of failure. For instance if PHP times out before step 
     157 * 6, then you will not be able to access any portion of your site. Also, since 
     158 * the upgrade will not continue where it left off, you will not be able to 
     159 * automatically remove old files and remove the 'update_core' option. This 
     160 * isn't that bad. 
     161 * 
     162 * If the copy of the new WordPress over the old fails, then the worse is that 
     163 * the new WordPress directory will remain. 
     164 * 
     165 * If it is assumed that every file will be copied over, including plugins and 
     166 * themes, then if you edit the default theme, you should rename it, so that 
     167 * your changes remain. 
     168 * 
     169 * @param string $from New release unzipped path. 
     170 * @param string $to Path to old WordPress installation. 
     171 * @return WP_Error|null WP_Error on failure, null on success. 
     172 */ 
    120173function update_core($from, $to) { 
    121174    global $wp_filesystem, $_old_files; 
  • trunk/wp-admin/install-helper.php

    r8610 r8645  
    11<?php 
     2/** 
     3 * Plugins may load this file to gain access to special helper functions for 
     4 * plugin instal