Changeset 30546
- Timestamp:
- 11/24/2014 06:30:19 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r30505 r30546 14 14 15 15 /** 16 * Walker to output an unordered list of category checkbox <input> elements. 16 * Walker to output an unordered list of category checkbox input elements. 17 * 18 * @since 2.5.1 17 19 * 18 20 * @see Walker 19 21 * @see wp_category_checklist() 20 22 * @see wp_terms_checklist() 21 * @since 2.5.122 23 */ 23 24 class Walker_Category_Checklist extends Walker { … … 113 114 114 115 /** 115 * Output an unordered list of checkbox <input>elements labelled116 * Output an unordered list of checkbox input elements labelled 116 117 * with category names. 117 118 * 119 * @since 2.5.1 120 * 121 * @todo Properly document optional arguments as such. 122 * 118 123 * @see wp_terms_checklist() 119 * @since 2.5.1120 124 * 121 125 * @param int $post_id Mark categories associated with this post as checked. $selected_cats must not be an array. … … 138 142 139 143 /** 140 * Output an unordered list of checkbox <input> elements labelled 141 * with term names. Taxonomy independent version of wp_category_checklist(). 144 * Output an unordered list of checkbox input elements labelled with term names. 145 * 146 * Taxonomy independent version of {@see wp_category_checklist()}. 142 147 * 143 148 * @since 3.0.0 144 149 * 145 * @param int $post_id 146 * @param array $args 150 * @todo Properly document optional default arguments. 151 * 152 * @param int $post_id Post ID. 153 * @param array $args Arguments to form the terms checklist. 147 154 */ 148 155 function wp_terms_checklist( $post_id = 0, $args = array() ) { … … 237 244 * 238 245 * If the $echo argument is true then the elements for a list of checkbox 239 * <input>elements labelled with the names of the selected terms is output.246 * `<input>` elements labelled with the names of the selected terms is output. 240 247 * If the $post_ID global isn't empty then the terms associated with that 241 248 * post will be marked as checked. … … 783 790 784 791 /** 785 * Print out <option>HTML elements for the page templates drop-down.792 * Print out option HTML elements for the page templates drop-down. 786 793 * 787 794 * @since 1.5.0 … … 799 806 800 807 /** 801 * Print out <option>HTML elements for the page parents drop-down.808 * Print out option HTML elements for the page parents drop-down. 802 809 * 803 810 * @since 1.5.0 … … 832 839 833 840 /** 834 * Print out <option> html elements for role selectors841 * Print out option html elements for role selectors. 835 842 * 836 843 * @since 2.1.0 … … 1308 1315 * @since 3.0.0 1309 1316 * 1317 * @todo Properly document optional arguments as such. 1318 * 1310 1319 * @global array $wp_settings_errors Storage array of errors registered during this pageload 1311 1320 * 1312 1321 * @param string $setting Slug title of the setting to which this error applies 1313 * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. 1314 * @param string $message The formatted message text to display to the user (will be shown inside styled <div> and <p>) 1315 * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. 1322 * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. 1323 * @param string $message The formatted message text to display to the user (will be shown inside styled 1324 * `<div>` and `<p>` tags). 1325 * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. 1316 1326 */ 1317 1327 function add_settings_error( $setting, $code, $message, $type = 'error' ) { … … 1383 1393 1384 1394 /** 1385 * Display settings errors registered by add_settings_error() 1386 * 1387 * Part of the Settings API. Outputs a <div> for each error retrieved by get_settings_errors(). 1388 * 1389 * This is called automatically after a settings page based on the Settings API is submitted. 1390 * Errors should be added during the validation callback function for a setting defined in register_setting() 1391 * 1392 * The $sanitize option is passed into get_settings_errors() and will re-run the setting sanitization 1395 * Display settings errors registered by {@see add_settings_error()}. 1396 * 1397 * Part of the Settings API. Outputs a div for each error retrieved by 1398 * {@see get_settings_errors()}. 1399 * 1400 * This is called automatically after a settings page based on the 1401 * Settings API is submitted. Errors should be added during the validation 1402 * callback function for a setting defined in {@see register_setting()} 1403 * 1404 * The $sanitize option is passed into {@see get_settings_errors()} and will 1405 * re-run the setting sanitization 1393 1406 * on its current value. 1394 1407 * 1395 * The $hide_on_update option will cause errors to only show when the settings page is first loaded. 1396 * if the user has already saved new values it will be hidden to avoid repeating messages already 1397 * shown in the default error reporting after submission. This is useful to show general errors like missing 1398 * settings when the user arrives at the settings page. 1408 * The $hide_on_update option will cause errors to only show when the settings 1409 * page is first loaded. if the user has already saved new values it will be 1410 * hidden to avoid repeating messages already shown in the default error 1411 * reporting after submission. This is useful to show general errors like 1412 * missing settings when the user arrives at the settings page. 1399 1413 * 1400 1414 * @since 3.0.0 -
trunk/src/wp-includes/taxonomy.php
r30494 r30546 156 156 * $wp_taxonomies global variable. 157 157 * 158 * <code><?php $taxonomies = get_object_taxonomies('post'); ?></code>Should159 * result in <code>Array('category', 'post_tag')</code>158 * `<?php $taxonomies = get_object_taxonomies('post'); ?>` Should 159 * result in `Array( 'category', 'post_tag' )` 160 160 * 161 161 * @since 2.3.0 … … 435 435 * 436 436 * Accepted keys of the label array in the taxonomy object: 437 * 437 438 * - name - general name for the taxonomy, usually plural. The same as and overridden by $tax->label. Default is Tags/Categories 438 439 * - singular_name - name for one object of this taxonomy. Default is Tag/Category … … 441 442 * - all_items - Default is All Tags/All Categories 442 443 * - parent_item - This string isn't used on non-hierarchical taxonomies. In hierarchical ones the default is Parent Category 443 * - parent_item_colon - The same as <code>parent_item</code>, but with colon <code>:</code>in the end444 * - parent_item_colon - The same as `parent_item`, but with colon `:ё in the end 444 445 * - edit_item - Default is Edit Tag/Edit Category 445 446 * - view_item - Default is View Tag/View Category -
trunk/src/wp-includes/wp-db.php
r30400 r30546 1173 1173 * Both %d and %s should be left unquoted in the query string. 1174 1174 * 1175 * <code> 1176 * wpdb::prepare( "SELECT * FROM `table` WHERE `column` = %s AND `field` = %d", 'foo', 1337 ) 1177 * wpdb::prepare( "SELECT DATE_FORMAT(`field`, '%%c') FROM `table` WHERE `column` = %s", 'foo' ); 1178 * </code> 1175 * wpdb::prepare( "SELECT * FROM `table` WHERE `column` = %s AND `field` = %d", 'foo', 1337 ) 1176 * wpdb::prepare( "SELECT DATE_FORMAT(`field`, '%%c') FROM `table` WHERE `column` = %s", 'foo' ); 1179 1177 * 1180 1178 * @link http://php.net/sprintf Description of syntax. … … 1725 1723 * Insert a row into a table. 1726 1724 * 1727 * <code> 1728 * wpdb::insert( 'table', array( 'column' => 'foo', 'field' => 'bar' ) ) 1729 * wpdb::insert( 'table', array( 'column' => 'foo', 'field' => 1337 ), array( '%s', '%d' ) ) 1730 * </code> 1725 * wpdb::insert( 'table', array( 'column' => 'foo', 'field' => 'bar' ) ) 1726 * wpdb::insert( 'table', array( 'column' => 'foo', 'field' => 1337 ), array( '%s', '%d' ) ) 1731 1727 * 1732 1728 * @since 2.5.0 … … 1748 1744 * Replace a row into a table. 1749 1745 * 1750 * <code> 1751 * wpdb::replace( 'table', array( 'column' => 'foo', 'field' => 'bar' ) ) 1752 * wpdb::replace( 'table', array( 'column' => 'foo', 'field' => 1337 ), array( '%s', '%d' ) ) 1753 * </code> 1746 * wpdb::replace( 'table', array( 'column' => 'foo', 'field' => 'bar' ) ) 1747 * wpdb::replace( 'table', array( 'column' => 'foo', 'field' => 1337 ), array( '%s', '%d' ) ) 1754 1748 * 1755 1749 * @since 3.0.0 … … 1815 1809 * Update a row in the table 1816 1810 * 1817 * <code> 1818 * wpdb::update( 'table', array( 'column' => 'foo', 'field' => 'bar' ), array( 'ID' => 1 ) ) 1819 * wpdb::update( 'table', array( 'column' => 'foo', 'field' => 1337 ), array( 'ID' => 1 ), array( '%s', '%d' ), array( '%d' ) ) 1820 * </code> 1811 * wpdb::update( 'table', array( 'column' => 'foo', 'field' => 'bar' ), array( 'ID' => 1 ) ) 1812 * wpdb::update( 'table', array( 'column' => 'foo', 'field' => 1337 ), array( 'ID' => 1 ), array( '%s', '%d' ), array( '%d' ) ) 1821 1813 * 1822 1814 * @since 2.5.0 … … 1869 1861 * Delete a row in the table 1870 1862 * 1871 * <code> 1872 * wpdb::delete( 'table', array( 'ID' => 1 ) ) 1873 * wpdb::delete( 'table', array( 'ID' => 1 ), array( '%d' ) ) 1874 * </code> 1863 * wpdb::delete( 'table', array( 'ID' => 1 ) ) 1864 * wpdb::delete( 'table', array( 'ID' => 1 ), array( '%d' ) ) 1875 1865 * 1876 1866 * @since 3.4.0 -
trunk/src/wp-login.php
r30417 r30546 26 26 * Output the login page header. 27 27 * 28 * @param string $title Optional. WordPress Log In Page title to display in <title> element. Default 'Log In'. 28 * @param string $title Optional. WordPress login Page title to display in the `<title>` element. 29 * Default 'Log In'. 29 30 * @param string $message Optional. Message to display in header. Default empty. 30 31 * @param WP_Error $wp_error Optional. The error to pass. Default empty. … … 538 539 <?php 539 540 /** 540 * Fires inside the lostpassword <form>tags, before the hidden fields.541 * Fires inside the lostpassword form tags, before the hidden fields. 541 542 * 542 543 * @since 2.1.0 -
trunk/src/wp-signup.php
r30105 r30546 20 20 function do_signup_header() { 21 21 /** 22 * Fires within the <head>section of the site sign-up screen.22 * Fires within the head section of the site sign-up screen. 23 23 * 24 24 * @since 3.0.0
Note: See TracChangeset
for help on using the changeset viewer.