Changeset 4112 for trunk/wp-admin/admin-db.php
- Timestamp:
- 08/24/2006 10:33:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-db.php
r4041 r4112 294 294 295 295 $update = false; 296 296 297 if ( !empty($link_id) ) 297 298 $update = true; 298 299 300 if( trim( $link_name ) == '' ) 301 return 0; 302 $link_name = apply_filters('pre_link_name', $link_name); 303 304 if( trim( $link_url ) == '' ) 305 return 0; 306 $link_url = apply_filters('pre_link_url', $link_url); 307 299 308 if ( empty($link_rating) ) 300 309 $link_rating = 0; 310 else 311 $link_rating = (int) $link_rating; 312 313 if ( empty($link_image) ) 314 $link_image = ''; 315 $link_image = apply_filters('pre_link_image', $link_image); 301 316 302 317 if ( empty($link_target) ) 303 318 $link_target = ''; 319 $link_target = apply_filters('pre_link_target', $link_target); 304 320 305 321 if ( empty($link_visible) ) 306 322 $link_visible = 'Y'; 323 $link_visibile = preg_replace('/[^YNyn]/', '', $link_visible); 307 324 308 325 if ( empty($link_owner) ) 309 326 $link_owner = $current_user->id; 327 else 328 $link_owner = (int) $link_owner; 310 329 311 330 if ( empty($link_notes) ) 312 331 $link_notes = ''; 332 $link_notes = apply_filters('pre_link_notes', $link_notes); 333 334 if ( empty($link_description) ) 335 $link_description = ''; 336 $link_description = apply_filters('pre_link_description', $link_description); 337 338 if ( empty($link_rss) ) 339 $link_rss = ''; 340 $link_rss = apply_filters('pre_link_rss', $link_rss); 341 342 if ( empty($link_rel) ) 343 $link_rel = ''; 344 $link_rel = apply_filters('pre_link_rel', $link_rel); 313 345 314 346 // Make sure we set a valid category
Note: See TracChangeset
for help on using the changeset viewer.