Ticket #28841: 28841.3.diff
File 28841.3.diff, 25.6 KB (added by , 10 years ago) |
---|
-
src/wp-includes/bookmark-template.php
20 20 * used by themes. 21 21 * 22 22 * The defaults for overwriting are: 23 * 'show_updated' - Default is 0 (integer). Will show the time of when the24 * bookmark was last updated.25 * 'show_description' - Default is 0 (integer). Whether to show the description26 * of the bookmark.27 * 'show_images' - Default is 1 (integer). Whether to show link image if28 * available.29 * 'show_name' - Default is 0 (integer). Whether to show link name if30 * available.31 * 'before' - Default is '<li>' (string). The html or text to prepend to each32 * bookmarks.33 * 'after' - Default is '</li>' (string). The html or text to append to each34 * bookmarks.35 * 'link_before' - Default is '' (string). The html or text to prepend to each36 * bookmarks inside the <a> tag.37 * 'link_after' - Default is '' (string). The html or text to append to each38 * bookmarks inside the <a> tag.39 * 'between' - Default is '\n' (string). The string for use in between the link,40 * description, and image.41 * 'show_rating' - Default is 0 (integer). Whether to show the link rating.42 23 * 24 * - 'show_updated' - Default is 0 (integer). Will show the time of when the 25 * bookmark was last updated. 26 * - 'show_description' - Default is 0 (integer). Whether to show the description 27 * of the bookmark. 28 * - 'show_images' - Default is 1 (integer). Whether to show link image if 29 * available. 30 * - 'show_name' - Default is 0 (integer). Whether to show link name if 31 * available. 32 * - 'before' - Default is '<li>' (string). The html or text to prepend to each 33 * bookmarks. 34 * - 'after' - Default is '</li>' (string). The html or text to append to each 35 * bookmarks. 36 * - 'link_before' - Default is '' (string). The html or text to prepend to each 37 * bookmarks inside the <a> tag. 38 * - 'link_after' - Default is '' (string). The html or text to append to each 39 * bookmarks inside the <a> tag. 40 * - 'between' - Default is '\n' (string). The string for use in between the link, 41 * description, and image. 42 * - 'show_rating' - Default is 0 (integer). Whether to show the link rating. 43 * 43 44 * @since 2.1.0 44 45 * @access private 45 46 * … … 148 149 * Retrieve or echo all of the bookmarks. 149 150 * 150 151 * List of default arguments are as follows: 151 * 'orderby' - Default is 'name' (string). How to order the links by. String is152 * based off of the bookmark scheme.153 * 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either154 * ascending or descending order.155 * 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to156 * display.157 * 'category' - Default is empty string (string). Include the links in what158 * category ID(s).159 * 'category_name' - Default is empty string (string). Get links by category160 * name.161 * 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide162 * links marked as 'invisible'.163 * 'show_updated' - Default is 0 (integer). Will show the time of when the164 * bookmark was last updated.165 * 'echo' - Default is 1 (integer). Whether to echo (default) or return the166 * formatted bookmarks.167 * 'categorize' - Default is 1 (integer). Whether to show links listed by168 * category (default) or show links in one column.169 * 'show_description' - Default is 0 (integer). Whether to show the description170 * of the bookmark.171 152 * 153 * - 'orderby' - Default is 'name' (string). How to order the links by. String is 154 * based off of the bookmark scheme. 155 * - 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either 156 * ascending or descending order. 157 * - 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to 158 * display. 159 * - 'category' - Default is empty string (string). Include the links in what 160 * category ID(s). 161 * - 'category_name' - Default is empty string (string). Get links by category 162 * name. 163 * - 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide 164 * links marked as 'invisible'. 165 * - 'show_updated' - Default is 0 (integer). Will show the time of when the 166 * bookmark was last updated. 167 * - 'echo' - Default is 1 (integer). Whether to echo (default) or return the 168 * formatted bookmarks. 169 * - 'categorize' - Default is 1 (integer). Whether to show links listed by 170 * category (default) or show links in one column. 171 * - 'show_description' - Default is 0 (integer). Whether to show the description 172 * of the bookmark. 173 * 172 174 * These options define how the Category name will appear before the category 173 175 * links are displayed, if 'categorize' is 1. If 'categorize' is 0, then it will 174 176 * display for only the 'title_li' string and only if 'title_li' is not empty. 175 * 'title_li' - Default is 'Bookmarks' (translatable string). What to show176 * before the links appear.177 * 'title_before' - Default is '<h2>' (string). The HTML or text to show before178 * the 'title_li' string.179 * 'title_after' - Default is '</h2>' (string). The HTML or text to show after180 * the 'title_li' string.181 * 'class' - Default is 'linkcat' (string). The CSS class to use for the182 * 'title_li'.183 177 * 184 * 'category_before' - Default is '<li id="%id" class="%class">'. String must 185 * contain '%id' and '%class' to get 186 * the id of the category and the 'class' argument. These are used for 187 * formatting in themes. 188 * Argument will be displayed before the 'title_before' argument. 189 * 'category_after' - Default is '</li>' (string). The HTML or text that will 190 * appear after the list of links. 178 * - 'title_li' - Default is 'Bookmarks' (translatable string). What to show 179 * before the links appear. 180 * - 'title_before' - Default is '<h2>' (string). The HTML or text to show before 181 * the 'title_li' string. 182 * - 'title_after' - Default is '</h2>' (string). The HTML or text to show after 183 * the 'title_li' string. 184 * - 'class' - Default is 'linkcat' (string). The CSS class to use for the 185 * 'title_li'. 186 * - 'category_before' - Default is '<li id="%id" class="%class">'. String must 187 * contain '%id' and '%class' to get the id of the category 188 * and the 'class' argument. These are used for formatting 189 * in themes. Argument will be displayed before the 190 * 'title_before' argument. 191 * - 'category_after' - Default is '</li>' (string). The HTML or text that will 192 * appear after the list of links. 191 193 * 192 194 * These are only used if 'categorize' is set to 1 or true. 193 * 'category_orderby' - Default is 'name'. How to order the bookmark category 194 * based on term scheme. 195 * 'category_order' - Default is 'ASC'. Set the order by either ASC (ascending) 196 * or DESC (descending). 195 * 196 * - 'category_orderby' - Default is 'name'. How to order the bookmark category 197 * based on term scheme. 198 * - 'category_order' - Default is 'ASC'. Set the order by either ASC (ascending) 199 * or DESC (descending). 197 200 * 198 201 * @see _walk_bookmarks() For other arguments that can be set in this function 199 202 * and passed to _walk_bookmarks(). -
src/wp-includes/bookmark.php
92 92 * results will be stored to the cache. 93 93 * 94 94 * List of default arguments are as follows: 95 * 'orderby' - Default is 'name' (string). How to order the links by. String is96 * based off of the bookmark scheme.97 * 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either98 * ascending or descending order.99 * 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to100 * display.101 * 'category' - Default is empty string (string). Include the links in what102 * category ID(s).103 * 'category_name' - Default is empty string (string). Get links by category104 * name.105 * 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide106 * links marked as 'invisible'.107 * 'show_updated' - Default is 0 (integer). Will show the time of when the108 * bookmark was last updated.109 * 'include' - Default is empty string (string). Include bookmark ID(s)110 * separated by commas.111 * 'exclude' - Default is empty string (string). Exclude bookmark ID(s)112 * separated by commas.113 95 * 96 * - 'orderby' - Default is 'name' (string). How to order the links by. String is 97 * based off of the bookmark scheme. 98 * - 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either 99 * ascending or descending order. 100 * - 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to 101 * display. 102 * - 'category' - Default is empty string (string). Include the links in what 103 * category ID(s). 104 * - 'category_name' - Default is empty string (string). Get links by category 105 * name. 106 * - 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide 107 * links marked as 'invisible'. 108 * - 'show_updated' - Default is 0 (integer). Will show the time of when the 109 * bookmark was last updated. 110 * - 'include' - Default is empty string (string). Include bookmark ID(s) 111 * separated by commas. 112 * - 'exclude' - Default is empty string (string). Exclude bookmark ID(s) 113 * separated by commas. 114 * 114 115 * @since 2.1.0 115 116 * @uses $wpdb Database Object 116 117 * @link http://codex.wordpress.org/Template_Tags/get_bookmarks -
src/wp-includes/functions.php
1703 1703 * directory is not writable by the server. 1704 1704 * 1705 1705 * On success, the returned array will have many indices: 1706 * 'path' - base directory and sub directory or full path to upload directory.1707 * 'url' - base url and sub directory or absolute URL to upload directory.1708 * 'subdir' - sub directory if uploads use year/month folders option is on.1709 * 'basedir' - path without subdir.1710 * 'baseurl' - URL path without subdir.1711 * 'error' - set to false.1712 1706 * 1707 * - 'path' - base directory and sub directory or full path to upload directory. 1708 * - 'url' - base url and sub directory or absolute URL to upload directory. 1709 * - 'subdir' - sub directory if uploads use year/month folders option is on. 1710 * - 'basedir' - path without subdir. 1711 * - 'baseurl' - URL path without subdir. 1712 * - 'error' - set to false. 1713 * 1713 1714 * @since 2.0.0 1714 1715 * 1715 1716 * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. -
src/wp-includes/post-template.php
1112 1112 * wp_list_pages()} function. Check that function for more info on those 1113 1113 * arguments. 1114 1114 * 1115 * <ul> 1116 * <li><strong>sort_column</strong> - How to sort the list of pages. Defaults 1117 * to 'menu_order, post_title'. Use column for posts table.</li> 1118 * <li><strong>menu_class</strong> - Class to use for the div ID which contains 1119 * the page list. Defaults to 'menu'.</li> 1120 * <li><strong>echo</strong> - Whether to echo list or return it. Defaults to 1121 * echo.</li> 1122 * <li><strong>link_before</strong> - Text before show_home argument text.</li> 1123 * <li><strong>link_after</strong> - Text after show_home argument text.</li> 1124 * <li><strong>show_home</strong> - If you set this argument, then it will 1125 * display the link to the home page. The show_home argument really just needs 1126 * to be set to the value of the text of the link.</li> 1127 * </ul> 1115 * - sort_column - How to sort the list of pages. Defaults to 1116 * 'menu_order, post_title'. Use column for posts table. 1117 * - menu_class - Class to use for the div ID which contains the page list. 1118 * Defaults to 'menu'. 1119 * - echo - Whether to echo list or return it. Defaults to echo. 1120 * - link_before - Text before show_home argument text. 1121 * - link_after - Text after show_home argument text. 1122 * - show_home - If you set this argument, then it will display the link to the 1123 * home page. The show_home argument really just needs to be set 1124 * to the value of the text of the link. 1128 1125 * 1129 1126 * @since 2.7.0 1130 1127 * -
src/wp-includes/post.php
1588 1588 * Build an object with all post type labels out of a post type object 1589 1589 * 1590 1590 * Accepted keys of the label array in the post type object: 1591 * 1591 1592 * - name - general name for the post type, usually plural. The same and overridden 1592 1593 * by $post_type_object->label. Default is Posts/Pages 1593 1594 * - singular_name - name for one object of this post type. Default is Post/Page … … 1810 1811 * Retrieve list of latest posts or posts matching criteria. 1811 1812 * 1812 1813 * The defaults are as follows: 1813 * 'numberposts' - Default is 5. Total number of posts to retrieve.1814 * 'offset' - Default is 0. See {@link WP_Query::query()} for more.1815 * 'category' - What category to pull the posts from.1816 * 'orderby' - Default is 'date', which orders based on post_date. How to order the posts.1817 * 'order' - Default is 'DESC'. The order to retrieve the posts.1818 * 'include' - See {@link WP_Query::query()} for more.1819 * 'exclude' - See {@link WP_Query::query()} for more.1820 * 'meta_key' - See {@link WP_Query::query()} for more.1821 * 'meta_value' - See {@link WP_Query::query()} for more.1822 * 'post_type' - Default is 'post'. Can be 'page', or 'attachment' to name a few.1823 * 'post_parent' - The parent of the post or post type.1824 * 'post_status' - Default is 'publish'. Post status to retrieve.1825 1814 * 1815 * - 'numberposts' - Default is 5. Total number of posts to retrieve. 1816 * - 'offset' - Default is 0. See {@link WP_Query::query()} for more. 1817 * - 'category' - What category to pull the posts from. 1818 * - 'orderby' - Default is 'date', which orders based on post_date. How to order the posts. 1819 * - 'order' - Default is 'DESC'. The order to retrieve the posts. 1820 * - 'include' - See {@link WP_Query::query()} for more. 1821 * - 'exclude' - See {@link WP_Query::query()} for more. 1822 * - 'meta_key' - See {@link WP_Query::query()} for more. 1823 * - 'meta_value' - See {@link WP_Query::query()} for more. 1824 * - 'post_type' - Default is 'post'. Can be 'page', or 'attachment' to name a few. 1825 * - 'post_parent' - The parent of the post or post type. 1826 * - 'post_status' - Default is 'publish'. Post status to retrieve. 1827 * 1826 1828 * @since 1.2.0 1827 1829 * 1828 1830 * @todo Tie to WP_Query default args hash notation. -
src/wp-includes/taxonomy.php
1213 1213 * 1214 1214 * The list of arguments that $args can contain, which will overwrite the defaults: 1215 1215 * 1216 * orderby - Default is 'name'. Can be name, count, term_group, slug or nothing 1217 * (will use term_id), Passing a custom value other than these will cause it to 1218 * order based on the custom value. 1216 * - orderby - Default is 'name'. Can be name, count, term_group, slug or nothing 1217 * (will use term_id), Passing a custom value other than these will 1218 * cause it to order based on the custom value. 1219 * - order - Default is ASC. Can use DESC. 1220 * - hide_empty - Default is true. Will not return empty terms, which means 1221 * terms whose count is 0 according to the given taxonomy. 1222 * - exclude - Default is an empty array. An array, comma- or space-delimited string 1223 * of term ids to exclude from the return array. If 'include' is 1224 * non-empty, 'exclude' is ignored. 1225 * - exclude_tree - Default is an empty array. An array, comma- or space-delimited 1226 * string of term ids to exclude from the return array, along 1227 * with all of their descendant terms according to the primary 1228 * taxonomy. If 'include' is non-empty, 'exclude_tree' is ignored. 1229 * - include - Default is an empty array. An array, comma- or space-delimited string 1230 * of term ids to include in the return array. 1231 * - number - The maximum number of terms to return. Default is to return them all. 1232 * - offset - The number by which to offset the terms query. 1233 * - fields - Default is 'all', which returns an array of term objects. 1234 * If 'fields' is 'ids' or 'names', returns an array of integers or 1235 * strings, respectively. 1236 * - slug - Returns terms whose "slug" matches this value. Default is empty string. 1237 * - hierarchical - Whether to include terms that have non-empty descendants 1238 * (even if 'hide_empty' is set to true). 1239 * - search - Returned terms' names will contain the value of 'search', 1240 * case-insensitive. Default is an empty string. 1241 * - name__like - Returned terms' names will contain the value of 'name__like', 1242 * case-insensitive. Default is empty string. 1243 * - description__like - Returned terms' descriptions will contain the value of 1244 * 'description__like', case-insensitive. Default is empty string. 1219 1245 * 1220 * order - Default is ASC. Can use DESC.1221 *1222 * hide_empty - Default is true. Will not return empty terms, which means1223 * terms whose count is 0 according to the given taxonomy.1224 *1225 * exclude - Default is an empty array. An array, comma- or space-delimited string1226 * of term ids to exclude from the return array. If 'include' is non-empty,1227 * 'exclude' is ignored.1228 *1229 * exclude_tree - Default is an empty array. An array, comma- or space-delimited1230 * string of term ids to exclude from the return array, along with all of their1231 * descendant terms according to the primary taxonomy. If 'include' is non-empty,1232 * 'exclude_tree' is ignored.1233 *1234 * include - Default is an empty array. An array, comma- or space-delimited string1235 * of term ids to include in the return array.1236 *1237 * number - The maximum number of terms to return. Default is to return them all.1238 *1239 * offset - The number by which to offset the terms query.1240 *1241 * fields - Default is 'all', which returns an array of term objects.1242 * If 'fields' is 'ids' or 'names', returns an array of1243 * integers or strings, respectively.1244 *1245 * slug - Returns terms whose "slug" matches this value. Default is empty string.1246 *1247 * hierarchical - Whether to include terms that have non-empty descendants1248 * (even if 'hide_empty' is set to true).1249 *1250 * search - Returned terms' names will contain the value of 'search',1251 * case-insensitive. Default is an empty string.1252 *1253 * name__like - Returned terms' names will contain the value of 'name__like',1254 * case-insensitive. Default is empty string.1255 *1256 * description__like - Returned terms' descriptions will contain the value of1257 * 'description__like', case-insensitive. Default is empty string.1258 *1259 1246 * The argument 'pad_counts', if set to true will include the quantity of a term's 1260 1247 * children in the quantity of each term's "count" object variable. 1261 1248 * -
src/wp-includes/user.php
1252 1252 * used, either 'include' or 'exclude', but not both. 1253 1253 * 1254 1254 * The available arguments are as follows: 1255 * <ol>1256 * <li>show_option_all - Text to show all and whether HTML option exists.</li>1257 * <li>show_option_none - Text for show none and whether HTML option exists.</li>1258 * <li>option_none_value - Value to use when no option is selected.</li>1259 * <li>hide_if_only_one_author - Don't create the dropdown if there is only one user.</li>1260 * <li>orderby - SQL order by clause for what order the users appear. Default is 'display_name'.</li>1261 * <li>order - Default is 'ASC'. Can also be 'DESC'.</li>1262 * <li>include - User IDs to include.</li>1263 * <li>exclude - User IDs to exclude.</li>1264 * <li>multi - Default is 'false'. Whether to skip the ID attribute on the 'select' element. A 'true' value is overridden when id argument is set.</li>1265 * <li>show - Default is 'display_name'. User table column to display. If the selected item is empty then the user_login will be displayed in parentheses</li>1266 * <li>echo - Default is '1'. Whether to display or retrieve content.</li>1267 * <li>selected - Which User ID is selected.</li>1268 * <li>include_selected - Always include the selected user ID in the dropdown. Default is false.</li>1269 * <li>name - Default is 'user'. Name attribute of select element.</li>1270 * <li>id - Default is the value of the 'name' parameter. ID attribute of select element.</li>1271 * <li>class - Class attribute of select element.</li>1272 * <li>blog_id - ID of blog (Multisite only). Defaults to ID of current blog.</li>1273 * <li>who - Which users to query. Currently only 'authors' is supported. Default is all users.</li>1274 * </ol>1275 1255 * 1256 * - show_option_all - Text to show all and whether HTML option exists. 1257 * - show_option_none - Text for show none and whether HTML option exists. 1258 * - option_none_value - Value to use when no option is selected. 1259 * - hide_if_only_one_author - Don't create the dropdown if there is only one user. 1260 * - orderby - SQL order by clause for what order the users appear. Default is 1261 * 'display_name'. 1262 * - order - Default is 'ASC'. Can also be 'DESC'. 1263 * - include - User IDs to include. 1264 * - exclude - User IDs to exclude. 1265 * - multi - Default is 'false'. Whether to skip the ID attribute on the 'select' 1266 * element. A 'true' value is overridden when id argument is set. 1267 * - show - Default is 'display_name'. User table column to display. If the 1268 * selected item is empty then the user_login will be displayed in 1269 * parentheses. 1270 * - echo - Default is '1'. Whether to display or retrieve content. 1271 * - selected - Which User ID is selected. 1272 * - include_selected - Always include the selected user ID in the dropdown. Default is false. 1273 * - name - Default is 'user'. Name attribute of select element. 1274 * - id - Default is the value of the 'name' parameter. ID attribute of select element. 1275 * - class - Class attribute of select element. 1276 * - blog_id - ID of blog (Multisite only). Defaults to ID of current blog. 1277 * - who - Which users to query. Currently only 'authors' is supported. Default is all users. 1278 * 1276 1279 * @since 2.3.0 1277 1280 * 1278 1281 * @global wpdb $wpdb WordPress database object for queries. … … 1565 1568 * called, 'pre_user_description' that can be hooked into. 1566 1569 * 1567 1570 * The $userdata array can contain the following fields: 1568 * 'ID' - An integer that will be used for updating an existing user.1569 * 'user_pass' - A string that contains the plain text password for the user.1570 * 'user_login' - A string that contains the user's username for logging in.1571 * 'user_nicename' - A string that contains a URL-friendly name for the user.1572 * The default is the user's username.1573 * 'user_url' - A string containing the user's URL for the user's web site.1574 * 'user_email' - A string containing the user's email address.1575 * 'display_name' - A string that will be shown on the site. Defaults to user's1576 * username. It is likely that you will want to change this, for appearance.1577 * 'nickname' - The user's nickname, defaults to the user's username.1578 * 'first_name' - The user's first name.1579 * 'last_name' - The user's last name.1580 * 'description' - A string containing content about the user.1581 * 'rich_editing' - A string for whether to enable the rich editor. False1582 * if not empty.1583 * 'user_registered' - The date the user registered. Format is 'Y-m-d H:i:s'.1584 * 'role' - A string used to set the user's role.1585 * 'jabber' - User's Jabber account.1586 * 'aim' - User's AOL IM account.1587 * 'yim' - User's Yahoo IM account.1588 1571 * 1572 * - 'ID' - An integer that will be used for updating an existing user. 1573 * - 'user_pass' - A string that contains the plain text password for the user. 1574 * - 'user_login' - A string that contains the user's username for logging in. 1575 * - 'user_nicename' - A string that contains a URL-friendly name for the user. 1576 * The default is the user's username. 1577 * - 'user_url' - A string containing the user's URL for the user's web site. 1578 * - 'user_email' - A string containing the user's email address. 1579 * - 'display_name' - A string that will be shown on the site. Defaults to user's 1580 * username. It is likely that you will want to change this, 1581 * for appearance. 1582 * - 'nickname' - The user's nickname, defaults to the user's username. 1583 * - 'first_name' - The user's first name. 1584 * - 'last_name' - The user's last name. 1585 * - 'description' - A string containing content about the user. 1586 * - 'rich_editing' - A string for whether to enable the rich editor. False 1587 * if not empty. 1588 * - 'user_registered' - The date the user registered. Format is 'Y-m-d H:i:s'. 1589 * - 'role' - A string used to set the user's role. 1590 * - 'jabber' - User's Jabber account. 1591 * - 'aim' - User's AOL IM account. 1592 * - 'yim' - User's Yahoo IM account. 1593 * 1589 1594 * @since 2.0.0 1590 1595 * 1591 1596 * @global wpdb $wpdb WordPress database object for queries.