Ticket #30591: 30591.diff
File 30591.diff, 12.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-filesystem-direct.php
49 49 /** 50 50 * Write a string to a file 51 51 * 52 * @param string $file Remote path to the file where to write the data.52 * @param string $file Remote path to the file where to write the data. 53 53 * @param string $contents The data to write. 54 * @param int $mode (optional)The file permissions as octal number, usually 0644.54 * @param int $mode Optional. The file permissions as octal number, usually 0644. 55 55 * @return bool False upon failure. 56 56 */ 57 57 public function put_contents( $file, $contents, $mode = false ) { … … 99 99 /** 100 100 * Changes file group 101 101 * 102 * @param string $file Path to the file.103 * @param mixed $groupA group name or number.104 * @param bool $recursive (optional) If set True changes file group recursively. Defaults to False.102 * @param string $file Path to the file. 103 * @param mixed $group A group name or number. 104 * @param bool $recursive Optional. If set True changes file group recursively. Default false. 105 105 * @return bool Returns true on success or false on failure. 106 106 */ 107 107 public function chgrp($file, $group, $recursive = false) { … … 123 123 /** 124 124 * Changes filesystem permissions 125 125 * 126 * @param string $file Path to the file.127 * @param int $mode (optional)The permissions as octal number, usually 0644 for files, 0755 for dirs.128 * @param bool $recursive (optional) If set True changes file group recursively. Defaults to False.126 * @param string $file Path to the file. 127 * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs. 128 * @param bool $recursive Optional. If set True changes file group recursively. Default false. 129 129 * @return bool Returns true on success or false on failure. 130 130 */ 131 131 public function chmod($file, $mode = false, $recursive = false) { … … 152 152 /** 153 153 * Changes file owner 154 154 * 155 * @param string $file Path to the file.156 * @param mixed $ownerA user name or number.157 * @param bool $recursive (optional) If set True changes file owner recursively. Defaults to False.155 * @param string $file Path to the file. 156 * @param mixed $owner A user name or number. 157 * @param bool $recursive Optional. If set True changes file owner recursively. Default false. 158 158 * @return bool Returns true on success or false on failure. 159 159 */ 160 160 public function chown($file, $owner, $recursive = false) { -
src/wp-admin/includes/file.php
97 97 * 98 98 * @since 2.6.0 99 99 * 100 * @param string $folder Full path to folder 101 * @param int $levels (optional) Levels of folders to follow, Default:100 (PHP Loop limit).100 * @param string $folder Full path to folder. 101 * @param int $levels Optional. Levels of folders to follow, Default 100 (PHP Loop limit). 102 102 * @return bool|array False on failure, Else array of files 103 103 */ 104 104 function list_files( $folder = '', $levels = 100 ) { … … 137 137 * 138 138 * @since 2.6.0 139 139 * 140 * @param string $filename (optional) Filename to base the Unique file off141 * @param string $dir (optional) Directory to store the file in140 * @param string $filename Optional. Filename to base the Unique file off. Default ''. 141 * @param string $dir Optional. Directory to store the file in. Default ''. 142 142 * @return string a writable filename 143 143 */ 144 144 function wp_tempnam($filename = '', $dir = '') { … … 809 809 * 810 810 * @since 2.5.0 811 811 * 812 * @param array $args (optional) Connection args, These are passed directly to the WP_Filesystem_*() classes.813 * @param string $context (optional) Context for get_filesystem_method(), See function declaration for more information.814 * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.812 * @param array $args Optional. Connection args, These are passed directly to the WP_Filesystem_*() classes. Default false. 813 * @param string $context Optional. Context for get_filesystem_method(), See function declaration for more information. Default false. 814 * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. 815 815 * @return null|boolean false on failure, true on success 816 816 */ 817 817 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { -
src/wp-admin/includes/post.php
1120 1120 * 1121 1121 * @since 2.5.0 1122 1122 * 1123 * @param int eger$id Post ID or post object.1124 * @param string $title (optional) Title1125 * @param string $name (optional) Name1123 * @param int $id Post ID or post object. 1124 * @param string $title Optional. Title. 1125 * @param string $name Optional. Name. 1126 1126 * @return array With two entries of type string 1127 1127 */ 1128 1128 function get_sample_permalink($id, $title = null, $name = null) { … … 1185 1185 * 1186 1186 * @since 2.5.0 1187 1187 * 1188 * @param int eger $idPost ID or post object.1188 * @param int $id Post ID or post object. 1189 1189 * @param string $new_title Optional. New title. 1190 * @param string $new_slug Optional. New slug.1190 * @param string $new_slug Optional. New slug. 1191 1191 * @return string The HTML of the sample permalink slug editor. 1192 1192 */ 1193 1193 function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { -
src/wp-includes/class.wp-scripts.php
51 51 * 52 52 * Prints the scripts passed to it or the print queue. Also prints all necessary dependencies. 53 53 * 54 * @param mixed $handles (optional)Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts.55 * @param int $group (optional)If scripts were queued in groups prints this group number.54 * @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts. 55 * @param int $group Optional. If scripts were queued in groups prints this group number. 56 56 * @return array Scripts that have been printed 57 57 */ 58 58 public function print_scripts( $handles = false, $group = false ) { -
src/wp-includes/deprecated.php
1214 1214 * 1215 1215 * @param string $username The user's username. 1216 1216 * @param string $password The user's password. 1217 * @param string $email The user's email (optional).1217 * @param string $email Optional. The user's email. 1218 1218 * @return int The new user's ID. 1219 1219 */ 1220 1220 function create_user($username, $password, $email) { -
src/wp-includes/link-template.php
2592 2592 * 2593 2593 * @since 3.0.0 2594 2594 * 2595 * @param string $path (optional)Path relative to the home url.2596 * @param string $scheme (optional)Scheme to give the home url context. Currently 'http', 'https', or 'relative'.2595 * @param string $path Optional. Path relative to the home url. 2596 * @param string $scheme Optional. Scheme to give the home url context. Currently 'http', 'https', or 'relative'. 2597 2597 * @return string Home url link with optional path appended. 2598 2598 */ 2599 2599 function home_url( $path = '', $scheme = null ) { … … 2609 2609 * 2610 2610 * @since 3.0.0 2611 2611 * 2612 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 2613 * @param string $path (optional) Path relative to the home url. 2614 * @param string $scheme (optional) Scheme to give the home url context. Currently 'http', 'https', or 'relative'. 2615 * @return string Home url link with optional path appended. 2612 * @param int $blog_id Optional. Blog ID. Defaults to current blog. Default null. 2613 * @param string $path Optional. Path relative to the home URL. Default ''. 2614 * @param string|null $orig_scheme Optional. Scheme to give the home URL context. Default null. 2615 * Accepts 'http', 'https', 'relative', or null. 2616 * @return string Home URL link with optional path appended. 2616 2617 */ 2617 2618 function get_home_url( $blog_id = null, $path = '', $scheme = null ) { 2618 2619 $orig_scheme = $scheme; … … 2676 2677 * 2677 2678 * @since 3.0.0 2678 2679 * 2679 * @param int $blog_id (optional)Blog ID. Defaults to current blog.2680 * @param int $blog_id Optional. Blog ID. Defaults to current blog. 2680 2681 * @param string $path Optional. Path relative to the site url. 2681 2682 * @param string $scheme Optional. Scheme to give the site url context. Currently 'http', 'https', 'login', 'login_post', 'admin', or 'relative'. 2682 2683 * @return string Site url link with optional path appended. … … 2727 2728 * 2728 2729 * @since 3.0.0 2729 2730 * 2730 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 2731 * @param string $path Optional path relative to the admin url. 2732 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 2731 * @param int $blog_id Optional. Blog ID. Defaults to current blog. 2732 * @param string $path Optional. Path relative to the admin url. Default ''. 2733 * @param string $scheme Optional. The scheme to use. Default 'admin', which obeys force_ssl_admin() and is_ssl(). 2734 * Accepts 'http' or 'https', to force those schemes. 2733 2735 * @return string Admin url link with optional path appended. 2734 2736 */ 2735 2737 function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) { … … 2904 2906 * 2905 2907 * @since 3.0.0 2906 2908 * 2907 * @param string $path (optional)Path relative to the home url.2908 * @param string $scheme (optional)Scheme to give the home url context. Currently 'http', 'https', or 'relative'.2909 * @param string $path Optional. Path relative to the home url. 2910 * @param string $scheme Optional. Scheme to give the home url context. Currently 'http', 'https', or 'relative'. 2909 2911 * @return string Home url link with optional path appended. 2910 2912 */ 2911 2913 function network_home_url( $path = '', $scheme = null ) { -
src/wp-includes/meta.php
850 850 * @param string $type Type of meta 851 851 * @param string $primary_table 852 852 * @param string $primary_id_column 853 * @param object $context (optional)The main query object853 * @param object $context Optional. The main query object 854 854 * @return array( 'join' => $join_sql, 'where' => $where_sql ) 855 855 */ 856 856 function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) { -
src/wp-includes/user.php
2022 2022 * 2023 2023 * @param string $username The user's username. 2024 2024 * @param string $password The user's password. 2025 * @param string $email The user's email (optional).2025 * @param string $email Optional. The user's email. Default ''. 2026 2026 * @return int The new user's ID. 2027 2027 */ 2028 2028 function wp_create_user($username, $password, $email = '') { -
src/wp-includes/wp-db.php
735 735 * @since 3.1.0 736 736 * 737 737 * @param resource $dbh The resource given by mysql_connect 738 * @param string $charset The character set (optional)739 * @param string $collate The collation (optional)738 * @param string $charset Optional. The character set. 739 * @param string $collate Optional. The collation. 740 740 */ 741 741 public function set_charset( $dbh, $charset = null, $collate = null ) { 742 742 if ( ! isset( $charset ) )