/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
#CodeDescriptions
1<?php
2/**
3 * Link/Bookmark API
4 *
5 * @package WordPress
6 * @subpackage Bookmark
7 */
8
9/**
10 * Retrieve Bookmark data based on ID
11 *
12 * @since 2.1.0
13 * @uses $wpdb Database Object
14 *
15 * @param int $bookmark_id
16 * @param string $output Optional. Either OBJECT, ARRAY_N, or ARRAY_A constant
17 * @param string $filter Optional, default is 'raw'.
18 * @return array|object Type returned depends on $output value.
19 */
20function get_bookmark($bookmark, $output = OBJECT, $filter = 'raw') {
21 global $wpdb;
22
23 if ( empty($bookmark) ) {
24 if ( isset($GLOBALS['link']) )
25 $_bookmark = & $GLOBALS['link'];
26 else
27 $_bookmark = null;
28 } elseif ( is_object($bookmark) ) {
29 wp_cache_add($bookmark->link_id, $bookmark, 'bookmark');
30 $_bookmark = $bookmark;
31 } else {
32 if ( isset($GLOBALS['link']) && ($GLOBALS['link']->link_id == $bookmark) ) {
33 $_bookmark = & $GLOBALS['link'];
34 } elseif ( ! $_bookmark = wp_cache_get($bookmark, 'bookmark') ) {
35 $_bookmark = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark));
36 $_bookmark->link_category = array_unique( wp_get_object_terms($_bookmark->link_id, 'link_category', array('fields' => 'ids')) );
37 wp_cache_add($_bookmark->link_id, $_bookmark, 'bookmark');
38 }
39 }
40
41 $_bookmark = sanitize_bookmark($_bookmark, $filter);
42
43 if ( $output == OBJECT ) {
44 return $_bookmark;
45 } elseif ( $output == ARRAY_A ) {
46 return get_object_vars($_bookmark);
47 } elseif ( $output == ARRAY_N ) {
48 return array_values(get_object_vars($_bookmark));
49 } else {
50 return $_bookmark;
51 }
52}
53
54/**
55 * Retrieve single bookmark data item or field.
56 *
57 * @since 2.3.0
58 * @uses get_bookmark() Gets bookmark object using $bookmark as ID
59 * @uses sanitize_bookmark_field() Sanitizes Bookmark field based on $context.
60 *
61 * @param string $field The name of the data field to return
62 * @param int $bookmark The bookmark ID to get field
63 * @param string $context Optional. The context of how the field will be used.
64 * @return string
65 */
66function get_bookmark_field( $field, $bookmark, $context = 'display' ) {
67 $bookmark = (int) $bookmark;
68 $bookmark = get_bookmark( $bookmark );
69
70 if ( is_wp_error($bookmark) )
71 return $bookmark;
72
73 if ( !is_object($bookmark) )
74 return '';
75
76 if ( !isset($bookmark->$field) )
77 return '';
78
79 return sanitize_bookmark_field($field, $bookmark->$field, $bookmark->link_id, $context);
80}
81
82/**
83 * Retrieves the list of bookmarks
84 *
85 * Attempts to retrieve from the cache first based on MD5 hash of arguments. If
86 * that fails, then the query will be built from the arguments and executed. The
87 * results will be stored to the cache.
88 *
89 * List of default arguments are as follows:
90 * 'orderby' - Default is 'name' (string). How to order the links by. String is
91 * based off of the bookmark scheme.
92 * 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either
93 * ascending or descending order.
94 * 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to
95 * display.
96 * 'category' - Default is empty string (string). Include the links in what
97 * category ID(s).
98 * 'category_name' - Default is empty string (string). Get links by category
99 * name.
100 * 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide
101 * links marked as 'invisible'.
102 * 'show_updated' - Default is 0 (integer). Will show the time of when the
103 * bookmark was last updated.
104 * 'include' - Default is empty string (string). Include other categories
105 * separated by commas.
106 * 'exclude' - Default is empty string (string). Exclude other categories
107 * separated by commas.
108 *
109 * @since 2.1.0
110 * @uses $wpdb Database Object
111 * @link http://codex.wordpress.org/Template_Tags/get_bookmarks
112 *
113 * @param string|array $args List of arguments to overwrite the defaults
114 * @return array List of bookmark row objects
115 */
116function get_bookmarks($args = '') {
117 global $wpdb;
118
119 $defaults = array(
120 'orderby' => 'name', 'order' => 'ASC',
121 'limit' => -1, 'category' => '',
122 'category_name' => '', 'hide_invisible' => 1,
123 'show_updated' => 0, 'include' => '',
124 'exclude' => '', 'search' => ''
125 );
126
127 $r = wp_parse_args( $args, $defaults );
128 extract( $r, EXTR_SKIP );//Possible Control Flow
129
130 $cache = array();
131 $key = md5( serialize( $r ) );
132 if ( $cache = wp_cache_get( 'get_bookmarks', 'bookmark' ) ) {
133 if ( is_array($cache) && isset( $cache[ $key ] ) )
134 return apply_filters('get_bookmarks', $cache[ $key ], $r );
135 }
136
137 if ( !is_array($cache) )
138 $cache = array();
139
140 $inclusions = '';
141 if ( !empty($include) ) {
142 $exclude = ''; //ignore exclude, category, and category_name params if using include
143 $category = '';
144 $category_name = '';
145 $inclinks = preg_split('/[\s,]+/',$include);
146 if ( count($inclinks) ) {
147 foreach ( $inclinks as $inclink ) {
148 if (empty($inclusions))
149 $inclusions = ' AND ( link_id = ' . intval($inclink) . ' ';
150 else
151 $inclusions .= ' OR link_id = ' . intval($inclink) . ' ';
152 }
153 }
154 }
155 if (!empty($inclusions))
156 $inclusions .= ')';
157
158 $exclusions = '';
159 if ( !empty($exclude) ) {
160 $exlinks = preg_split('/[\s,]+/',$exclude);
161 if ( count($exlinks) ) {
162 foreach ( $exlinks as $exlink ) {
163 if (empty($exclusions))
164 $exclusions = ' AND ( link_id <> ' . intval($exlink) . ' ';
165 else
166 $exclusions .= ' AND link_id <> ' . intval($exlink) . ' ';
167 }
168 }
169 }
170 if (!empty($exclusions))
171 $exclusions .= ')';
172
173 if ( !empty($category_name) ) {
174 if ( $category = get_term_by('name', $category_name, 'link_category') ) {
175 $category = $category->term_id;
176 } else {
177 $cache[ $key ] = array();
178 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
179 return apply_filters( 'get_bookmarks', array(), $r );
180 }
181 }
182
183 if ( ! empty($search) ) {
184 $search = like_escape($search);
185 $search = " AND ( (link_url LIKE '%$search%') OR (link_name LIKE '%$search%') OR (link_description LIKE '%$search%') ) ";
186 }
187
188 $category_query = '';
189 $join = '';
190 if ( !empty($category) ) {
191 $incategories = preg_split('/[\s,]+/',$category);
192 if ( count($incategories) ) {
193 foreach ( $incategories as $incat ) {
194 if (empty($category_query))
195 $category_query = ' AND ( tt.term_id = ' . intval($incat) . ' ';
196 else
197 $category_query .= ' OR tt.term_id = ' . intval($incat) . ' ';
198 }
199 }
200 }
201 if (!empty($category_query)) {
202 $category_query .= ") AND taxonomy = 'link_category'";
203 $join = " INNER JOIN $wpdb->term_relationships AS tr ON ($wpdb->links.link_id = tr.object_id) INNER JOIN $wpdb->term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id";
204 }
205
206 if ( $show_updated && get_option('links_recently_updated_time') ) {
207 $recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL " . get_option('links_recently_updated_time') . " MINUTE) >= NOW(), 1,0) as recently_updated ";
208 } else {
209 $recently_updated_test = '';
210 }
211
212 $get_updated = ( $show_updated ) ? ', UNIX_TIMESTAMP(link_updated) AS link_updated_f ' : '';
213
214 $orderby = strtolower($orderby);
215 $length = '';
216 switch ($orderby) {
217 case 'length':
218 $length = ", CHAR_LENGTH(link_name) AS length";
219 break;
220 case 'rand':
221 $orderby = 'rand()';
222 break;
223 default:
224 $orderparams = array();
225 foreach ( explode(',', $orderby) as $ordparam )
226 $orderparams[] = 'link_' . trim($ordparam);
227 $orderby = implode(',', $orderparams);
228 }
229
230 if ( 'link_id' == $orderby )
231 $orderby = "$wpdb->links.link_id";
232
233 $visible = '';
234 if ( $hide_invisible )
235 $visible = "AND link_visible = 'Y'";
236
237 $query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query";
238 $query .= " $exclusions $inclusions $search";
239 $query .= " ORDER BY $orderby $order";
240 if ($limit != -1)
241 $query .= " LIMIT $limit";
242
243 $results = $wpdb->get_results($query);
244
245 $cache[ $key ] = $results;
246 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
247
248 return apply_filters('get_bookmarks', $results, $r);
249}
250
251/**
252 * Sanitizes all bookmark fields
253 *
254 * @since 2.3.0
255 *
256 * @param object|array $bookmark Bookmark row
257 * @param string $context Optional, default is 'display'. How to filter the
258 * fields
259 * @return object|array Same type as $bookmark but with fields sanitized.
260 */
261function sanitize_bookmark($bookmark, $context = 'display') {
262 $fields = array('link_id', 'link_url', 'link_name', 'link_image', 'link_target', 'link_category',
263 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_updated',
264 'link_rel', 'link_notes', 'link_rss', );
265
266 if ( is_object($bookmark) ) {
267 $do_object = true;
268 $link_id = $bookmark->link_id;
269 } else {
270 $do_object = false;
271 $link_id = $bookmark['link_id'];
272 }
273
274 foreach ( $fields as $field ) {
275 if ( $do_object ) {
276 if ( isset($bookmark->$field) )
277 $bookmark->$field = sanitize_bookmark_field($field, $bookmark->$field, $link_id, $context);
278 } else {
279 if ( isset($bookmark[$field]) )
280 $bookmark[$field] = sanitize_bookmark_field($field, $bookmark[$field], $link_id, $context);
281 }
282 }
283
284 return $bookmark;
285}
286
287/**
288 * Sanitizes a bookmark field
289 *
290 * Sanitizes the bookmark fields based on what the field name is. If the field
291 * has a strict value set, then it will be tested for that, else a more generic
292 * filtering is applied. After the more strict filter is applied, if the
293 * $context is 'raw' then the value is immediately return.
294 *
295 * Hooks exist for the more generic cases. With the 'edit' context, the
296 * 'edit_$field' filter will be called and passed the $value and $bookmark_id
297 * respectively. With the 'db' context, the 'pre_$field' filter is called and
298 * passed the value. The 'display' context is the final context and has the
299 * $field has the filter name and is passed the $value, $bookmark_id, and
300 * $context respectively.
301 *
302 * @since 2.3.0
303 *
304 * @param string $field The bookmark field
305 * @param mixed $value The bookmark field value
306 * @param int $bookmark_id Bookmark ID
307 * @param string $context How to filter the field value. Either 'raw', 'edit',
308 * 'attribute', 'js', 'db', or 'display'
309 * @return mixed The filtered value
310 */
311function sanitize_bookmark_field($field, $value, $bookmark_id, $context) {
312 switch ( $field ) {
313 case 'link_id' : // ints
314 case 'link_rating' :
315 $value = (int) $value;
316 break;
317 case 'link_category' : // array( ints )
318 $value = array_map('absint', (array) $value);
319 // We return here so that the categories aren't filtered.
320 // The 'link_category' filter is for the name of a link category, not an array of a link's link categories
321 return $value;
322 break;
323 case 'link_visible' : // bool stored as Y|N
324 $value = preg_replace('/[^YNyn]/', '', $value);
325 break;
326 case 'link_target' : // "enum"
327 $targets = array('_top', '_blank');
328 if ( ! in_array($value, $targets) )
329 $value = '';
330 break;
331 }
332
333 if ( 'raw' == $context )
334 return $value;
335
336 if ( 'edit' == $context ) {
337 $format_to_edit = array('link_notes');
338 $value = apply_filters("edit_$field", $value, $bookmark_id);
339
340 if ( in_array($field, $format_to_edit) ) {
341 $value = format_to_edit($value);
342 } else {
343 $value = esc_attr($value);
344 }
345 } else if ( 'db' == $context ) {
346 $value = apply_filters("pre_$field", $value);
347 } else {
348 // Use display filters by default.
349 $value = apply_filters($field, $value, $bookmark_id, $context);
350
351 if ( 'attribute' == $context )
352 $value = esc_attr($value);
353 else if ( 'js' == $context )
354 $value = esc_js($value);
355 }
356
357 return $value;
358}
359
360/**
361 * Deletes bookmark cache
362 *
363 * @since 2.7.0
364 * @uses wp_cache_delete() Deletes the contents of 'get_bookmarks'
365 */
366function clean_bookmark_cache($bookmark_id) {
367 wp_cache_delete( $bookmark_id, 'bookmark' );
368 wp_cache_delete( 'get_bookmarks', 'bookmark' );
369}
370
371?>
372
/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
/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