/var/www/wordpress/wp-admin/includes/admin.php
/var/www/wordpress/wp-admin/includes/bookmark.php
/var/www/wordpress/wp-admin/includes/class-ftp-pure.php
/var/www/wordpress/wp-admin/includes/class-ftp-sockets.php
/var/www/wordpress/wp-admin/includes/class-ftp.php
/var/www/wordpress/wp-admin/includes/class-pclzip.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-base.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpsockets.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-ssh2.php
/var/www/wordpress/wp-admin/includes/class-wp-importer.php
/var/www/wordpress/wp-admin/includes/class-wp-upgrader.php
/var/www/wordpress/wp-admin/includes/comment.php
/var/www/wordpress/wp-admin/includes/continents-cities.php
/var/www/wordpress/wp-admin/includes/dashboard.php
/var/www/wordpress/wp-admin/includes/deprecated.php
/var/www/wordpress/wp-admin/includes/export.php
/var/www/wordpress/wp-admin/includes/file.php
/var/www/wordpress/wp-admin/includes/image-edit.php
/var/www/wordpress/wp-admin/includes/image.php
/var/www/wordpress/wp-admin/includes/import.php
/var/www/wordpress/wp-admin/includes/manifest.php
/var/www/wordpress/wp-admin/includes/media.php
/var/www/wordpress/wp-admin/includes/meta-boxes.php
/var/www/wordpress/wp-admin/includes/misc.php
/var/www/wordpress/wp-admin/includes/ms-deprecated.php
/var/www/wordpress/wp-admin/includes/ms.php
/var/www/wordpress/wp-admin/includes/nav-menu.php
/var/www/wordpress/wp-admin/includes/plugin-install.php
/var/www/wordpress/wp-admin/includes/plugin.php
/var/www/wordpress/wp-admin/includes/post.php
/var/www/wordpress/wp-admin/includes/schema.php
/var/www/wordpress/wp-admin/includes/taxonomy.php
/var/www/wordpress/wp-admin/includes/template.php
/var/www/wordpress/wp-admin/includes/theme-install.php
/var/www/wordpress/wp-admin/includes/theme.php
/var/www/wordpress/wp-admin/includes/update-core.php
/var/www/wordpress/wp-admin/includes/update.php
/var/www/wordpress/wp-admin/includes/upgrade.php
/var/www/wordpress/wp-admin/includes/user.php
/var/www/wordpress/wp-admin/includes/widgets.php
/var/www/wordpress/wp-admin/js/revisions-js.php
/var/www/wordpress/wp-admin/maint/repair.php
/var/www/wordpress/wp-admin/admin-ajax.php
/var/www/wordpress/wp-admin/admin-footer.php
/var/www/wordpress/wp-admin/admin-functions.php
/var/www/wordpress/wp-admin/admin-header.php
/var/www/wordpress/wp-admin/admin-post.php
/var/www/wordpress/wp-admin/admin.php
/var/www/wordpress/wp-admin/async-upload.php
/var/www/wordpress/wp-admin/comment.php
/var/www/wordpress/wp-admin/custom-background.php
/var/www/wordpress/wp-admin/custom-header.php
/var/www/wordpress/wp-admin/edit-attachment-rows.php
/var/www/wordpress/wp-admin/edit-comments.php
/var/www/wordpress/wp-admin/edit-form-advanced.php
/var/www/wordpress/wp-admin/edit-form-comment.php
/var/www/wordpress/wp-admin/edit-link-categories.php
/var/www/wordpress/wp-admin/edit-link-category-form.php
/var/www/wordpress/wp-admin/edit-link-form.php
/var/www/wordpress/wp-admin/edit-post-rows.php
/var/www/wordpress/wp-admin/edit-tag-form.php
/var/www/wordpress/wp-admin/edit-tags.php
/var/www/wordpress/wp-admin/edit.php
/var/www/wordpress/wp-admin/export.php
/var/www/wordpress/wp-admin/gears-manifest.php
/var/www/wordpress/wp-admin/import.php
/var/www/wordpress/wp-admin/index-extra.php
/var/www/wordpress/wp-admin/index.php
/var/www/wordpress/wp-admin/install-helper.php
/var/www/wordpress/wp-admin/install.php
/var/www/wordpress/wp-admin/link-add.php
/var/www/wordpress/wp-admin/link-category.php
/var/www/wordpress/wp-admin/link-manager.php
/var/www/wordpress/wp-admin/link-parse-opml.php
/var/www/wordpress/wp-admin/link.php
/var/www/wordpress/wp-admin/load-scripts.php
/var/www/wordpress/wp-admin/load-styles.php
/var/www/wordpress/wp-admin/media-new.php
/var/www/wordpress/wp-admin/media-upload.php
/var/www/wordpress/wp-admin/media.php
/var/www/wordpress/wp-admin/menu-header.php
/var/www/wordpress/wp-admin/menu.php
/var/www/wordpress/wp-admin/moderation.php
/var/www/wordpress/wp-admin/ms-admin.php
/var/www/wordpress/wp-admin/ms-delete-site.php
/var/www/wordpress/wp-admin/ms-edit.php
/var/www/wordpress/wp-admin/ms-options.php
/var/www/wordpress/wp-admin/ms-sites.php
/var/www/wordpress/wp-admin/ms-themes.php
/var/www/wordpress/wp-admin/ms-upgrade-network.php
/var/www/wordpress/wp-admin/ms-users.php
/var/www/wordpress/wp-admin/my-sites.php
/var/www/wordpress/wp-admin/nav-menus.php
/var/www/wordpress/wp-admin/network.php
/var/www/wordpress/wp-admin/options-discussion.php
/var/www/wordpress/wp-admin/options-general.php
/var/www/wordpress/wp-admin/options-head.php
/var/www/wordpress/wp-admin/options-media.php
/var/www/wordpress/wp-admin/options-permalink.php
/var/www/wordpress/wp-admin/options-privacy.php
/var/www/wordpress/wp-admin/options-reading.php
/var/www/wordpress/wp-admin/options-writing.php
/var/www/wordpress/wp-admin/options.php
/var/www/wordpress/wp-admin/plugin-editor.php
/var/www/wordpress/wp-admin/plugin-install.php
/var/www/wordpress/wp-admin/plugins.php
/var/www/wordpress/wp-admin/post-new.php
/var/www/wordpress/wp-admin/post.php
/var/www/wordpress/wp-admin/press-this.php
/var/www/wordpress/wp-admin/profile.php
/var/www/wordpress/wp-admin/revision.php
/var/www/wordpress/wp-admin/setup-config.php
/var/www/wordpress/wp-admin/sidebar.php
/var/www/wordpress/wp-admin/theme-editor.php
/var/www/wordpress/wp-admin/theme-install.php
/var/www/wordpress/wp-admin/themes.php
/var/www/wordpress/wp-admin/tools.php
/var/www/wordpress/wp-admin/update-core.php
/var/www/wordpress/wp-admin/update.php
/var/www/wordpress/wp-admin/upgrade-functions.php
/var/www/wordpress/wp-admin/upgrade.php
/var/www/wordpress/wp-admin/upload.php
/var/www/wordpress/wp-admin/user-edit.php
/var/www/wordpress/wp-admin/user-new.php
/var/www/wordpress/wp-admin/users.php
/var/www/wordpress/wp-admin/widgets.php
/var/www/wordpress/wp-content/languages/ru_RU.php
/var/www/wordpress/wp-content/plugins/akismet/akismet.php
/var/www/wordpress/wp-content/plugins/rh/rh.php
/var/www/wordpress/wp-content/plugins/hello.php
/var/www/wordpress/wp-content/plugins/index.php
/var/www/wordpress/wp-content/themes/twentyten/404.php
/var/www/wordpress/wp-content/themes/twentyten/archive.php
/var/www/wordpress/wp-content/themes/twentyten/attachment.php
/var/www/wordpress/wp-content/themes/twentyten/author.php
/var/www/wordpress/wp-content/themes/twentyten/category.php
/var/www/wordpress/wp-content/themes/twentyten/comments.php
/var/www/wordpress/wp-content/themes/twentyten/footer.php
/var/www/wordpress/wp-content/themes/twentyten/functions.php
/var/www/wordpress/wp-content/themes/twentyten/header.php
/var/www/wordpress/wp-content/themes/twentyten/index.php
/var/www/wordpress/wp-content/themes/twentyten/loop.php
/var/www/wordpress/wp-content/themes/twentyten/onecolumn-page.php
/var/www/wordpress/wp-content/themes/twentyten/page.php
/var/www/wordpress/wp-content/themes/twentyten/search.php
/var/www/wordpress/wp-content/themes/twentyten/sidebar-footer.php
/var/www/wordpress/wp-content/themes/twentyten/sidebar.php
/var/www/wordpress/wp-content/themes/twentyten/single.php
/var/www/wordpress/wp-content/themes/twentyten/tag.php
/var/www/wordpress/wp-content/themes/index.php
/var/www/wordpress/wp-content/index.php
/var/www/wordpress/wp-includes/js/tinymce/langs/wp-langs.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/Logger.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/EnchantSpell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/PSpell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/PSpellShell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/SpellChecker.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/includes/general.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/config.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/rpc.php
/var/www/wordpress/wp-includes/js/tinymce/wp-mce-help.php
/var/www/wordpress/wp-includes/js/tinymce/wp-tinymce.php
/var/www/wordpress/wp-includes/pomo/entry.php
/var/www/wordpress/wp-includes/pomo/mo.php
/var/www/wordpress/wp-includes/pomo/po.php
/var/www/wordpress/wp-includes/pomo/streams.php
/var/www/wordpress/wp-includes/pomo/translations.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/native.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/shell.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/string.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/xdiff.php
/var/www/wordpress/wp-includes/Text/Diff/Renderer/inline.php
/var/www/wordpress/wp-includes/Text/Diff/Renderer.php
/var/www/wordpress/wp-includes/Text/Diff.php
/var/www/wordpress/wp-includes/theme-compat/comments-popup.php
/var/www/wordpress/wp-includes/theme-compat/comments.php
/var/www/wordpress/wp-includes/theme-compat/footer.php
/var/www/wordpress/wp-includes/theme-compat/header.php
/var/www/wordpress/wp-includes/theme-compat/sidebar.php
/var/www/wordpress/wp-includes/atomlib.php
/var/www/wordpress/wp-includes/author-template.php
/var/www/wordpress/wp-includes/bookmark-template.php
/var/www/wordpress/wp-includes/bookmark.php
/var/www/wordpress/wp-includes/cache.php
/var/www/wordpress/wp-includes/canonical.php
/var/www/wordpress/wp-includes/capabilities.php
/var/www/wordpress/wp-includes/category-template.php
/var/www/wordpress/wp-includes/category.php
/var/www/wordpress/wp-includes/class-feed.php
/var/www/wordpress/wp-includes/class-http.php
/var/www/wordpress/wp-includes/class-IXR.php
/var/www/wordpress/wp-includes/class-json.php
/var/www/wordpress/wp-includes/class-oembed.php
/var/www/wordpress/wp-includes/class-phpass.php
/var/www/wordpress/wp-includes/class-phpmailer.php
/var/www/wordpress/wp-includes/class-pop3.php
/var/www/wordpress/wp-includes/class-simplepie.php
/var/www/wordpress/wp-includes/class-smtp.php
/var/www/wordpress/wp-includes/class-snoopy.php
/var/www/wordpress/wp-includes/class.wp-dependencies.php
/var/www/wordpress/wp-includes/class.wp-scripts.php
/var/www/wordpress/wp-includes/class.wp-styles.php
/var/www/wordpress/wp-includes/classes.php
/var/www/wordpress/wp-includes/comment-template.php
/var/www/wordpress/wp-includes/comment.php
/var/www/wordpress/wp-includes/compat.php
/var/www/wordpress/wp-includes/cron.php
/var/www/wordpress/wp-includes/default-constants.php
/var/www/wordpress/wp-includes/default-embeds.php
/var/www/wordpress/wp-includes/default-filters.php
/var/www/wordpress/wp-includes/default-widgets.php
/var/www/wordpress/wp-includes/deprecated.php
/var/www/wordpress/wp-includes/feed-atom-comments.php
/var/www/wordpress/wp-includes/feed-atom.php
/var/www/wordpress/wp-includes/feed-rdf.php
/var/www/wordpress/wp-includes/feed-rss.php
/var/www/wordpress/wp-includes/feed-rss2-comments.php
/var/www/wordpress/wp-includes/feed-rss2.php
/var/www/wordpress/wp-includes/feed.php
/var/www/wordpress/wp-includes/formatting.php
/var/www/wordpress/wp-includes/functions.php
/var/www/wordpress/wp-includes/functions.wp-scripts.php
/var/www/wordpress/wp-includes/functions.wp-styles.php
/var/www/wordpress/wp-includes/general-template.php
/var/www/wordpress/wp-includes/http.php
/var/www/wordpress/wp-includes/kses.php
/var/www/wordpress/wp-includes/l10n.php
/var/www/wordpress/wp-includes/link-template.php
#CodeDescriptions
1<?php
2/**
3 * WordPress Link Template Functions
4 *
5 * @package WordPress
6 * @subpackage Template
7 */
8
9/**
10 * Display the permalink for the current post.
11 *
12 * @since 1.2.0
13 * @uses apply_filters() Calls 'the_permalink' filter on the permalink string.
14 */
15function the_permalink() {
16 echo apply_filters('the_permalink', get_permalink());
17}
18
19/**
20 * Retrieve trailing slash string, if blog set for adding trailing slashes.
21 *
22 * Conditionally adds a trailing slash if the permalink structure has a trailing
23 * slash, strips the trailing slash if not. The string is passed through the
24 * 'user_trailingslashit' filter. Will remove trailing slash from string, if
25 * blog is not set to have them.
26 *
27 * @since 2.2.0
28 * @uses $wp_rewrite
29 *
30 * @param $string String a URL with or without a trailing slash.
31 * @param $type_of_url String the type of URL being considered (e.g. single, category, etc) for use in the filter.
32 * @return string
33 */
34function user_trailingslashit($string, $type_of_url = '') {
35 global $wp_rewrite;
36 if ( $wp_rewrite->use_trailing_slashes )
37 $string = trailingslashit($string);
38 else
39 $string = untrailingslashit($string);
40
41 // Note that $type_of_url can be one of following:
42 // single, single_trackback, single_feed, single_paged, feed, category, page, year, month, day, paged
43 $string = apply_filters('user_trailingslashit', $string, $type_of_url);
44 return $string;
45}
46
47/**
48 * Display permalink anchor for current post.
49 *
50 * The permalink mode title will use the post title for the 'a' element 'id'
51 * attribute. The id mode uses 'post-' with the post ID for the 'id' attribute.
52 *
53 * @since 0.71
54 *
55 * @param string $mode Permalink mode can be either 'title', 'id', or default, which is 'id'.
56 */
57function permalink_anchor($mode = 'id') {
58 global $post;
59 switch ( strtolower($mode) ) {
60 case 'title':
61 $title = sanitize_title($post->post_title) . '-' . $post->ID;
62 echo '<a id="'.$title.'"></a>';
63 break;
64 case 'id':
65 default:
66 echo '<a id="post-' . $post->ID . '"></a>';
67 break;
68 }
69}
70
71/**
72 * Retrieve full permalink for current post or post ID.
73 *
74 * @since 1.0.0
75 *
76 * @param int $id Optional. Post ID.
77 * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name.
78 * @return string
79 */
80function get_permalink($id = 0, $leavename = false) {
81 $rewritecode = array(
82 '%year%',
83 '%monthnum%',
84 '%day%',
85 '%hour%',
86 '%minute%',
87 '%second%',
88 $leavename? '' : '%postname%',
89 '%post_id%',
90 '%category%',
91 '%author%',
92 $leavename? '' : '%pagename%',
93 );
94
95 if ( is_object($id) && isset($id->filter) && 'sample' == $id->filter ) {
96 $post = $id;
97 $sample = true;
98 } else {
99 $post = &get_post($id);
100 $sample = false;
101 }
102
103 if ( empty($post->ID) )
104 return false;
105
106 if ( $post->post_type == 'page' )
107 return get_page_link($post->ID, $leavename, $sample);
108 elseif ( $post->post_type == 'attachment' )
109 return get_attachment_link($post->ID);
110 elseif ( in_array($post->post_type, get_post_types( array('_builtin' => false) ) ) )
111 return get_post_permalink($post->ID, $leavename, $sample);
112
113 $permalink = get_option('permalink_structure');
114
115 $permalink = apply_filters('pre_post_link', $permalink, $post, $leavename);
116
117 if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft')) ) {
118 $unixtime = strtotime($post->post_date);
119
120 $category = '';
121 if ( strpos($permalink, '%category%') !== false ) {
122 $cats = get_the_category($post->ID);
123 if ( $cats ) {
124 usort($cats, '_usort_terms_by_ID'); // order by ID
125 $category = $cats[0]->slug;
126 if ( $parent = $cats[0]->parent )
127 $category = get_category_parents($parent, false, '/', true) . $category;
128 }
129 // show default category in permalinks, without
130 // having to assign it explicitly
131 if ( empty($category) ) {
132 $default_category = get_category( get_option( 'default_category' ) );
133 $category = is_wp_error( $default_category ) ? '' : $default_category->slug;
134 }
135 }
136
137 $author = '';
138 if ( strpos($permalink, '%author%') !== false ) {
139 $authordata = get_userdata($post->post_author);
140 $author = $authordata->user_nicename;
141 }
142
143 $date = explode(" ",date('Y m d H i s', $unixtime));
144 $rewritereplace =
145 array(
146 $date[0],
147 $date[1],
148 $date[2],
149 $date[3],
150 $date[4],
151 $date[5],
152 $post->post_name,
153 $post->ID,
154 $category,
155 $author,
156 $post->post_name,
157 );
158 $permalink = home_url( str_replace($rewritecode, $rewritereplace, $permalink) );
159 $permalink = user_trailingslashit($permalink, 'single');
160 } else { // if they're not using the fancy permalink option
161 $permalink = home_url('?p=' . $post->ID);
162 }
163 return apply_filters('post_link', $permalink, $post, $leavename);
164}
165
166/**
167 * Retrieve the permalink for a post with a custom post type.
168 *
169 * @since 3.0.0
170 *
171 * @param int $id Optional. Post ID.
172 * @param bool $leavename Optional, defaults to false. Whether to keep post name.
173 * @param bool $sample Optional, defaults to false. Is it a sample permalink.
174 * @return string
175 */
176function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
177 global $wp_rewrite;
178
179 $post = &get_post($id);
180
181 if ( is_wp_error( $post ) )
182 return $post;
183
184 $post_link = $wp_rewrite->get_extra_permastruct($post->post_type);
185
186 $slug = $post->post_name;
187
188 $draft_or_pending = in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) );
189
190 $post_type = get_post_type_object($post->post_type);
191
192 if ( !empty($post_link) && ( ( isset($post->post_status) && !$draft_or_pending ) || $sample ) ) {
193 if ( ! $leavename ) {
194 if ( $post_type->hierarchical )
195 $slug = get_page_uri($id);
196 $post_link = str_replace("%$post->post_type%", $slug, $post_link);
197 }
198 $post_link = home_url( user_trailingslashit($post_link) );
199 } else {
200 if ( $post_type->query_var && ( isset($post->post_status) && !$draft_or_pending ) )
201 $post_link = add_query_arg($post_type->query_var, $slug, '');
202 else
203 $post_link = add_query_arg(array('post_type' => $post->post_type, 'p' => $post->ID), '');
204 $post_link = home_url($post_link);
205 }
206
207 return apply_filters('post_type_link', $post_link, $post, $leavename, $sample);
208}
209
210/**
211 * Retrieve permalink from post ID.
212 *
213 * @since 1.0.0
214 *
215 * @param int $post_id Optional. Post ID.
216 * @param mixed $deprecated Not used.
217 * @return string
218 */
219function post_permalink( $post_id = 0, $deprecated = '' ) {
220 if ( !empty( $deprecated ) )
221 _deprecated_argument( __FUNCTION__, '1.3' );
222
223 return get_permalink($post_id);
224}
225
226/**
227 * Retrieve the permalink for current page or page ID.
228 *
229 * Respects page_on_front. Use this one.
230 *
231 * @since 1.5.0
232 *
233 * @param int $id Optional. Post ID.
234 * @param bool $leavename Optional, defaults to false. Whether to keep page name.
235 * @param bool $sample Optional, defaults to false. Is it a sample permalink.
236 * @return string
237 */
238function get_page_link( $id = false, $leavename = false, $sample = false ) {
239 global $post;
240
241 $id = (int) $id;
242 if ( !$id )
243 $id = (int) $post->ID;
244
245 if ( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') )
246 $link = home_url('/');
247 else
248 $link = _get_page_link( $id , $leavename, $sample );
249
250 return apply_filters('page_link', $link, $id, $sample);
251}
252
253/**
254 * Retrieve the page permalink.
255 *
256 * Ignores page_on_front. Internal use only.
257 *
258 * @since 2.1.0
259 * @access private
260 *
261 * @param int $id Optional. Post ID.
262 * @param bool $leavename Optional. Leave name.
263 * @param bool $sample Optional. Sample permalink.
264 * @return string
265 */
266function _get_page_link( $id = false, $leavename = false, $sample = false ) {
267 global $post, $wp_rewrite;
268
269 if ( !$id )
270 $id = (int) $post->ID;
271 else
272 $post = &get_post($id);
273
274 $link = $wp_rewrite->get_page_permastruct();
275
276 if ( '' != $link && ( ( isset($post->post_status) && 'draft' != $post->post_status && 'pending' != $post->post_status ) || $sample ) ) {
277 if ( ! $leavename )
278 $link = str_replace('%pagename%', get_page_uri($id), $link);
279 $link = home_url($link);
280 $link = user_trailingslashit($link, 'page');
281 } else {
282 $link = home_url("?page_id=$id");
283 }
284
285 return apply_filters( '_get_page_link', $link, $id );
286}
287
288/**
289 * Retrieve permalink for attachment.
290 *
291 * This can be used in the WordPress Loop or outside of it.
292 *
293 * @since 2.0.0
294 *
295 * @param int $id Optional. Post ID.
296 * @return string
297 */
298function get_attachment_link($id = false) {
299 global $post, $wp_rewrite;
300
301 $link = false;
302
303 if ( ! $id)
304 $id = (int) $post->ID;
305
306 $object = get_post($id);
307 if ( $wp_rewrite->using_permalinks() && ($object->post_parent > 0) && ($object->post_parent != $id) ) {
308 $parent = get_post($object->post_parent);
309 if ( 'page' == $parent->post_type )
310 $parentlink = _get_page_link( $object->post_parent ); // Ignores page_on_front
311 else
312 $parentlink = get_permalink( $object->post_parent );
313
314 if ( is_numeric($object->post_name) || false !== strpos(get_option('permalink_structure'), '%category%') )
315 $name = 'attachment/' . $object->post_name; // <permalink>/<int>/ is paged so we use the explicit attachment marker
316 else
317 $name = $object->post_name;
318
319 if ( strpos($parentlink, '?') === false )
320 $link = user_trailingslashit( trailingslashit($parentlink) . $name );
321 }
322
323 if ( ! $link )
324 $link = home_url( "/?attachment_id=$id" );
325
326 return apply_filters('attachment_link', $link, $id);
327}
328
329/**
330 * Retrieve the permalink for the year archives.
331 *
332 * @since 1.5.0
333 *
334 * @param int|bool $year False for current year or year for permalink.
335 * @return string
336 */
337function get_year_link($year) {
338 global $wp_rewrite;
339 if ( !$year )
340 $year = gmdate('Y', current_time('timestamp'));
341 $yearlink = $wp_rewrite->get_year_permastruct();
342 if ( !empty($yearlink) ) {
343 $yearlink = str_replace('%year%', $year, $yearlink);
344 return apply_filters('year_link', home_url( user_trailingslashit($yearlink, 'year') ), $year);
345 } else {
346 return apply_filters('year_link', home_url('?m=' . $year), $year);
347 }
348}
349
350/**
351 * Retrieve the permalink for the month archives with year.
352 *
353 * @since 1.0.0
354 *
355 * @param bool|int $year False for current year. Integer of year.
356 * @param bool|int $month False for current month. Integer of month.
357 * @return string
358 */
359function get_month_link($year, $month) {
360 global $wp_rewrite;
361 if ( !$year )
362 $year = gmdate('Y', current_time('timestamp'));
363 if ( !$month )
364 $month = gmdate('m', current_time('timestamp'));
365 $monthlink = $wp_rewrite->get_month_permastruct();
366 if ( !empty($monthlink) ) {
367 $monthlink = str_replace('%year%', $year, $monthlink);
368 $monthlink = str_replace('%monthnum%', zeroise(intval($month), 2), $monthlink);
369 return apply_filters('month_link', home_url( user_trailingslashit($monthlink, 'month') ), $year, $month);
370 } else {
371 return apply_filters('month_link', home_url( '?m=' . $year . zeroise($month, 2) ), $year, $month);
372 }
373}
374
375/**
376 * Retrieve the permalink for the day archives with year and month.
377 *
378 * @since 1.0.0
379 *
380 * @param bool|int $year False for current year. Integer of year.
381 * @param bool|int $month False for current month. Integer of month.
382 * @param bool|int $day False for current day. Integer of day.
383 * @return string
384 */
385function get_day_link($year, $month, $day) {
386 global $wp_rewrite;
387 if ( !$year )
388 $year = gmdate('Y', current_time('timestamp'));
389 if ( !$month )
390 $month = gmdate('m', current_time('timestamp'));
391 if ( !$day )
392 $day = gmdate('j', current_time('timestamp'));
393
394 $daylink = $wp_rewrite->get_day_permastruct();
395 if ( !empty($daylink) ) {
396 $daylink = str_replace('%year%', $year, $daylink);
397 $daylink = str_replace('%monthnum%', zeroise(intval($month), 2), $daylink);
398 $daylink = str_replace('%day%', zeroise(intval($day), 2), $daylink);
399 return apply_filters('day_link', home_url( user_trailingslashit($daylink, 'day') ), $year, $month, $day);
400 } else {
401 return apply_filters('day_link', home_url( '?m=' . $year . zeroise($month, 2) . zeroise($day, 2) ), $year, $month, $day);
402 }
403}
404
405/**
406 * Display the permalink for the feed type.
407 *
408 * @since 3.0.0
409 *
410 * @param string $anchor The link's anchor text.
411 * @param string $feed Optional, defaults to default feed. Feed type.
412 */
413function the_feed_link( $anchor, $feed = '' ) {
414 $link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';
415 echo apply_filters( 'the_feed_link', $link, $feed );
416}
417
418/**
419 * Retrieve the permalink for the feed type.
420 *
421 * @since 1.5.0
422 *
423 * @param string $feed Optional, defaults to default feed. Feed type.
424 * @return string
425 */
426function get_feed_link($feed = '') {
427 global $wp_rewrite;
428
429 $permalink = $wp_rewrite->get_feed_permastruct();
430 if ( '' != $permalink ) {
431 if ( false !== strpos($feed, 'comments_') ) {
432 $feed = str_replace('comments_', '', $feed);
433 $permalink = $wp_rewrite->get_comment_feed_permastruct();
434 }
435
436 if ( get_default_feed() == $feed )
437 $feed = '';
438
439 $permalink = str_replace('%feed%', $feed, $permalink);
440 $permalink = preg_replace('#/+#', '/', "/$permalink");
441 $output = home_url( user_trailingslashit($permalink, 'feed') );
442 } else {
443 if ( empty($feed) )
444 $feed = get_default_feed();
445
446 if ( false !== strpos($feed, 'comments_') )
447 $feed = str_replace('comments_', 'comments-', $feed);
448
449 $output = home_url("?feed={$feed}");
450 }
451
452 return apply_filters('feed_link', $output, $feed);
453}
454
455/**
456 * Retrieve the permalink for the post comments feed.
457 *
458 * @since 2.2.0
459 *
460 * @param int $post_id Optional. Post ID.
461 * @param string $feed Optional. Feed type.
462 * @return string
463 */
464function get_post_comments_feed_link($post_id = '', $feed = '') {
465 global $id;
466
467 if ( empty($post_id) )
468 $post_id = (int) $id;
469
470 if ( empty($feed) )
471 $feed = get_default_feed();
472
473 if ( '' != get_option('permalink_structure') ) {
474 if ( 'page' == get_option('show_on_front') && $post_id == get_option('page_on_front') )
475 $url = _get_page_link( $post_id );
476 else
477 $url = get_permalink($post_id);
478
479 $url = trailingslashit($url) . 'feed';
480 if ( $feed != get_default_feed() )
481 $url .= "/$feed";
482 $url = user_trailingslashit($url, 'single_feed');
483 } else {
484 $type = get_post_field('post_type', $post_id);
485 if ( 'page' == $type )
486 $url = home_url("?feed=$feed&page_id=$post_id");
487 else
488 $url = home_url("?feed=$feed&p=$post_id");
489 }
490
491 return apply_filters('post_comments_feed_link', $url);
492}
493
494/**
495 * Display the comment feed link for a post.
496 *
497 * Prints out the comment feed link for a post. Link text is placed in the
498 * anchor. If no link text is specified, default text is used. If no post ID is
499 * specified, the current post is used.
500 *
501 * @package WordPress
502 * @subpackage Feed
503 * @since 2.5.0
504 *
505 * @param string $link_text Descriptive text.
506 * @param int $post_id Optional post ID. Default to current post.
507 * @param string $feed Optional. Feed format.
508 * @return string Link to the comment feed for the current post.
509*/
510function post_comments_feed_link( $link_text = '', $post_id = '', $feed = '' ) {
511 $url = get_post_comments_feed_link($post_id, $feed);
512 if ( empty($link_text) )
513 $link_text = __('Comments Feed');
514
515 echo apply_filters( 'post_comments_feed_link_html', "<a href='$url'>$link_text</a>", $post_id, $feed );
516}
517
518/**
519 * Retrieve the feed link for a given author.
520 *
521 * Returns a link to the feed for all posts by a given author. A specific feed
522 * can be requested or left blank to get the default feed.
523 *
524 * @package WordPress
525 * @subpackage Feed
526 * @since 2.5.0
527 *
528 * @param int $author_id ID of an author.
529 * @param string $feed Optional. Feed type.
530 * @return string Link to the feed for the author specified by $author_id.
531*/
532function get_author_feed_link( $author_id, $feed = '' ) {
533 $author_id = (int) $author_id;
534 $permalink_structure = get_option('permalink_structure');
535
536 if ( empty($feed) )
537 $feed = get_default_feed();
538
539 if ( '' == $permalink_structure ) {
540 $link = home_url("?feed=$feed&author=" . $author_id);
541 } else {
542 $link = get_author_posts_url($author_id);
543 if ( $feed == get_default_feed() )
544 $feed_link = 'feed';
545 else
546 $feed_link = "feed/$feed";
547
548 $link = trailingslashit($link) . user_trailingslashit($feed_link, 'feed');
549 }
550
551 $link = apply_filters('author_feed_link', $link, $feed);
552
553 return $link;
554}
555
556/**
557 * Retrieve the feed link for a category.
558 *
559 * Returns a link to the feed for all post in a given category. A specific feed
560 * can be requested or left blank to get the default feed.
561 *
562 * @package WordPress
563 * @subpackage Feed
564 * @since 2.5.0
565 *
566 * @param int $cat_id ID of a category.
567 * @param string $feed Optional. Feed type.
568 * @return string Link to the feed for the category specified by $cat_id.
569*/
570function get_category_feed_link($cat_id, $feed = '') {
571 return get_term_feed_link($cat_id, 'category', $feed);
572}
573
574/**
575 * Retrieve the feed link for a taxonomy.
576 *
577 * Returns a link to the feed for all post in a given term. A specific feed
578 * can be requested or left blank to get the default feed.
579 *
580 * @since 3.0
581 *
582 * @param int $term_id ID of a category.
583 * @param string $taxonomy Optional. Taxonomy of $term_id
584 * @param string $feed Optional. Feed type.
585 * @return string Link to the feed for the taxonomy specified by $term_id and $taxonomy.
586*/
587function get_term_feed_link( $term_id, $taxonomy = 'category', $feed = '' ) {
588 global $wp_rewrite;
589
590 $term_id = ( int ) $term_id;
591
592 $term = get_term( $term_id, $taxonomy );
593
594 if ( empty( $term ) || is_wp_error( $term ) )
595 return false;
596
597 if ( empty( $feed ) )
598 $feed = get_default_feed();
599
600 $permalink_structure = get_option( 'permalink_structure' );
601
602 if ( '' == $permalink_structure ) {
603 if ( 'category' == $taxonomy ) {
604 $link = home_url("?feed=$feed&cat=$term_id");
605 }
606 elseif ( 'post_tag' == $taxonomy ) {
607 $link = home_url("?feed=$feed&tag=$term->slug");
608 } else {
609 $t = get_taxonomy( $taxonomy );
610 $link = home_url("?feed=$feed&$t->query_var=$term->slug");
611 }
612 } else {
613 $link = get_term_link( $term_id, $term->taxonomy );
614 if ( $feed == get_default_feed() )
615 $feed_link = 'feed';
616 else
617 $feed_link = "feed/$feed";
618
619 $link = trailingslashit( $link ) . user_trailingslashit( $feed_link, 'feed' );
620 }
621
622 if ( 'category' == $taxonomy )
623 $link = apply_filters( 'category_feed_link', $link, $feed );
624 elseif ( 'post_tag' == $taxonomy )
625 $link = apply_filters( 'category_feed_link', $link, $feed );
626 else
627 $link = apply_filters( 'taxonomy_feed_link', $link, $feed, $taxonomy );
628
629
630 return $link;
631}
632
633/**
634 * Retrieve permalink for feed of tag.
635 *
636 * @since 2.3.0
637 *
638 * @param int $tag_id Tag ID.
639 * @param string $feed Optional. Feed type.
640 * @return string
641 */
642function get_tag_feed_link($tag_id, $feed = '') {
643 return get_term_feed_link($tag_id, 'post_tag', $feed);
644}
645
646/**
647 * Retrieve edit tag link.
648 *
649 * @since 2.7.0
650 *
651 * @param int $tag_id Tag ID
652 * @return string
653 */
654function get_edit_tag_link( $tag_id = 0, $taxonomy = 'post_tag' ) {
655 global $post_type;
656 $tax = get_taxonomy($taxonomy);
657 if ( !current_user_can($tax->cap->edit_terms) )
658 return;
659
660 $tag = get_term($tag_id, $taxonomy);
661
662 $location = admin_url('edit-tags.php?action=edit&taxonomy=' . $taxonomy . '&' . (!empty($post_type) ? 'post_type=' . $post_type .'&' : '') .'tag_ID=' . $tag->term_id);
663 return apply_filters( 'get_edit_tag_link', $location );
664}
665
666/**
667 * Display or retrieve edit tag link with formatting.
668 *
669 * @since 2.7.0
670 *
671 * @param string $link Optional. Anchor text.
672 * @param string $before Optional. Display before edit link.
673 * @param string $after Optional. Display after edit link.
674 * @param int|object $tag Tag object or ID
675 * @return string|null HTML content, if $echo is set to false.
676 */
677function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
678 $tax = get_taxonomy('post_tag');
679 if ( !current_user_can($tax->cap->edit_terms) )
680 return;
681
682 $tag = get_term($tag, 'post_tag');
683
684 if ( empty($link) )
685 $link = __('Edit This');
686
687 $link = '<a href="' . get_edit_tag_link( $tag->term_id ) . '" title="' . __( 'Edit Tag' ) . '">' . $link . '</a>';
688 echo $before . apply_filters( 'edit_tag_link', $link, $tag->term_id ) . $after;//Cross Site Scripting
689}
690
691/**
692* Retrieve permalink for search.
693*
694* @since 3.0.0
695* @param string $query Optional. The query string to use. If empty the current query is used.
696* @return string
697*/
698function get_search_link( $query = '' ) {
699 global $wp_rewrite;
700
701 if ( empty($query) )
702 $search = get_search_query( false );
703 else
704 $search = stripslashes($query);
705
706 $permastruct = $wp_rewrite->get_search_permastruct();
707
708 if ( empty( $permastruct ) ) {
709 $link = home_url('?s=' . urlencode($search) );
710 } else {
711 $search = urlencode($search);
712 $search = str_replace('%2F', '/', $search); // %2F(/) is not valid within a URL, send it unencoded.
713 $link = str_replace( '%search%', $search, $permastruct );
714 $link = home_url( user_trailingslashit( $link, 'search' ) );
715 }
716
717 return apply_filters( 'search_link', $link, $search );
718}
719
720/**
721 * Retrieve the permalink for the feed of the search results.
722 *
723 * @since 2.5.0
724 *
725 * @param string $search_query Optional. Search query.
726 * @param string $feed Optional. Feed type.
727 * @return string
728 */
729function get_search_feed_link($search_query = '', $feed = '') {
730 global $wp_rewrite;
731 $link = get_search_link($search_query);
732
733 if ( empty($feed) )
734 $feed = get_default_feed();
735
736 $permastruct = $wp_rewrite->get_search_permastruct();
737
738 if ( empty($permastruct) ) {
739 $link = add_query_arg('feed', $feed, $link);
740 } else {
741 $link = trailingslashit($link);
742 $link .= "feed/$feed/";
743 }
744
745 $link = apply_filters('search_feed_link', $link, $feed, 'posts');
746
747 return $link;
748}
749
750/**
751 * Retrieve the permalink for the comments feed of the search results.
752 *
753 * @since 2.5.0
754 *
755 * @param string $search_query Optional. Search query.
756 * @param string $feed Optional. Feed type.
757 * @return string
758 */
759function get_search_comments_feed_link($search_query = '', $feed = '') {
760 global $wp_rewrite;
761
762 if ( empty($feed) )
763 $feed = get_default_feed();
764
765 $link = get_search_feed_link($search_query, $feed);
766
767 $permastruct = $wp_rewrite->get_search_permastruct();
768
769 if ( empty($permastruct) )
770 $link = add_query_arg('feed', 'comments-' . $feed, $link);
771 else
772 $link = add_query_arg('withcomments', 1, $link);
773
774 $link = apply_filters('search_feed_link', $link, $feed, 'comments');
775
776 return $link;
777}
778
779/**
780 * Retrieve edit posts link for post.
781 *
782 * Can be used within the WordPress loop or outside of it. Can be used with
783 * pages, posts, attachments, and revisions.
784 *
785 * @since 2.3.0
786 *
787 * @param int $id Optional. Post ID.
788 * @param string $context Optional, default to display. How to write the '&', defaults to '&'.
789 * @return string
790 */
791function get_edit_post_link( $id = 0, $context = 'display' ) {
792 if ( !$post = &get_post( $id ) )
793 return;
794
795 if ( 'display' == $context )
796 $action = '&action=edit';
797 else
798 $action = '&action=edit';
799
800 $post_type_object = get_post_type_object( $post->post_type );
801 if ( !$post_type_object )
802 return;
803
804 if ( !current_user_can( $post_type_object->cap->edit_post, $post->ID ) )
805 return;
806
807 return apply_filters( 'get_edit_post_link', admin_url( sprintf($post_type_object->_edit_link . $action, $post->ID) ), $post->ID, $context );//Cross Site Scripting
808}
809
810/**
811 * Display edit post link for post.
812 *
813 * @since 1.0.0
814 *
815 * @param string $link Optional. Anchor text.
816 * @param string $before Optional. Display before edit link.
817 * @param string $after Optional. Display after edit link.
818 * @param int $id Optional. Post ID.
819 */
820function edit_post_link( $link = null, $before = '', $after = '', $id = 0 ) {
821 if ( !$post = &get_post( $id ) )
822 return;
823
824 if ( !$url = get_edit_post_link( $post->ID ) )
825 return;
826
827 if ( null === $link )
828 $link = __('Edit This');
829
830 $post_type_obj = get_post_type_object( $post->post_type );
831 $link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr( $post_type_obj->labels->edit_item ) . '">' . $link . '</a>';
832 echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after;//Cross Site Scripting
833}
834
835/**
836 * Retrieve delete posts link for post.
837 *
838 * Can be used within the WordPress loop or outside of it, with any post type.
839 *
840 * @since 2.9.0
841 *
842 * @param int $id Optional. Post ID.
843 * @param string $deprecated Not used.
844 * @param bool $force_delete Whether to bypass trash and force deletion. Default is false.
845 * @return string
846 */
847function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) {
848 if ( ! empty( $deprecated ) )
849 _deprecated_argument( __FUNCTION__, '3.0.0' );
850
851 if ( !$post = &get_post( $id ) )
852 return;
853
854 $post_type_object = get_post_type_object( $post->post_type );
855 if ( !$post_type_object )
856 return;
857
858 if ( !current_user_can( $post_type_object->cap->delete_post, $post->ID ) )
859 return;
860
861 $action = ( $force_delete || !EMPTY_TRASH_DAYS ) ? 'delete' : 'trash';
862
863 $delete_link = add_query_arg( 'action', $action, admin_url( sprintf( $post_type_object->_edit_link, $post->ID ) ) );//Cross Site Scripting
864
865 return apply_filters( 'get_delete_post_link', wp_nonce_url( $delete_link, "$action-{$post->post_type}_{$post->ID}" ), $post->ID, $force_delete );
866}
867
868/**
869 * Retrieve edit comment link.
870 *
871 * @since 2.3.0
872 *
873 * @param int $comment_id Optional. Comment ID.
874 * @return string
875 */
876function get_edit_comment_link( $comment_id = 0 ) {
877 $comment = &get_comment( $comment_id );
878 $post = &get_post( $comment->comment_post_ID );
879
880 if ( $post->post_type == 'page' ) {
881 if ( !current_user_can( 'edit_page', $post->ID ) )
882 return;
883 } else {
884 if ( !current_user_can( 'edit_post', $post->ID ) )
885 return;
886 }
887
888 $location = admin_url('comment.php?action=editcomment&c=') . $comment->comment_ID;
889 return apply_filters( 'get_edit_comment_link', $location );
890}
891
892/**
893 * Display or retrieve edit comment link with formatting.
894 *
895 * @since 1.0.0
896 *
897 * @param string $link Optional. Anchor text.
898 * @param string $before Optional. Display before edit link.
899 * @param string $after Optional. Display after edit link.
900 * @return string|null HTML content, if $echo is set to false.
901 */
902function edit_comment_link( $link = null, $before = '', $after = '' ) {
903 global $comment, $post;
904
905 if ( $post->post_type == 'page' ) {
906 if ( !current_user_can( 'edit_page', $post->ID ) )
907 return;
908 } else {
909 if ( !current_user_can( 'edit_post', $post->ID ) )
910 return;
911 }
912
913 if ( null === $link )
914 $link = __('Edit This');
915
916 $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
917 echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;//Cross Site Scripting
918}
919
920/**
921 * Display edit bookmark (literally a URL external to blog) link.
922 *
923 * @since 2.7.0
924 *
925 * @param int $link Optional. Bookmark ID.
926 * @return string
927 */
928function get_edit_bookmark_link( $link = 0 ) {
929 $link = get_bookmark( $link );
930
931 if ( !current_user_can('manage_links') )
932 return;
933
934 $location = admin_url('link.php?action=edit&link_id=') . $link->link_id;
935 return apply_filters( 'get_edit_bookmark_link', $location, $link->link_id );
936}
937
938/**
939 * Display edit bookmark (literally a URL external to blog) link anchor content.
940 *
941 * @since 2.7.0
942 *
943 * @param string $link Optional. Anchor text.
944 * @param string $before Optional. Display before edit link.
945 * @param string $after Optional. Display after edit link.
946 * @param int $bookmark Optional. Bookmark ID.
947 */
948function edit_bookmark_link( $link = '', $before = '', $after = '', $bookmark = null ) {
949 $bookmark = get_bookmark($bookmark);
950
951 if ( !current_user_can('manage_links') )
952 return;
953
954 if ( empty($link) )
955 $link = __('Edit This');
956
957 $link = '<a href="' . get_edit_bookmark_link( $link ) . '" title="' . __( 'Edit Link' ) . '">' . $link . '</a>';
958 echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after;//Cross Site Scripting
959}
960
961// Navigation links
962
963/**
964 * Retrieve previous post link that is adjacent to current post.
965 *
966 * @since 1.5.0
967 *
968 * @param bool $in_same_cat Optional. Whether link should be in same category.
969 * @param string $excluded_categories Optional. Excluded categories IDs.
970 * @return string
971 */
972function get_previous_post($in_same_cat = false, $excluded_categories = '') {
973 return get_adjacent_post($in_same_cat, $excluded_categories);
974}
975
976/**
977 * Retrieve next post link that is adjacent to current post.
978 *
979 * @since 1.5.0
980 *
981 * @param bool $in_same_cat Optional. Whether link should be in same category.
982 * @param string $excluded_categories Optional. Excluded categories IDs.
983 * @return string
984 */
985function get_next_post($in_same_cat = false, $excluded_categories = '') {
986 return get_adjacent_post($in_same_cat, $excluded_categories, false);
987}
988
989/**
990 * Retrieve adjacent post link.
991 *
992 * Can either be next or previous post link.
993 *
994 * @since 2.5.0
995 *
996 * @param bool $in_same_cat Optional. Whether link should be in same category.
997 * @param string $excluded_categories Optional. Excluded categories IDs.
998 * @param bool $previous Optional. Whether to retrieve previous post.
999 * @return string
1000 */
/var/www/wordpress/wp-includes/load.php
/var/www/wordpress/wp-includes/locale.php
/var/www/wordpress/wp-includes/media.php
/var/www/wordpress/wp-includes/meta.php
/var/www/wordpress/wp-includes/ms-blogs.php
/var/www/wordpress/wp-includes/ms-default-constants.php
/var/www/wordpress/wp-includes/ms-default-filters.php
/var/www/wordpress/wp-includes/ms-deprecated.php
/var/www/wordpress/wp-includes/ms-files.php
/var/www/wordpress/wp-includes/ms-functions.php
/var/www/wordpress/wp-includes/ms-load.php
/var/www/wordpress/wp-includes/ms-settings.php
/var/www/wordpress/wp-includes/nav-menu-template.php
/var/www/wordpress/wp-includes/nav-menu.php
/var/www/wordpress/wp-includes/pluggable-deprecated.php
/var/www/wordpress/wp-includes/pluggable.php
/var/www/wordpress/wp-includes/plugin.php
/var/www/wordpress/wp-includes/post-template.php
/var/www/wordpress/wp-includes/post-thumbnail-template.php
/var/www/wordpress/wp-includes/post.php
/var/www/wordpress/wp-includes/query.php
/var/www/wordpress/wp-includes/registration-functions.php
/var/www/wordpress/wp-includes/registration.php
/var/www/wordpress/wp-includes/rewrite.php
/var/www/wordpress/wp-includes/rss-functions.php
/var/www/wordpress/wp-includes/rss.php
/var/www/wordpress/wp-includes/script-loader.php
/var/www/wordpress/wp-includes/shortcodes.php
/var/www/wordpress/wp-includes/taxonomy.php
/var/www/wordpress/wp-includes/template-loader.php
/var/www/wordpress/wp-includes/theme.php
/var/www/wordpress/wp-includes/update.php
/var/www/wordpress/wp-includes/user.php
/var/www/wordpress/wp-includes/vars.php
/var/www/wordpress/wp-includes/version.php
/var/www/wordpress/wp-includes/widgets.php
/var/www/wordpress/wp-includes/wp-db.php
/var/www/wordpress/wp-includes/wp-diff.php
/var/www/wordpress/index.php
/var/www/wordpress/wp-activate.php
/var/www/wordpress/wp-app.php
/var/www/wordpress/wp-atom.php
/var/www/wordpress/wp-blog-header.php
/var/www/wordpress/wp-comments-post.php
/var/www/wordpress/wp-commentsrss2.php
/var/www/wordpress/wp-config-sample.php
/var/www/wordpress/wp-cron.php
/var/www/wordpress/wp-feed.php
/var/www/wordpress/wp-links-opml.php
/var/www/wordpress/wp-load.php
/var/www/wordpress/wp-login.php
/var/www/wordpress/wp-mail.php
/var/www/wordpress/wp-pass.php
/var/www/wordpress/wp-rdf.php
/var/www/wordpress/wp-register.php
/var/www/wordpress/wp-rss.php
/var/www/wordpress/wp-rss2.php
/var/www/wordpress/wp-settings.php
/var/www/wordpress/wp-signup.php
/var/www/wordpress/wp-trackback.php
/var/www/wordpress/xmlrpc.php