Changeset 60687
- Timestamp:
- 08/28/2025 03:06:25 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r60657 r60687 761 761 762 762 /** 763 * Retrieves post title from XML RPC XML.764 * 765 * If the title element is not part of the XML, then the default post title from766 * the $post_default_titlewill be used instead.763 * Retrieves post title from XML-RPC XML. 764 * 765 * If the `title` element is not found in the XML, the default post title 766 * from the `$post_default_title` global will be used instead. 767 767 * 768 768 * @since 0.71 … … 770 770 * @global string $post_default_title Default XML-RPC post title. 771 771 * 772 * @param string $content XML RPC XML Request content773 * @return string Post title 772 * @param string $content XML-RPC XML Request content. 773 * @return string Post title. 774 774 */ 775 775 function xmlrpc_getposttitle( $content ) { … … 784 784 785 785 /** 786 * Retrieves the post category or categories from XMLRPC XML. 787 * 788 * If the category element is not found, then the default post category will be 789 * used. The return type then would be what $post_default_category. If the 790 * category is found, then it will always be an array. 786 * Retrieves the post category or categories from XML-RPC XML. 787 * 788 * If the `category` element is not found in the XML, the default post category 789 * from the `$post_default_category` global will be used instead. 790 * The return type will then be a string. 791 * 792 * If the `category` element is found, the return type will be an array. 791 793 * 792 794 * @since 0.71 … … 794 796 * @global string $post_default_category Default XML-RPC post category. 795 797 * 796 * @param string $content XML RPC XML Request content797 * @return string |array List of categories orcategory name.798 * @param string $content XML-RPC XML Request content. 799 * @return string[]|string An array of category names or default category name. 798 800 */ 799 801 function xmlrpc_getpostcategory( $content ) { … … 809 811 810 812 /** 811 * XML RPC XML content without title and category elements.813 * XML-RPC XML content without title and category elements. 812 814 * 813 815 * @since 0.71 814 816 * 815 817 * @param string $content XML-RPC XML Request content. 816 * @return string XML RPC XML Request content without title and category elements.818 * @return string XML-RPC XML Request content without title and category elements. 817 819 */ 818 820 function xmlrpc_removepostdata( $content ) { … … 1025 1027 1026 1028 /** 1027 * Builds URL query based on an associative and,or indexed array.1028 * 1029 * This is a convenient function for easily building url queries. It sets the1030 * separator to '&' and uses_http_build_query() function.1029 * Builds a URL query based on an associative or indexed array. 1030 * 1031 * This is a convenient function for easily building URL queries. 1032 * It sets the separator to '&' and uses the _http_build_query() function. 1031 1033 * 1032 1034 * @since 2.3.0 … … 4167 4169 * Kills WordPress execution and displays XML response with an error message. 4168 4170 * 4169 * This is the handler for wp_die() when processing XML RPC requests.4171 * This is the handler for wp_die() when processing XML-RPC requests. 4170 4172 * 4171 4173 * @since 3.2.0
Note: See TracChangeset
for help on using the changeset viewer.