Ticket #30473: 30473.diff
| File 30473.diff, 54.8 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/admin-header.php
108 108 do_action( 'admin_print_scripts' ); 109 109 110 110 /** 111 * Fires in <head>for a specific admin page based on $hook_suffix.111 * Fires in head section for a specific admin page based on $hook_suffix. 112 112 * 113 113 * @since 2.1.0 114 114 */ 115 115 do_action( "admin_head-$hook_suffix" ); 116 116 117 117 /** 118 * Fires in <head>for all admin pages.118 * Fires in head section for all admin pages. 119 119 * 120 120 * @since 2.1.0 121 121 */ … … 159 159 </head> 160 160 <?php 161 161 /** 162 * Filter the admin <body>CSS classes.162 * Filter the admin body tag CSS classes. 163 163 * 164 164 * This filter differs from the post_class or body_class filters in two important ways: 165 165 * 1. $classes is a space-separated string of class names instead of an array. -
src/wp-admin/edit-form-advanced.php
400 400 </div> 401 401 <?php 402 402 /** 403 * Fires inside the post editor <form>tag.403 * Fires inside the post editor form tag. 404 404 * 405 405 * @since 3.0.0 406 406 * -
src/wp-admin/includes/class-wp-list-table.php
913 913 } 914 914 915 915 /** 916 * Get a list of CSS classes for the <table>tag916 * Get a list of CSS classes for the table tag 917 917 * 918 918 * @since 3.1.0 919 919 * @access protected … … 958 958 protected function extra_tablenav( $which ) {} 959 959 960 960 /** 961 * Generate the <tbody>part of the table961 * Generate the tbody part of the table 962 962 * 963 963 * @since 3.1.0 964 964 * @access public -
src/wp-admin/includes/class-wp-users-list-table.php
331 331 * @access public 332 332 * 333 333 * @param object $user_object The current user object. 334 * @param string $style Optional. Style attributes added to the <tr>element.334 * @param string $style Optional. Style attributes added to the tr element. 335 335 * Must be sanitized. Default empty. 336 336 * @param string $role Optional. Key for the $wp_roles array. Default empty. 337 337 * @param int $numposts Optional. Post count to display for this user. Defaults -
src/wp-admin/includes/file.php
871 871 * The priority of the Transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets (Via Sockets class, or fsockopen()) 872 872 * 873 873 * Note that the return value of this function can be overridden in 2 ways 874 * - By defining FS_METHOD in your <code>wp-config.php</code>file874 * - By defining FS_METHOD in your `wp-config.php` file 875 875 * - By using the filesystem_method filter 876 876 * Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets' 877 877 * Plugins may also define a custom transport handler, See the WP_Filesystem function for more information. … … 948 948 * 949 949 * Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467) to specify an alternate FTP/SSH port. 950 950 * 951 * Plugins may override this form by returning true|false via the <code>request_filesystem_credentials</code>filter.951 * Plugins may override this form by returning true|false via the `request_filesystem_credentials` filter. 952 952 * 953 953 * @since 2.5.0 954 954 * -
src/wp-admin/includes/media.php
2349 2349 /** 2350 2350 * Filter the media upload mime type list items. 2351 2351 * 2352 * Returned values should begin with an <li>tag.2352 * Returned values should begin with an li tag. 2353 2353 * 2354 2354 * @since 3.1.0 2355 2355 * -
src/wp-admin/includes/plugin.php
14 14 * must not have any newlines or only parts of the description will be displayed 15 15 * and the same goes for the plugin data. The below is formatted for printing. 16 16 * 17 * <code> 18 * /* 19 * Plugin Name: Name of Plugin 20 * Plugin URI: Link to plugin information 21 * Description: Plugin Description 22 * Author: Plugin author's name 23 * Author URI: Link to the author's web site 24 * Version: Must be set in the plugin for WordPress 2.3+ 25 * Text Domain: Optional. Unique identifier, should be same as the one used in 26 * plugin_text_domain() 27 * Domain Path: Optional. Only useful if the translations are located in a 28 * folder above the plugin's base path. For example, if .mo files are 29 * located in the locale folder then Domain Path will be "/locale/" and 30 * must have the first slash. Defaults to the base folder the plugin is 31 * located in. 32 * Network: Optional. Specify "Network: true" to require that a plugin is activated 33 * across all sites in an installation. This will prevent a plugin from being 34 * activated on a single site when Multisite is enabled. 35 * * / # Remove the space to close comment 36 * </code> 17 * /* 18 * Plugin Name: Name of Plugin 19 * Plugin URI: Link to plugin information 20 * Description: Plugin Description 21 * Author: Plugin author's name 22 * Author URI: Link to the author's web site 23 * Version: Must be set in the plugin for WordPress 2.3+ 24 * Text Domain: Optional. Unique identifier, should be same as the one used in 25 * plugin_text_domain() 26 * Domain Path: Optional. Only useful if the translations are located in a 27 * folder above the plugin's base path. For example, if .mo files are 28 * located in the locale folder then Domain Path will be "/locale/" and 29 * must have the first slash. Defaults to the base folder the plugin is 30 * located in. 31 * Network: Optional. Specify "Network: true" to require that a plugin is activated 32 * across all sites in an installation. This will prevent a plugin from being 33 * activated on a single site when Multisite is enabled. 34 * * / # Remove the space to close comment 37 35 * 38 36 * Plugin data returned array contains the following: 39 37 * 'Name' - Name of the plugin, must be unique. -
src/wp-admin/includes/template.php
13 13 // 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 17 * 18 18 * @see Walker 19 19 * @see wp_category_checklist() … … 112 112 } 113 113 114 114 /** 115 * Output an unordered list of checkbox <input>elements labelled115 * Output an unordered list of checkbox input elements labelled 116 116 * with category names. 117 117 * 118 118 * @see wp_terms_checklist() … … 137 137 } 138 138 139 139 /** 140 * Output an unordered list of checkbox <input>elements labelled140 * Output an unordered list of checkbox input elements labelled 141 141 * with term names. Taxonomy independent version of wp_category_checklist(). 142 142 * 143 143 * @since 3.0.0 … … 236 236 * Retrieve a list of the most popular terms from the specified taxonomy. 237 237 * 238 238 * 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.239 * input elements labelled with the names of the selected terms is output. 240 240 * If the $post_ID global isn't empty then the terms associated with that 241 241 * post will be marked as checked. 242 242 * … … 782 782 } 783 783 784 784 /** 785 * Print out <option>HTML elements for the page templates drop-down.785 * Print out option HTML elements for the page templates drop-down. 786 786 * 787 787 * @since 1.5.0 788 788 * … … 798 798 } 799 799 800 800 /** 801 * Print out <option>HTML elements for the page parents drop-down.801 * Print out option HTML elements for the page parents drop-down. 802 802 * 803 803 * @since 1.5.0 804 804 * … … 831 831 } 832 832 833 833 /** 834 * Print out <option>html elements for role selectors834 * Print out option html elements for role selectors 835 835 * 836 836 * @since 2.1.0 837 837 * … … 1311 1311 * 1312 1312 * @param string $setting Slug title of the setting to which this error applies 1313 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>)1314 * @param string $message The formatted message text to display to the user (will be shown inside styled 'div' and 'p') 1315 1315 * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. 1316 1316 */ 1317 1317 function add_settings_error( $setting, $code, $message, $type = 'error' ) { … … 1384 1384 /** 1385 1385 * Display settings errors registered by add_settings_error() 1386 1386 * 1387 * Part of the Settings API. Outputs a <div>for each error retrieved by get_settings_errors().1387 * Part of the Settings API. Outputs a div for each error retrieved by get_settings_errors(). 1388 1388 * 1389 1389 * This is called automatically after a settings page based on the Settings API is submitted. 1390 1390 * Errors should be added during the validation callback function for a setting defined in register_setting() -
src/wp-admin/index.php
112 112 * Add content to the welcome panel on the admin dashboard. 113 113 * 114 114 * To remove the default welcome panel, use remove_action(): 115 * <code>remove_action( 'welcome_panel', 'wp_welcome_panel' );</code>115 * `remove_action( 'welcome_panel', 'wp_welcome_panel' );` 116 116 * 117 117 * @since 3.5.0 118 118 */ -
src/wp-admin/install-helper.php
10 10 * needing to use these functions a lot, you might experience time outs. If you 11 11 * do, then it is advised to just write the SQL code yourself. 12 12 * 13 * <code> 14 * check_column('wp_links', 'link_description', 'mediumtext'); 15 * if (check_column($wpdb->comments, 'comment_author', 'tinytext')) 16 * echo "ok\n"; 13 * check_column('wp_links', 'link_description', 'mediumtext'); 14 * if (check_column($wpdb->comments, 'comment_author', 'tinytext')) 15 * echo "ok\n"; 17 16 * 18 * $error_count = 0;19 * $tablename = $wpdb->links;20 * // check the column21 * if (!check_column($wpdb->links, 'link_description', 'varchar(255)')) {22 * $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";23 * $q = $wpdb->query($ddl);24 * }17 * $error_count = 0; 18 * $tablename = $wpdb->links; 19 * // check the column 20 * if (!check_column($wpdb->links, 'link_description', 'varchar(255)')) { 21 * $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' "; 22 * $q = $wpdb->query($ddl); 23 * } 25 24 * 26 * if (check_column($wpdb->links, 'link_description', 'varchar(255)')) { 27 * $res .= $tablename . ' - ok <br />'; 28 * } else { 29 * $res .= 'There was a problem with ' . $tablename . '<br />'; 30 * ++$error_count; 31 * } 32 * </code> 25 * if (check_column($wpdb->links, 'link_description', 'varchar(255)')) { 26 * $res .= $tablename . ' - ok <br />'; 27 * } else { 28 * $res .= 'There was a problem with ' . $tablename . '<br />'; 29 * ++$error_count; 30 * } 33 31 * 34 32 * @package WordPress 35 33 * @subpackage Plugin -
src/wp-includes/bookmark-template.php
34 34 * or 0|false. Default 1|true. 35 35 * @type int|bool $show_name Whether to show link name if available. Accepts 1|true or 36 36 * 0|false. Default 0|false. 37 * @type string $before The HTML or text to prepend to each bookmark. Default '<li>'.38 * @type string $after The HTML or text to append to each bookmark. Default '</li>'.37 * @type string $before The HTML or text to prepend to each bookmark. Defaults to opening li tag.. 38 * @type string $after The HTML or text to append to each bookmark. Defaults to closing li tag.. 39 39 * @type string $link_before The HTML or text to prepend to each bookmark inside the anchor 40 40 * tags. Default empty. 41 41 * @type string $link_after The HTML or text to append to each bookmark inside the anchor -
src/wp-includes/capabilities.php
13 13 * the name in value of the 'name' key. The capabilities are stored as an array 14 14 * in the value of the 'capability' key. 15 15 * 16 * <code> 17 * array ( 18 * 'rolename' => array ( 19 * 'name' => 'rolename', 20 * 'capabilities' => array() 21 * ) 22 * ) 23 * </code> 16 * array ( 17 * 'rolename' => array ( 18 * 'name' => 'rolename', 19 * 'capabilities' => array() 20 * ) 21 * ) 24 22 * 25 23 * @since 2.0.0 26 24 * @package WordPress -
src/wp-includes/class-http.php
1660 1660 * </ol> 1661 1661 * 1662 1662 * An example can be as seen below. 1663 * <code>1664 * define('WP_PROXY_HOST', '192.168.84.101');1665 * define('WP_PROXY_PORT', '8080');1666 * define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com, *.wordpress.org');1667 * </code>1668 1663 * 1664 * define('WP_PROXY_HOST', '192.168.84.101'); 1665 * define('WP_PROXY_PORT', '8080'); 1666 * define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com, *.wordpress.org'); 1667 * 1669 1668 * @link https://core.trac.wordpress.org/ticket/4011 Proxy support ticket in WordPress. 1670 1669 * @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_PROXY_BYPASS_HOSTS 1671 1670 * @since 2.8.0 -
src/wp-includes/class-oembed.php
291 291 } 292 292 293 293 /** 294 * Attempts to find oEmbed provider discovery <link>tags at the given URL.294 * Attempts to find oEmbed provider discovery link tags at the given URL. 295 295 * 296 * @param string $url The URL that should be inspected for discovery <link> tags. 296 * @param string $url The URL that should be inspected for discovery link tags. 297 * 297 298 * @return bool|string False on failure, otherwise the oEmbed provider URL. 298 299 */ 299 300 public function discover( $url ) { -
src/wp-includes/class-wp-editor.php
48 48 * @type string $tabfocus_elements The previous and next element ID to move the focus to 49 49 * when pressing the Tab key in TinyMCE. Defualt ':prev,:next'. 50 50 * @type string $editor_css Intended for extra styles for both Visual and Text editors. 51 * Should include <style>tags, and can use "scoped". Default empty.51 * Should include style tags, and can use "scoped". Default empty. 52 52 * @type string $editor_class Extra classes to add to the editor textarea elemen. Default empty. 53 53 * @type bool $teeny Whether to output the minimal editor config. Examples include 54 54 * Press This and the Comment editor. Default false. -
src/wp-includes/class-wp-embed.php
223 223 } 224 224 225 225 /** 226 * Filter whether to inspect the given URL for discoverable <link>tags.226 * Filter whether to inspect the given URL for discoverable link tags. 227 227 * 228 228 * @since 2.9.0 229 229 * 230 230 * @see WP_oEmbed::discover() 231 231 * 232 * @param bool $enable Whether to enable <link>tag discovery. Default false.232 * @param bool $enable Whether to enable link tag discovery. Default false. 233 233 */ 234 234 $attr['discover'] = ( apply_filters( 'embed_oembed_discover', false ) && author_can( $post_ID, 'unfiltered_html' ) ); 235 235 -
src/wp-includes/class.wp-dependencies.php
104 104 * but no source. Queuing the item queues the dependencies. 105 105 * 106 106 * Example: The extending class WP_Scripts is used to register 'scriptaculous' as a set of registered handles: 107 * <code>add( 'scriptaculous', false, array( 'scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls' ) );</code>107 * `add( 'scriptaculous', false, array( 'scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls' ) );` 108 108 * 109 109 * The src property is false. 110 110 **/ -
src/wp-includes/comment-template.php
2137 2137 * } 2138 2138 * @type string $comment_field The comment textarea field HTML. 2139 2139 * @type string $must_log_in HTML element for a 'must be logged in to comment' message. 2140 * @type string $logged_in_as HTML element for a 'logged in as <user>' message.2140 * @type string $logged_in_as HTML element for a 'logged in as [user]' message. 2141 2141 * @type string $comment_notes_before HTML element for a message displayed before the comment form. 2142 2142 * Default 'Your email address will not be published.'. 2143 2143 * @type string $comment_notes_after HTML element for a message displayed after the comment form. … … 2246 2246 <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>> 2247 2247 <?php 2248 2248 /** 2249 * Fires at the top of the comment form, inside the <form>tag.2249 * Fires at the top of the comment form, inside the form tag. 2250 2250 * 2251 2251 * @since 3.0.0 2252 2252 */ -
src/wp-includes/cron.php
349 349 * 60*60*24*7 or 604800. The value of 'interval' would then be 604800. 350 350 * 351 351 * The 'display' is the description. For the 'weekly' key, the 'display' would 352 * be <code>__('Once Weekly')</code>.352 * be `__('Once Weekly')`. 353 353 * 354 354 * For your plugin, you will be passed an array. you can easily add your 355 355 * schedule by doing the following. 356 * <code>357 * // filter parameter variable name is 'array'358 * $array['weekly'] = array(359 * 'interval' => 604800,360 * 'display' => __('Once Weekly')361 * );362 * </code>363 356 * 357 * // filter parameter variable name is 'array' 358 * $array['weekly'] = array( 359 * 'interval' => 604800, 360 * 'display' => __('Once Weekly') 361 * ); 362 * 363 * 364 364 * @since 2.1.0 365 365 * 366 366 * @return array -
src/wp-includes/deprecated.php
451 451 /** 452 452 * Gets an array of link objects associated with category $cat_name. 453 453 * 454 * <code> 455 * $links = get_linkobjectsbyname('fred'); 456 * foreach ($links as $link) { 457 * echo '<li>'.$link->link_name.'</li>'; 458 * } 459 * </code> 454 * $links = get_linkobjectsbyname('fred'); 455 * foreach ($links as $link) { 456 * echo '<li>'.$link->link_name.'</li>'; 457 * } 460 458 * 461 459 * @since 1.0.1 462 460 * @deprecated 2.1.0 … … 485 483 * Gets an array of link objects associated with category n. 486 484 * 487 485 * Usage: 488 * <code>489 * $links = get_linkobjects(1);490 * if ($links) {491 * foreach ($links as $link) {492 * echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>';493 * }494 * }495 * </code>496 486 * 487 * $links = get_linkobjects(1); 488 * if ($links) { 489 * foreach ($links as $link) { 490 * echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>'; 491 * } 492 * } 493 * 497 494 * Fields are: 498 * <ol>499 * <li>link_id</li>500 * <li>link_url</li>501 * <li>link_name</li>502 * <li>link_image</li>503 * <li>link_target</li>504 * <li>link_category</li>505 * <li>link_description</li>506 * <li>link_visible</li>507 * <li>link_owner</li>508 * <li>link_rating</li>509 * <li>link_updated</li>510 * <li>link_rel</li>511 * <li>link_notes</li>512 * </ol>513 495 * 496 * - link_id 497 * - link_url 498 * - link_name 499 * - link_image 500 * - link_target 501 * - link_category 502 * - link_description 503 * - link_visible 504 * - link_owner 505 * - link_rating 506 * - link_updated 507 * - link_rel 508 * - link_notes 509 * 510 * 514 511 * @since 1.0.1 515 512 * @deprecated 2.1.0 516 513 * @deprecated Use get_bookmarks() … … 2989 2986 /** 2990 2987 * Accepts matches array from preg_replace_callback in wpautop() or a string. 2991 2988 * 2992 * Ensures that the contents of a <<pre>>...<</pre>>HTML block are not2989 * Ensures that the contents of a `<pre>...</pre>` HTML block are not 2993 2990 * converted into paragraphs or line-breaks. 2994 2991 * 2995 2992 * @since 1.2.0 -
src/wp-includes/feed-rss2.php
11 11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; 12 12 13 13 /** 14 * Fires between the <xml> and <rss>tags in a feed.14 * Fires between the xml and rss tags in a feed. 15 15 * 16 16 * @since 4.0.0 17 17 * -
src/wp-includes/formatting.php
11 11 * Replaces common plain text characters into formatted entities 12 12 * 13 13 * As an example, 14 * <code>15 * 'cause today's effort makes it worth tomorrow's "holiday"...16 * </code>14 * 15 * 'cause today's effort makes it worth tomorrow's "holiday"... 16 * 17 17 * Becomes: 18 * <code>19 * ’cause today’s effort makes it worth tomorrow’s “holiday”…20 * </code>18 * 19 * ’cause today’s effort makes it worth tomorrow’s “holiday”… 20 * 21 21 * Code within certain html blocks are skipped. 22 22 * 23 23 * @since 0.71 … … 312 312 * @since 2.9.0 313 313 * @access private 314 314 * 315 * @param string $text Text to check. Must be a tag like <html>or [shortcode].315 * @param string $text Text to check. Must be a tag like html or [shortcode]. 316 316 * @param array $stack List of open tag elements. 317 317 * @param array $disabled_elements The tag names to match against. Spaces are not allowed in tag names. 318 318 */ … … 480 480 /** 481 481 * Don't auto-p wrap shortcodes that stand alone 482 482 * 483 * Ensures that shortcodes are not wrapped in <<p>>...<</p>>.483 * Ensures that shortcodes are not wrapped in `<p>...</p>`. 484 484 * 485 485 * @since 2.9.0 486 486 * … … 1366 1366 /** 1367 1367 * Converts a number of characters from a string. 1368 1368 * 1369 * Metadata tags <<title>> and <<category>> are removed, <<br>> and <<hr>>are1369 * Metadata tags `<title>` and `<category>` are removed, `<br>` and `<hr>` are 1370 1370 * converted into correct XHTML and Unicode characters are converted to the 1371 1371 * valid range. 1372 1372 * … … 1935 1935 * 1936 1936 * Input string must have no null characters (or eventual transformations on output chunks must not care about null characters) 1937 1937 * 1938 * <code> 1939 * _split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) == 1940 * array ( 1941 * 0 => '1234 67890 ', // 11 characters: Perfect split 1942 * 1 => '1234 ', // 5 characters: '1234 67890a' was too long 1943 * 2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long 1944 * 3 => '1234 890 ', // 11 characters: Perfect split 1945 * 4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long 1946 * 5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split 1947 * 6 => ' 45678 ', // 11 characters: Perfect split 1948 * 7 => '1 3 5 7 9', // 9 characters: End of $string 1949 * ); 1950 * </code> 1938 * _split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) == 1939 * array ( 1940 * 0 => '1234 67890 ', // 11 characters: Perfect split 1941 * 1 => '1234 ', // 5 characters: '1234 67890a' was too long 1942 * 2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long 1943 * 3 => '1234 890 ', // 11 characters: Perfect split 1944 * 4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long 1945 * 5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split 1946 * 6 => ' 45678 ', // 11 characters: Perfect split 1947 * 7 => '1 3 5 7 9', // 9 characters: End of $string 1948 * ); 1951 1949 * 1952 1950 * @since 3.4.0 1953 1951 * @access private … … 2021 2019 * 2022 2020 * Callback handler for {@link convert_smilies()}. 2023 2021 * Looks up one smiley code in the $wpsmiliestrans global array and returns an 2024 * <img>string for that smiley.2022 * `<img>` string for that smiley. 2025 2023 * 2026 2024 * @global array $wpsmiliestrans 2027 2025 * @since 2.8.0 … … 3703 3701 /** 3704 3702 * Adds a Target attribute to all links in passed content. 3705 3703 * 3706 * This function by default only applies to <a>tags, however this can be3704 * This function by default only applies to `<a>` tags, however this can be 3707 3705 * modified by the 3rd param. 3708 3706 * 3709 * <b>NOTE:</b>Any current target attributed will be stripped and replaced.3707 * NOTE: Any current target attributed will be stripped and replaced. 3710 3708 * 3711 3709 * @since 2.7.0 3712 3710 * … … 3757 3755 * Properly strip all HTML tags including script and style 3758 3756 * 3759 3757 * This differs from strip_tags() because it removes the contents of 3760 * the <script> and <style> tags. E.g. strip_tags( '<script>something</script>' )3758 * the `<script>` and `<style>` tags. E.g. `strip_tags( '<script>something</script>' )` 3761 3759 * will return 'something'. wp_strip_all_tags will return '' 3762 3760 * 3763 3761 * @since 2.9.0 -
src/wp-includes/functions.php
3445 3445 * Before this function is called, the argument must be checked for whether it was 3446 3446 * used by comparing it to its default value or evaluating whether it is empty. 3447 3447 * For example: 3448 * <code>3449 * if ( ! empty( $deprecated ) ) {3450 * _deprecated_argument( __FUNCTION__, '3.0' );3451 * }3452 * </code>3453 3448 * 3449 * if ( ! empty( $deprecated ) ) { 3450 * _deprecated_argument( __FUNCTION__, '3.0' ); 3451 * } 3452 * 3453 * 3454 3454 * There is a hook deprecated_argument_run that will be called that can be used 3455 3455 * to get the backtrace up to what file and function used the deprecated 3456 3456 * argument. -
src/wp-includes/functions.wp-scripts.php
90 90 * Works only if the script has already been added. 91 91 * 92 92 * Accepts an associative array $l10n and creates a JavaScript object: 93 * <code>94 * "$object_name" = {95 * key: value,96 * key: value,97 * ...98 * }99 * </code>100 93 * 94 * "$object_name" = { 95 * key: value, 96 * key: value, 97 * ... 98 * } 99 * 100 * 101 101 * @see WP_Dependencies::localize() 102 102 * @link https://core.trac.wordpress.org/ticket/11520 103 103 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts. -
src/wp-includes/general-template.php
511 511 * 512 512 * @since 1.5.0 513 513 * 514 * @param string $before Text to output before the link (defaults to <li>).515 * @param string $after Text to output after the link (defaults to </li>).514 * @param string $before Text to output before the link (defaults to opening li tag). 515 * @param string $after Text to output after the link (defaults to closing li tag). 516 516 * @param boolean $echo Default to echo and not return the link. 517 517 * @return string|null String when retrieving, null when displaying. 518 518 */ … … 585 585 * The deprecated blog info options are listed in the function contents. 586 586 * 587 587 * The possible values for the 'show' parameter are listed below. 588 * <ol>589 * <li><strong>url</strong> - Blog URI to homepage.</li>590 * <li><strong>wpurl</strong> - Blog URI path to WordPress.</li>591 * <li><strong>description</strong> - Secondary title</li>592 * </ol>593 588 * 589 * 1. url - Blog URI to homepage. 590 * 2. wpurl - Blog URI path to WordPress. 591 * 3. description - Secondary title 592 * 594 593 * The feed URL options can be retrieved from 'rdf_url' (RSS 0.91), 595 594 * 'rss_url' (RSS 1.0), 'rss2_url' (RSS 2.0), or 'atom_url' (Atom feed). The 596 595 * comment feeds can be retrieved from the 'comments_atom_url' (Atom comment … … 714 713 } 715 714 716 715 /** 717 * Display <title>tag with contents.716 * Display title tag with contents. 718 717 * 719 718 * @since 4.1.0 720 719 * @access private … … 1233 1232 * elements). Custom content is also supported using the before and after 1234 1233 * parameters. 1235 1234 * 1236 * The 'link' format uses the link HTML element with the <em>archives</em>1235 * The 'link' format uses the link HTML element with the archives 1237 1236 * relationship. The before and after parameters are not used. The text 1238 1237 * parameter is used to describe the link. 1239 1238 * … … 2706 2705 * Registers an admin colour scheme css file. 2707 2706 * 2708 2707 * Allows a plugin to register a new admin colour scheme. For example: 2709 * <code>2710 * wp_admin_css_color('classic', __('Classic'), admin_url("css/colors-classic.css"),2711 * array('#07273E', '#14568A', '#D54E21', '#2683AE'));2712 * </code>2713 2708 * 2709 * wp_admin_css_color('classic', __('Classic'), admin_url("css/colors-classic.css"), 2710 * array('#07273E', '#14568A', '#D54E21', '#2683AE')); 2711 * 2714 2712 * @since 2.5.0 2715 2713 * 2716 2714 * @param string $key The unique key for this theme. -
src/wp-includes/l10n.php
76 76 * 77 77 * If there is no translation, or the text domain isn't loaded, the original text is returned. 78 78 * 79 * <strong>Note:</strong>Don't use translate() directly, use __() or related functions.79 * Note: Don't use translate() directly, use __() or related functions. 80 80 * 81 81 * @since 2.2.0 82 82 * … … 364 364 * strings and use them later. 365 365 * 366 366 * Example: 367 * <code>368 * $messages = array(369 * 'post' => _n_noop('%s post', '%s posts'),370 * 'page' => _n_noop('%s pages', '%s pages')371 * );372 * ...373 * $message = $messages[$type];374 * $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count );375 * </code>376 367 * 368 * $messages = array( 369 * 'post' => _n_noop('%s post', '%s posts'), 370 * 'page' => _n_noop('%s pages', '%s pages') 371 * ); 372 * ... 373 * $message = $messages[$type]; 374 * $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count ); 375 * 377 376 * @since 2.5.0 378 377 * 379 378 * @param string $singular Single form to be i18ned. -
src/wp-includes/media.php
3100 3100 } 3101 3101 3102 3102 /** 3103 * Check the content blob for an <audio>, <video> <object>, <embed>, or <iframe>3103 * Check the content blob for an audio, video, object, embed, or iframe tags. 3104 3104 * 3105 3105 * @since 3.6.0 3106 3106 * … … 3286 3286 } 3287 3287 3288 3288 /** 3289 * Return the URls for CSS files used in an <iframe>-sandbox'd TinyMCE media view3289 * Return the URls for CSS files used in an iframe-sandbox'd TinyMCE media view 3290 3290 * 3291 3291 * @since 4.0.0 3292 3292 * -
src/wp-includes/ms-load.php
29 29 * Returns array of network plugin files to be included in global scope. 30 30 * 31 31 * The default directory is wp-content/plugins. To change the default directory 32 * manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code>32 * manually, define `WP_PLUGIN_DIR` and `WP_PLUGIN_URL` 33 33 * in wp-config.php. 34 34 * 35 35 * @access private -
src/wp-includes/nav-menu-template.php
85 85 $classes[] = 'menu-item-' . $item->ID; 86 86 87 87 /** 88 * Filter the CSS class(es) applied to a menu item's <li>.88 * Filter the CSS class(es) applied to a menu item's li element. 89 89 * 90 90 * @since 3.0.0 91 91 * @since 4.1.0 The `$depth` parameter was added. 92 92 * 93 93 * @see wp_nav_menu() 94 94 * 95 * @param array $classes The CSS classes that are applied to the menu item's <li>.95 * @param array $classes The CSS classes that are applied to the menu item's li element. 96 96 * @param object $item The current menu item. 97 97 * @param array $args An array of wp_nav_menu() arguments. 98 98 * @param int $depth Depth of menu item. Used for padding. … … 101 101 $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; 102 102 103 103 /** 104 * Filter the ID applied to a menu item's <li>.104 * Filter the ID applied to a menu item's li element. 105 105 * 106 106 * @since 3.0.1 107 107 * @since 4.1.0 The `$depth` parameter was added. 108 108 * 109 109 * @see wp_nav_menu() 110 110 * 111 * @param string $menu_id The ID that is applied to the menu item's <li>.111 * @param string $menu_id The ID that is applied to the menu item's li element. 112 112 * @param object $item The current menu item. 113 113 * @param array $args An array of wp_nav_menu() arguments. 114 114 * @param int $depth Depth of menu item. Used for padding. … … 125 125 $atts['href'] = ! empty( $item->url ) ? $item->url : ''; 126 126 127 127 /** 128 * Filter the HTML attributes applied to a menu item's <a>.128 * Filter the HTML attributes applied to a menu item's 'a' element. 129 129 * 130 130 * @since 3.6.0 131 131 * @since 4.1.0 The `$depth` parameter was added. … … 133 133 * @see wp_nav_menu() 134 134 * 135 135 * @param array $atts { 136 * The HTML attributes applied to the menu item's <a>, empty strings are ignored.136 * The HTML attributes applied to the menu item's 'a' element, empty strings are ignored. 137 137 * 138 138 * @type string $title Title attribute. 139 139 * @type string $target Target attribute. … … 164 164 /** 165 165 * Filter a menu item's starting output. 166 166 * 167 * The menu item's starting output only includes $args->before, the opening <a>,168 * the menu item's title, the closing </a>, and $args->after. Currently, there is169 * no filter for modifying the opening and closing <li>for a menu item.167 * The menu item's starting output only includes $args->before, the opening `<a>`, 168 * the menu item's title, the closing `</a>`, and $args->after. Currently, there is 169 * no filter for modifying the opening and closing `<li>` for a menu item. 170 170 * 171 171 * @since 3.0.0 172 172 * -
src/wp-includes/pluggable.php
1772 1772 * {@link https://api.wordpress.org/secret-key/1.1/salt/ secret key created} just 1773 1773 * for you. 1774 1774 * 1775 * <code> 1776 * define('AUTH_KEY', ' Xakm<o xQy rw4EMsLKM-?!T+,PFF})H4lzcW57AF0U@N@< >M%G4Yt>f`z]MON'); 1777 * define('SECURE_AUTH_KEY', 'LzJ}op]mr|6+![P}Ak:uNdJCJZd>(Hx.-Mh#Tz)pCIU#uGEnfFz|f ;;eU%/U^O~'); 1778 * define('LOGGED_IN_KEY', '|i|Ux`9<p-h$aFf(qnT:sDO:D1P^wZ$$/Ra@miTJi9G;ddp_<q}6H1)o|a +&JCM'); 1779 * define('NONCE_KEY', '%:R{[P|,s.KuMltH5}cI;/k<Gx~j!f0I)m_sIyu+&NJZ)-iO>z7X>QYR0Z_XnZ@|'); 1780 * define('AUTH_SALT', 'eZyT)-Naw]F8CwA*VaW#q*|.)g@o}||wf~@C-YSt}(dh_r6EbI#A,y|nU2{B#JBW'); 1781 * define('SECURE_AUTH_SALT', '!=oLUTXh,QW=H `}`L|9/^4-3 STz},T(w}W<I`.JjPi)<Bmf1v,HpGe}T1:Xt7n'); 1782 * define('LOGGED_IN_SALT', '+XSqHc;@Q*K_b|Z?NC[3H!!EONbh.n<+=uKR:>*c(u`g~EJBf#8u#R{mUEZrozmm'); 1783 * define('NONCE_SALT', 'h`GXHhD>SLWVfg1(1(N{;.V!MoE(SfbA_ksP@&`+AycHcAV$+?@3q+rxV{%^VyKT'); 1784 * </code> 1775 * define('AUTH_KEY', ' Xakm<o xQy rw4EMsLKM-?!T+,PFF})H4lzcW57AF0U@N@< >M%G4Yt>f`z]MON'); 1776 * define('SECURE_AUTH_KEY', 'LzJ}op]mr|6+![P}Ak:uNdJCJZd>(Hx.-Mh#Tz)pCIU#uGEnfFz|f ;;eU%/U^O~'); 1777 * define('LOGGED_IN_KEY', '|i|Ux`9<p-h$aFf(qnT:sDO:D1P^wZ$$/Ra@miTJi9G;ddp_<q}6H1)o|a +&JCM'); 1778 * define('NONCE_KEY', '%:R{[P|,s.KuMltH5}cI;/k<Gx~j!f0I)m_sIyu+&NJZ)-iO>z7X>QYR0Z_XnZ@|'); 1779 * define('AUTH_SALT', 'eZyT)-Naw]F8CwA*VaW#q*|.)g@o}||wf~@C-YSt}(dh_r6EbI#A,y|nU2{B#JBW'); 1780 * define('SECURE_AUTH_SALT', '!=oLUTXh,QW=H `}`L|9/^4-3 STz},T(w}W<I`.JjPi)<Bmf1v,HpGe}T1:Xt7n'); 1781 * define('LOGGED_IN_SALT', '+XSqHc;@Q*K_b|Z?NC[3H!!EONbh.n<+=uKR:>*c(u`g~EJBf#8u#R{mUEZrozmm'); 1782 * define('NONCE_SALT', 'h`GXHhD>SLWVfg1(1(N{;.V!MoE(SfbA_ksP@&`+AycHcAV$+?@3q+rxV{%^VyKT'); 1785 1783 * 1786 1784 * Salting passwords helps against tools which has stored hashed values of 1787 1785 * common dictionary strings. The added values makes it harder to crack. … … 2090 2088 * @param int $size Size of the avatar image 2091 2089 * @param string $default URL to a default image to use if no avatar is available 2092 2090 * @param string $alt Alternative text to use in image tag. Defaults to blank 2093 * @return string <img>tag for the user's avatar2091 * @return string img tag for the user's avatar 2094 2092 */ 2095 2093 function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) { 2096 2094 if ( ! get_option('show_avatars') ) -
src/wp-includes/plugin.php
47 47 * The following example shows how a callback function is bound to a filter hook. 48 48 * Note that $example is passed to the callback, (maybe) modified, then returned: 49 49 * 50 * <code> 51 * function example_callback( $example ) { 52 * // Maybe modify $example in some way 53 * return $example; 54 * } 55 * add_filter( 'example_filter', 'example_callback' ); 56 * </code> 50 * function example_callback( $example ) { 51 * // Maybe modify $example in some way 52 * return $example; 53 * } 54 * add_filter( 'example_filter', 'example_callback' ); 57 55 * 58 56 * Since WordPress 1.5.1, bound callbacks can take as many arguments as are 59 57 * passed as parameters in the corresponding apply_filters() call. The $accepted_args 60 58 * parameter allows for calling functions only when the number of args match. 61 59 * 62 * <strong>Note:</strong>the function will return true whether or not the callback60 * Note: the function will return true whether or not the callback 63 61 * is valid. It is up to you to take care. This is done for optimization purposes, 64 62 * so everything is as quick as possible. 65 63 * … … 148 146 * the $tag parameter. 149 147 * 150 148 * The function allows for additional arguments to be added and passed to hooks. 151 * <code>152 * // Our filter callback function153 * function example_callback( $string, $arg1, $arg2 ) {154 * // (maybe) modify $string155 * return $string;156 * }157 * add_filter( 'example_filter', 'example_callback', 10, 3 );158 149 * 159 * // Apply the filters by calling the 'example_callback' function we 160 * // "hooked" to 'example_filter' using the add_filter() function above. 161 * // - 'example_filter' is the filter hook $tag 162 * // - 'filter me' is the value being filtered 163 * // - $arg1 and $arg2 are the additional arguments passed to the callback. 164 * $value = apply_filters( 'example_filter', 'filter me', $arg1, $arg2 ); 165 * </code> 150 * // Our filter callback function 151 * function example_callback( $string, $arg1, $arg2 ) { 152 * // (maybe) modify $string 153 * return $string; 154 * } 155 * add_filter( 'example_filter', 'example_callback', 10, 3 ); 166 156 * 157 * // Apply the filters by calling the 'example_callback' function we 158 * // "hooked" to 'example_filter' using the add_filter() function above. 159 * // - 'example_filter' is the filter hook $tag 160 * // - 'filter me' is the value being filtered 161 * // - $arg1 and $arg2 are the additional arguments passed to the callback. 162 * $value = apply_filters( 'example_filter', 'filter me', $arg1, $arg2 ); 163 * 167 164 * @since 0.71 168 165 * 169 166 * @global array $wp_filter Stores all of the filters. … … 171 168 * @global array $wp_current_filter Stores the list of current filters with the current one last. 172 169 * 173 170 * @param string $tag The name of the filter hook. 174 * @param mixed $value The value on which the filters hooked to <tt>$tag</tt>are applied on.175 * @param mixed $var Additional variables passed to the functions hooked to <tt>$tag</tt>.171 * @param mixed $value The value on which the filters hooked to '$tag' are applied on. 172 * @param mixed $var Additional variables passed to the functions hooked to '$tag'. 176 173 * @return mixed The filtered value after all hooked functions are applied to it. 177 174 */ 178 175 function apply_filters( $tag, $value ) { … … 225 222 * Execute functions hooked on a specific filter hook, specifying arguments in an array. 226 223 * 227 224 * @see apply_filters() This function is identical, but the arguments passed to the 228 * functions hooked to <tt>$tag</tt>are supplied using an array.225 * functions hooked to '$tag' are supplied using an array. 229 226 * 230 227 * @since 3.0.0 231 228 * … … 434 431 /** 435 432 * Execute functions hooked on a specific action hook. 436 433 * 437 * This function invokes all functions attached to action hook $tag. It is434 * This function invokes all functions attached to action hook `$tag`. It is 438 435 * possible to create new action hooks by simply calling this function, 439 * specifying the name of the new hook using the <tt>$tag</tt>parameter.436 * specifying the name of the new hook using the `$tag` parameter. 440 437 * 441 438 * You can pass extra arguments to the hooks, much like you can with 442 439 * apply_filters(). … … 533 530 * @global array $wp_actions Increments the amount of times action was triggered. 534 531 * 535 532 * @param string $tag The name of the action to be executed. 536 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt>533 * @param array $args The arguments supplied to the functions hooked to '$tag' 537 534 * @return null Will return null if $tag does not exist in $wp_filter array 538 535 */ 539 536 function do_action_ref_array($tag, $args) { -
src/wp-includes/post-template.php
730 730 * @param string|array $args { 731 731 * Optional. Array or string of default arguments. 732 732 * 733 * @type string $before HTML or text to prepend to each link. Default is '<p> Pages:'.734 * @type string $after HTML or text to append to each link. Default is '</p>'.735 * @type string $link_before HTML or text to prepend to each link, inside the <a>tag.733 * @type string $before HTML or text to prepend to each link. 734 * @type string $after HTML or text to append to each link. 735 * @type string $link_before HTML or text to prepend to each link, inside the 'a' tag. 736 736 * Also prepended to the current item, which is not linked. Default empty. 737 * @type string $link_after HTML or text to append to each Pages link inside the <a>tag.737 * @type string $link_after HTML or text to append to each Pages link inside the 'a' tag. 738 738 * Also appended to the current item, which is not linked. Default empty. 739 739 * @type string $next_or_number Indicates whether page numbers should be used. Valid values are number 740 740 * and next. Default is 'number'. … … 1510 1510 } 1511 1511 1512 1512 /** 1513 * Wrap attachment in <<p>> elementbefore content.1513 * Wrap attachment in p tag before content. 1514 1514 * 1515 1515 * @since 2.0.0 1516 1516 * -
src/wp-includes/post.php
372 372 * referenced. 373 373 * 374 374 * The returned array has 'main', 'extended', and 'more_text' keys. Main has the text before 375 * the <code><!--more--></code>. The 'extended' key has the content after the376 * <code><!--more--></code>comment. The 'more_text' key has the custom "Read More" text.375 * the `<!--more-->`. The 'extended' key has the content after the 376 * `<!--more-->` comment. The 'more_text' key has the custom "Read More" text. 377 377 * 378 378 * @since 1.0.0 379 379 * … … 1595 1595 * - add_new - Default is Add New for both hierarchical and non-hierarchical types. 1596 1596 * When internationalizing this string, please use a gettext context 1597 1597 * {@see http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context} 1598 * matching your post type. Example: <code>_x('Add New', 'product');</code>.1598 * matching your post type. Example: `_x('Add New', 'product');`. 1599 1599 * - add_new_item - Default is Add New Post/Add New Page. 1600 1600 * - edit_item - Default is Edit Post/Edit Page. 1601 1601 * - new_item - Default is New Post/New Page. … … 1606 1606 * - parent_item_colon - This string isn't used on non-hierarchical types. In hierarchical 1607 1607 * ones the default is 'Parent Page:'. 1608 1608 * - all_items - String for the submenu. Default is All Posts/All Pages. 1609 * - menu_name - Default is the same as <code>name</code>.1609 * - menu_name - Default is the same as `name`. 1610 1610 * 1611 1611 * Above, the first default value is for non-hierarchical post types (like posts) 1612 1612 * and the second one is for hierarchical post types (like pages). -
src/wp-includes/rewrite.php
226 226 * Adding an endpoint creates extra rewrite rules for each of the matching 227 227 * places specified by the provided bitmask. For example: 228 228 * 229 * <code> 230 * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); 231 * </code> 229 * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); 232 230 * 233 231 * will add a new rewrite rule ending with "json(/(.*))?/?$" for every permastruct 234 232 * that describes a permalink (post) or page. This is rewritten to "json=$match" 235 233 * where $match is the part of the URL matched by the endpoint regex (e.g. "foo" in 236 * " <permalink>/json/foo/").234 * "[permalink]/json/foo/"). 237 235 * 238 236 * A new query var with the same name as the endpoint will also be created. 239 237 * -
src/wp-includes/shortcodes.php
21 21 * 22 22 * To apply shortcode tags to content: 23 23 * 24 * <code> 25 * $out = do_shortcode($content); 26 * </code> 24 * $out = do_shortcode($content); 27 25 * 28 26 * @link http://codex.wordpress.org/Shortcode_API 29 27 * … … 52 50 * 53 51 * Simplest example of a shortcode tag using the API: 54 52 * 55 * <code> 56 * // [footag foo="bar"] 57 * function footag_func($atts) { 58 * return "foo = {$atts[foo]}"; 59 * } 60 * add_shortcode('footag', 'footag_func'); 61 * </code> 53 * // [footag foo="bar"] 54 * function footag_func($atts) { 55 * return "foo = {$atts[foo]}"; 56 * } 57 * add_shortcode('footag', 'footag_func'); 62 58 * 63 59 * Example with nice attribute defaults: 64 60 * 65 * <code> 66 * // [bartag foo="bar"] 67 * function bartag_func($atts) { 68 * $args = shortcode_atts(array( 69 * 'foo' => 'no foo', 70 * 'baz' => 'default baz', 71 * ), $atts); 61 * // [bartag foo="bar"] 62 * function bartag_func($atts) { 63 * $args = shortcode_atts(array( 64 * 'foo' => 'no foo', 65 * 'baz' => 'default baz', 66 * ), $atts); 72 67 * 73 * return "foo = {$args['foo']}"; 74 * } 75 * add_shortcode('bartag', 'bartag_func'); 76 * </code> 68 * return "foo = {$args['foo']}"; 69 * } 70 * add_shortcode('bartag', 'bartag_func'); 77 71 * 78 72 * Example with enclosed content: 79 73 * 80 * <code> 81 * // [baztag]content[/baztag] 82 * function baztag_func($atts, $content='') { 83 * return "content = $content"; 84 * } 85 * add_shortcode('baztag', 'baztag_func'); 86 * </code> 74 * // [baztag]content[/baztag] 75 * function baztag_func($atts, $content='') { 76 * return "content = $content"; 77 * } 78 * add_shortcode('baztag', 'baztag_func'); 87 79 * 88 80 * @since 2.5.0 89 81 * -
src/wp-includes/taxonomy.php
155 155 * It appears that this function can be used to find all of the names inside of 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 162 162 * … … 440 440 * - popular_items - This string isn't used on hierarchical taxonomies. Default is Popular Tags 441 441 * - all_items - Default is All Tags/All Categories 442 442 * - 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 end443 * - parent_item_colon - The same as `parent_item`, but with colon `:ё in the end 444 444 * - edit_item - Default is Edit Tag/Edit Category 445 445 * - view_item - Default is View Tag/View Category 446 446 * - update_item - Default is Update Tag/Update Category -
src/wp-includes/wp-db.php
1172 1172 * 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. 1181 1179 * @since 2.3.0 … … 1724 1722 /** 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 1733 1729 * @see wpdb::prepare() … … 1747 1743 /** 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 1756 1750 * @see wpdb::prepare() … … 1814 1808 /** 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 1823 1815 * @see wpdb::prepare() … … 1868 1860 /** 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 1877 1867 * @see wpdb::prepare() -
src/wp-login.php
25 25 /** 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 title element. Default 'Log In'. 29 29 * @param string $message Optional. Message to display in header. Default empty. 30 30 * @param WP_Error $wp_error Optional. The error to pass. Default empty. 31 31 */ … … 537 537 </p> 538 538 <?php 539 539 /** 540 * Fires inside the lostpassword <form>tags, before the hidden fields.540 * Fires inside the lostpassword form tags, before the hidden fields. 541 541 * 542 542 * @since 2.1.0 543 543 */ -
src/wp-signup.php
19 19 */ 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 25 25 */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)