WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #13373


Ignore:
Timestamp:
06/25/10 06:15:40 (4 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13373 – Description

    initial v1  
    22 
    33I am using the following PHP script lines: 
    4  
     4{{{ 
    55 $category_id = get_cat_ID( $row['title'] ); 
    66 // Get the URL of this category 
    77 $category_link = get_category_link( $category_id ); 
    88 $j2wp_post['post_content'] =  substr( $j2wp_post['post_content'], 0, $lnk_pos) . 'href="' . $category_link . '" ' . substr( $j2wp_post['post_content'], $post_lnk_end + 1); 
    9  
     9}}} 
    1010they create the subsequent error in the assignment: 
    11  
     11{{{ 
    1212$j2wp_post['post_content'] = 
    1313 
    1414Catchable fatal error: Object of class WP_Error could not be converted to string  
    15  
     15}}} 
    1616As there is no error in the assignment and I found a lot of hints for the categories - one of this two fundtions creates this error.