Changeset 1534
- Timestamp:
- 08/14/2004 05:29:09 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-links.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-links.php
r1532 r1534 41 41 '%post_id%', 42 42 '%category%', 43 '%author%', 43 44 '%pagename%' 44 45 ); 45 46 46 47 if ($id) { 47 $idpost = $wpdb->get_row("SELECT ID, post_date, post_name, post_status FROM $wpdb->posts WHERE ID = $id");48 $idpost = $wpdb->get_row("SELECT ID, post_date, post_name, post_status, post_author FROM $wpdb->posts WHERE ID = $id"); 48 49 } else { 49 50 $idpost = $post; … … 61 62 $cats = get_the_category($idpost->ID); 62 63 $category = $cats[0]->category_nicename; 64 $authordata = get_userdata($idpost->post_author); 65 $author = $authordata->user_nicename; 63 66 64 67 $rewritereplace = array( … … 72 75 $idpost->ID, 73 76 $category, 77 $author, 74 78 $idpost->post_name, 75 79 );
Note: See TracChangeset
for help on using the changeset viewer.