~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-includes/post-formats.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 *
37
37
 * @since 3.1.0
38
38
 *
39
 
 * @uses has_term()
40
 
 *
41
39
 * @param string|array $format Optional. The format or formats to check.
42
40
 * @param object|int $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop.
43
41
 * @return bool True if the post has any of the given formats (or any format, if no format specified), false otherwise.
108
106
 *
109
107
 * @since 3.1.0
110
108
 *
111
 
 * @uses get_post_format_strings()
112
 
 *
113
109
 * @return array The array of post format slugs.
114
110
 */
115
111
function get_post_format_slugs() {
122
118
 *
123
119
 * @since 3.1.0
124
120
 *
125
 
 * @uses get_post_format_strings()
126
 
 *
127
121
 * @param string $slug A post format slug.
128
122
 * @return string The translated post format name.
129
123
 */