Changeset 49963
- Timestamp:
- 01/15/2021 08:06:50 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-encoding.php
r49927 r49963 28 28 * @param string $supports Optional, not used. When implemented it will choose 29 29 * the right compression based on what the server supports. 30 * @return string|false False on failure.30 * @return string|false Compressed string on success, false on failure. 31 31 */ 32 32 public static function compress( $raw, $level = 9, $supports = null ) { … … 46 46 * @param string $compressed String to decompress. 47 47 * @param int $length The optional length of the compressed data. 48 * @return string|false False on failure.48 * @return string|false Decompressed string on success, false on failure. 49 49 */ 50 50 public static function decompress( $compressed, $length = null ) { … … 99 99 * 100 100 * @param string $gzData String to decompress. 101 * @return string|false False on failure.101 * @return string|false Decompressed string on success, false on failure. 102 102 */ 103 103 public static function compatible_gzinflate( $gzData ) { -
trunk/src/wp-includes/cron.php
r49929 r49963 866 866 * @param string $hook Action hook to identify the event. 867 867 * @param array $args Optional. Arguments passed to the event's callback function. 868 * @return string|false False, if no schedule. Schedule name on success.868 * @return string|false Schedule name on success, false if no schedule. 869 869 */ 870 870 function wp_get_schedule( $hook, $args = array() ) { … … 948 948 * @access private 949 949 * 950 * @return array|false C RON info array.950 * @return array|false Cron info array on success, false on failure. 951 951 */ 952 952 function _get_cron_array() { -
trunk/src/wp-includes/l10n.php
r49936 r49963 999 999 * @param string $domain Optional. Text domain. Default 'default'. 1000 1000 * @param string $path Optional. The full file path to the directory containing translation files. 1001 * @return string|false False if the script textdomain could not be loaded, the translated strings1002 * in JSON encoding otherwise.1001 * @return string|false The translated strings in JSON encoding on success, 1002 * false if the script textdomain could not be loaded. 1003 1003 */ 1004 1004 function load_script_textdomain( $handle, $domain = 'default', $path = null ) { … … 1130 1130 * @param string $handle Name of the script to register a translation domain to. 1131 1131 * @param string $domain The text domain. 1132 * @return string|false The JSON-encoded translated strings for the given script handle and text domain. False if there are none. 1132 * @return string|false The JSON-encoded translated strings for the given script handle and text domain. 1133 * False if there are none. 1133 1134 */ 1134 1135 function load_script_translations( $file, $handle, $domain ) { -
trunk/src/wp-includes/nav-menu.php
r49108 r49963 14 14 * 15 15 * @param int|string|WP_Term $menu Menu ID, slug, name, or object. 16 * @return WP_Term|false False if $menu param isn't supplied or term does not exist, menu object if successful.16 * @return WP_Term|false Menu object on success, false if $menu param isn't supplied or term does not exist. 17 17 */ 18 18 function wp_get_nav_menu_object( $menu ) { -
trunk/src/wp-includes/post.php
r49936 r49963 6224 6224 * 6225 6225 * @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`. 6226 * @return string|false False on failure. Attachment caption on success.6226 * @return string|false Attachment caption on success, false on failure. 6227 6227 */ 6228 6228 function wp_get_attachment_caption( $post_id = 0 ) { … … 6257 6257 * 6258 6258 * @param int $post_id Optional. Attachment ID. Default 0. 6259 * @return string|false False on failure. Thumbnail file path on success.6259 * @return string|false Thumbnail file path on success, false on failure. 6260 6260 */ 6261 6261 function wp_get_attachment_thumb_file( $post_id = 0 ) { … … 6297 6297 * 6298 6298 * @param int $post_id Optional. Attachment ID. Default 0. 6299 * @return string|false False on failure. Thumbnail URL on success.6299 * @return string|false Thumbnail URL on success, false on failure. 6300 6300 */ 6301 6301 function wp_get_attachment_thumb_url( $post_id = 0 ) { -
trunk/src/wp-includes/shortcodes.php
r49193 r49963 300 300 * @global array $shortcode_tags 301 301 * 302 * @param array $m Regular expression match array 303 * @return string|false False on failure.302 * @param array $m Regular expression match array. 303 * @return string|false Shortcode output on success, false on failure. 304 304 */ 305 305 function do_shortcode_tag( $m ) { -
trunk/src/wp-includes/taxonomy.php
r49947 r49963 4725 4725 * @param int $term_id Term ID. 4726 4726 * @param string $taxonomy Taxonomy name. 4727 * @return int|false False on error.4727 * @return int|false Parent term ID on success, false on failure. 4728 4728 */ 4729 4729 function wp_get_term_taxonomy_parent_id( $term_id, $taxonomy ) { -
trunk/src/wp-includes/widgets.php
r49790 r49963 880 880 * @global array $wp_registered_widgets 881 881 * 882 * @param callable|false $callback Optional, Widget callback to check. Default false. 883 * @param int|false $widget_id Optional. Widget ID. Optional, but needed for checking. Default false. 884 * @param string|false $id_base Optional. The base ID of a widget created by extending WP_Widget. Default false. 885 * @param bool $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. Default true. 886 * @return string|false False if widget is not active or id of sidebar in which the widget is active. 882 * @param callable|false $callback Optional. Widget callback to check. Default false. 883 * @param int|false $widget_id Optional. Widget ID. Optional, but needed for checking. 884 * Default false. 885 * @param string|false $id_base Optional. The base ID of a widget created by extending WP_Widget. 886 * Default false. 887 * @param bool $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. 888 * Default true. 889 * @return string|false ID of the sidebar in which the widget is active, 890 * false if the widget is not active. 887 891 */ 888 892 function is_active_widget( $callback = false, $widget_id = false, $id_base = false, $skip_inactive = true ) {
Note: See TracChangeset
for help on using the changeset viewer.