Changeset 32568
- Timestamp:
- 05/24/2015 05:39:47 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r32538 r32568 71 71 * @since 2.8.0 72 72 * 73 * @return string| nullThe author's display name.73 * @return string|void The author's display name. 74 74 */ 75 75 function get_the_modified_author() { … … 333 333 * @type string $exclude An array, comma-, or space-separated list of author IDs to include. Default empty. 334 334 * } 335 * @return null|string The output, if echo is set to false. Otherwise null.335 * @return string|void The output, if echo is set to false. 336 336 */ 337 337 function wp_list_authors( $args = '' ) { -
trunk/src/wp-includes/bookmark-template.php
r30536 r32568 196 196 * Default 'ASC'. 197 197 * } 198 * @return string| nullWill only return if echo option is set to not echo. Default is not return anything.198 * @return string|void Will only return if echo option is set to not echo. Default is not return anything. 199 199 */ 200 200 function wp_list_bookmarks( $args = '' ) { -
trunk/src/wp-includes/canonical.php
r32540 r32568 37 37 * figure if redirect is needed. 38 38 * @param bool $do_redirect Optional. Redirect to the new URL. 39 * @return null|string Null, if redirect not needed, or the string of the URL39 * @return string|void The string of the URL, if redirect needed. 40 40 */ 41 41 function redirect_canonical( $requested_url = null, $do_redirect = true ) { -
trunk/src/wp-includes/capabilities.php
r32548 r32568 177 177 * @param string $display_name Role display name. 178 178 * @param array $capabilities List of role capabilities in the above format. 179 * @return WP_Role| null WP_Role object if role is added, null if already exists.179 * @return WP_Role|void WP_Role object, if role is added. 180 180 */ 181 181 public function add_role( $role, $display_name, $capabilities = array() ) { -
trunk/src/wp-includes/category-template.php
r32542 r32568 632 632 * 633 633 * @param array|string|null $args Optional. Override default arguments. 634 * @return null|array Generated tag cloud, only if no failures and 'array' is set for the 'format' argument.634 * @return void|array Generated tag cloud, only if no failures and 'array' is set for the 'format' argument. 635 635 * Otherwise, this function outputs the tag cloud. 636 636 */ … … 1406 1406 * @param string $sep Optional. Separate items using this. 1407 1407 * @param string $after Optional. After list. 1408 * @return false| null False on WordPress error. Returns null when displaying.1408 * @return false|void False on WordPress error. 1409 1409 */ 1410 1410 function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) { -
trunk/src/wp-includes/category.php
r32532 r32568 100 100 * @param bool $full_match Optional. Whether full path should be matched. 101 101 * @param string $output Optional. Constant OBJECT, ARRAY_A, or ARRAY_N 102 * @return null|object|array|WP_Error Null on failure.Type is based on $output value.102 * @return object|array|WP_Error|void Type is based on $output value. 103 103 */ 104 104 function get_category_by_path( $category_path, $full_match = true, $output = OBJECT ) { -
trunk/src/wp-includes/class-wp-admin-bar.php
r32534 r32568 15 15 /** 16 16 * @param string $name 17 * @return string|array| null17 * @return string|array|void 18 18 */ 19 19 public function __get( $name ) { … … 174 174 /** 175 175 * @param string $id 176 * @return object| null176 * @return object|void 177 177 */ 178 178 final protected function _get_node( $id ) { … … 188 188 189 189 /** 190 * @return array| null190 * @return array|void 191 191 */ 192 192 final public function get_nodes() { … … 201 201 202 202 /** 203 * @return array| null203 * @return array|void 204 204 */ 205 205 final protected function _get_nodes() { … … 253 253 254 254 /** 255 * @return object| null255 * @return object|void 256 256 */ 257 257 final protected function _bind() { -
trunk/src/wp-includes/class-wp-customize-control.php
r32542 r32568 1131 1131 1132 1132 /** 1133 * @return string| null1133 * @return string|void 1134 1134 */ 1135 1135 public function get_current_image_src() { -
trunk/src/wp-includes/class-wp-customize-manager.php
r32535 r32568 900 900 * 901 901 * @param string $id Customize Setting ID. 902 * @return WP_Customize_Setting| nullThe setting, if set.902 * @return WP_Customize_Setting|void The setting, if set. 903 903 */ 904 904 public function get_setting( $id ) { … … 945 945 * 946 946 * @param string $id Panel ID to get. 947 * @return WP_Customize_Panel| nullRequested panel instance, if set.947 * @return WP_Customize_Panel|void Requested panel instance, if set. 948 948 */ 949 949 public function get_panel( $id ) { … … 988 988 * 989 989 * @param string $id Section ID. 990 * @return WP_Customize_Section| nullThe section, if set.990 * @return WP_Customize_Section|void The section, if set. 991 991 */ 992 992 public function get_section( $id ) { … … 1030 1030 * 1031 1031 * @param string $id ID of the control. 1032 * @return WP_Customize_Control| nullThe control object, if set.1032 * @return WP_Customize_Control|void The control object, if set. 1033 1033 */ 1034 1034 public function get_control( $id ) { … … 1533 1533 * Sanitizes a hex color. 1534 1534 * 1535 * Returns either '', a 3 or 6 digit hex color (with #), or n ull.1535 * Returns either '', a 3 or 6 digit hex color (with #), or nothing. 1536 1536 * For sanitizing values without a #, see sanitize_hex_color_no_hash(). 1537 1537 * … … 1539 1539 * 1540 1540 * @param string $color 1541 * @return string| null1541 * @return string|void 1542 1542 */ 1543 1543 function sanitize_hex_color( $color ) { -
trunk/src/wp-includes/class-wp-customize-setting.php
r32542 r32568 130 130 * @access public 131 131 * 132 * @return bool| null Returns null if preview() has not been called yet.132 * @return bool|void If preview() has been called. 133 133 */ 134 134 public function is_current_blog_previewed() { … … 236 236 * @since 3.4.0 237 237 * 238 * @return false| nullFalse if cap check fails or value isn't set.238 * @return false|void False if cap check fails or value isn't set. 239 239 */ 240 240 final public function save() { … … 462 462 * @param $keys 463 463 * @param bool $create Default is false. 464 * @return null|arrayKeys are 'root', 'node', and 'key'.464 * @return array|void Keys are 'root', 'node', and 'key'. 465 465 */ 466 466 final protected function multidimensional( &$root, $keys, $create = false ) { -
trunk/src/wp-includes/class-wp-customize-widgets.php
r32542 r32568 110 110 * 111 111 * @param $setting_id Setting ID. 112 * @return string| null Setting type. Null otherwise.112 * @return string|void Setting type. 113 113 */ 114 114 protected function get_setting_type( $setting_id ) { … … 1137 1137 * 1138 1138 * @param array $value Widget instance to sanitize. 1139 * @return array| nullSanitized widget instance.1139 * @return array|void Sanitized widget instance. 1140 1140 */ 1141 1141 public function sanitize_widget_instance( $value ) { -
trunk/src/wp-includes/class-wp-error.php
r31188 r32568 145 145 * 146 146 * @param string|int $code Optional. Error code. 147 * @return mixed Null, if no errors.147 * @return mixed Error data, if it exists. 148 148 */ 149 149 public function get_error_data($code = '') { … … 153 153 if ( isset($this->error_data[$code]) ) 154 154 return $this->error_data[$code]; 155 return null;156 155 } 157 156 -
trunk/src/wp-includes/class-wp-theme.php
r32550 r32568 185 185 * @param string $theme_dir Directory of the theme within the theme_root. 186 186 * @param string $theme_root Theme root. 187 * @param WP_Error| null$_child If this theme is a parent theme, the child may be passed for validation purposes.187 * @param WP_Error|void $_child If this theme is a parent theme, the child may be passed for validation purposes. 188 188 */ 189 189 public function __construct( $theme_dir, $theme_root, $_child = null ) { -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r32565 r32568 292 292 * 293 293 * @param string|array $data Escape single string or array of strings. 294 * @return string| nullReturns with string is passed, alters by-reference294 * @return string|void Returns with string is passed, alters by-reference 295 295 * when array is passed. 296 296 */ -
trunk/src/wp-includes/class.wp-scripts.php
r32566 r32568 68 68 * @param string $handle 69 69 * @param bool $echo 70 * @return bool|string| null70 * @return bool|string|void 71 71 */ 72 72 public function print_scripts_l10n( $handle, $echo = true ) { … … 78 78 * @param string $handle 79 79 * @param bool $echo 80 * @return bool|string| null80 * @return bool|string|void 81 81 */ 82 82 public function print_extra_script( $handle, $echo = true ) { -
trunk/src/wp-includes/comment-template.php
r32567 r32568 389 389 * @param bool $echo Optional. Whether to cho or return the output. 390 390 * Default true. 391 * @return string| null391 * @return string|void 392 392 */ 393 393 function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) { … … 1143 1143 * @param bool $separate_comments Optional. Whether to separate the comments by comment type. 1144 1144 * Default false. 1145 * @return null Returns null if no comments appear.1146 1145 */ 1147 1146 function comments_template( $file = '/comments.php', $separate_comments = false ) { … … 1288 1287 * @param string $none Optional. String to display when comments have been turned off. 1289 1288 * Default false. 1290 * @return null Returns null on single posts and pages.1291 1289 */ 1292 1290 function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) { … … 1387 1385 * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. 1388 1386 * Default current post. 1389 * @return null|false|string Link to show comment form, if successful. False, if comments are closed.1387 * @return void|false|string Link to show comment form, if successful. False, if comments are closed. 1390 1388 */ 1391 1389 function get_comment_reply_link( $args = array(), $comment = null, $post = null ) { … … 1790 1788 * @param array $args An array of arguments. 1791 1789 * @param string $output Passed by reference. Used to append additional content. 1792 * @return null Null on failure with no changes to parameters.1793 1790 */ 1794 1791 public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { 1795 1796 1792 if ( !$element ) 1797 1793 return;
Note: See TracChangeset
for help on using the changeset viewer.