Changeset 30753
- Timestamp:
- 12/06/2014 09:23:52 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r30682 r30753 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. 55 * @return bool False upon failure. 54 * @param int $mode Optional. The file permissions as octal number, usually 0644. 55 * Default false. 56 * @return bool False upon failure, true otherwise. 56 57 */ 57 58 public function put_contents( $file, $contents, $mode = false ) { … … 100 101 * Changes file group 101 102 * 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.103 * @param string $file Path to the file. 104 * @param mixed $group A group name or number. 105 * @param bool $recursive Optional. If set True changes file group recursively. Default false. 105 106 * @return bool Returns true on success or false on failure. 106 107 */ … … 124 125 * Changes filesystem permissions 125 126 * 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. 127 * @param string $file Path to the file. 128 * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 129 * 0755 for dirs. Default false. 130 * @param bool $recursive Optional. If set True changes file group recursively. Default false. 129 131 * @return bool Returns true on success or false on failure. 130 132 */ … … 153 155 * Changes file owner 154 156 * 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. Defaults to False. 157 * @param string $file Path to the file. 158 * @param mixed $owner A user name or number. 159 * @param bool $recursive Optional. If set True changes file owner recursively. 160 * Default false. 158 161 * @return bool Returns true on success or false on failure. 159 162 */ -
trunk/src/wp-admin/includes/file.php
r30648 r30753 98 98 * @since 2.6.0 99 99 * 100 * @param string $folder Full path to folder101 * @param int $levels (optional) Levels of folders to follow, Default:100 (PHP Loop limit).100 * @param string $folder Optional. Full path to folder. Default empty. 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 */ … … 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 empty. 141 * @param string $dir Optional. Directory to store the file in. Default empty. 142 142 * @return string a writable filename 143 143 */ … … 806 806 * This function will include the chosen transport and attempt connecting. 807 807 * 808 * Plugins may add extra transports, And force WordPress to use them by returning the filename via the 'filesystem_method_file' filter. 808 * Plugins may add extra transports, And force WordPress to use them by returning 809 * the filename via the {@see 'filesystem_method_file'} filter. 809 810 * 810 811 * @since 2.5.0 811 812 * 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. 815 * @return null|boolean false on failure, true on success 813 * @param array $args Optional. Connection args, These are passed directly to 814 * the `WP_Filesystem_*()` classes. Default false. 815 * @param string $context Optional. Context for {@see get_filesystem_method()}. 816 * Default false. 817 * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. 818 * Default false. 819 * @return null|boolean false on failure, true on success. 816 820 */ 817 821 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { -
trunk/src/wp-admin/includes/post.php
r30680 r30753 1117 1117 1118 1118 /** 1119 * {@internal Missing Short Description}}1119 * Get a sample permalink based off of the post name. 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) Name1126 * @return array With two entries of type string1123 * @param int $id Post ID or post object. 1124 * @param string $title Optional. Title. Default null. 1125 * @param string $name Optional. Name. Default null. 1126 * @return array Arra yith two entries of type string. 1127 1127 */ 1128 1128 function get_sample_permalink($id, $title = null, $name = null) { … … 1186 1186 * @since 2.5.0 1187 1187 * 1188 * @param int eger $idPost ID or post object.1189 * @param string $new_title Optional. New title. 1190 * @param string $new_slug Optional. New slug.1188 * @param int $id Post ID or post object. 1189 * @param string $new_title Optional. New title. Default null. 1190 * @param string $new_slug Optional. New slug. Default null. 1191 1191 * @return string The HTML of the sample permalink slug editor. 1192 1192 */ -
trunk/src/wp-includes/class.wp-scripts.php
r30403 r30753 48 48 49 49 /** 50 * Prints scripts 50 * Prints scripts. 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. 56 * @return array Scripts that have been printed 54 * @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints 55 * that script, (array of strings) prints those scripts. Default false. 56 * @param int $group Optional. If scripts were queued in groups prints this group number. 57 * Default false. 58 * @return array Scripts that have been printed. 57 59 */ 58 60 public function print_scripts( $handles = false, $group = false ) { -
trunk/src/wp-includes/deprecated.php
r30695 r30753 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 The user's email. 1218 1218 * @return int The new user's ID. 1219 1219 */ -
trunk/src/wp-includes/link-template.php
r30656 r30753 2588 2588 * 2589 2589 * Returns the 'home' option with the appropriate protocol, 'https' if 2590 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is2591 * overridden.2590 * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https', 2591 * `is_ssl()` is overridden. 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. Default empty. 2596 * @param string $scheme Optional. Scheme to give the home url context. Accepts 2597 * 'http', 'https', or 'relative'. Default null. 2597 2598 * @return string Home url link with optional path appended. 2598 2599 */ … … 2605 2606 * 2606 2607 * Returns the 'home' option with the appropriate protocol, 'https' if 2607 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is 2608 * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https', 2609 * `is_ssl()` is 2608 2610 * overridden. 2609 2611 * 2610 2612 * @since 3.0.0 2611 2613 * 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. 2614 * @param int $blog_id Optional. Blog ID. Default null (current blog). 2615 * @param string $path Optional. Path relative to the home URL. Default empty. 2616 * @param string|null $orig_scheme Optional. Scheme to give the home URL context. Accepts 2617 * 'http', 'https', 'relative', or null. Default null. 2618 * @return string Home URL link with optional path appended. 2616 2619 */ 2617 2620 function get_home_url( $blog_id = null, $path = '', $scheme = null ) { … … 2672 2675 * 2673 2676 * Returns the 'site_url' option with the appropriate protocol, 'https' if 2674 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is2675 * overridden.2677 * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https', 2678 * `is_ssl()` is overridden. 2676 2679 * 2677 2680 * @since 3.0.0 2678 2681 * 2679 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 2680 * @param string $path Optional. Path relative to the site url. 2681 * @param string $scheme Optional. Scheme to give the site url context. Currently 'http', 'https', 'login', 'login_post', 'admin', or 'relative'. 2682 * @param int $blog_id Optional. Blog ID. Default null (current site). 2683 * @param string $path Optional. Path relative to the site url. Default empty. 2684 * @param string $scheme Optional. Scheme to give the site url context. Accepts 2685 * 'http', 'https', 'login', 'login_post', 'admin', or 2686 * 'relative'. Default null. 2682 2687 * @return string Site url link with optional path appended. 2683 2688 */ … … 2724 2729 2725 2730 /** 2726 * Retrieve the url to the admin area for a given site.2731 * Retrieves the url to the admin area for a given site. 2727 2732 * 2728 2733 * @since 3.0.0 2729 2734 * 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. 2735 * @param int $blog_id Optional. Blog ID. Default null (current site). 2736 * @param string $path Optional. Path relative to the admin url. Default empty. 2737 * @param string $scheme Optional. The scheme to use. Accepts 'http' or 'https', 2738 * to force those schemes. Default 'admin', which obeys 2739 * {@see force_ssl_admin()} and {@see is_ssl()}. 2733 2740 * @return string Admin url link with optional path appended. 2734 2741 */ … … 2897 2904 2898 2905 /** 2899 * Retrieve the home url for the current network.2900 * 2901 * Returns the home url with the appropriate protocol, 'https' if2902 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl()is2906 * Retrieves the home url for the current network. 2907 * 2908 * Returns the home url with the appropriate protocol, 'https' {@see is_ssl()} 2909 * and 'http' otherwise. If `$scheme` is 'http' or 'https', `is_ssl()` is 2903 2910 * overridden. 2904 2911 * 2905 2912 * @since 3.0.0 2906 2913 * 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'. 2914 * @param string $path Optional. Path relative to the home url. Default empty. 2915 * @param string $scheme Optional. Scheme to give the home url context. Accepts 2916 * 'http', 'https', or 'relative'. Default null. 2909 2917 * @return string Home url link with optional path appended. 2910 2918 */ -
trunk/src/wp-includes/meta.php
r30701 r30753 841 841 842 842 /** 843 * Given a meta query, generates SQL clauses to be appended to a main query 843 * Given a meta query, generates SQL clauses to be appended to a main query. 844 844 * 845 845 * @since 3.2.0 … … 847 847 * @see WP_Meta_Query 848 848 * 849 * @param array $meta_query A meta query850 * @param string $type Type of meta851 * @param string $primary_table 852 * @param string $primary_id_column 853 * @param object $context (optional)The main query object854 * @return array ( 'join' => $join_sql, 'where' => $where_sql )849 * @param array $meta_query A meta query. 850 * @param string $type Type of meta. 851 * @param string $primary_table Primary database table name. 852 * @param string $primary_id_column Primary ID column name. 853 * @param object $context Optional. The main query object 854 * @return array Associative array of `JOIN` and `WHERE` SQL. 855 855 */ 856 856 function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) { -
trunk/src/wp-includes/user.php
r30666 r30753 2016 2016 * 2017 2017 * Creates a new user with just the username, password, and email. For more 2018 * complex user creation use wp_insert_user()to specify more information.2018 * complex user creation use {@see wp_insert_user()} to specify more information. 2019 2019 * 2020 2020 * @since 2.0.0 … … 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 empty. 2026 2026 * @return int The new user's ID. 2027 2027 */ -
trunk/src/wp-includes/wp-db.php
r30699 r30753 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. Default null. 739 * @param string $collate Optional. The collation. Default null. 740 740 */ 741 741 public function set_charset( $dbh, $charset = null, $collate = null ) {
Note: See TracChangeset
for help on using the changeset viewer.