search

Home  >  Q&A  >  body text

bloginfo('stylesheet_directory') does not return the path.

<p>I created a WordPress theme years ago and then forgot about it. But recently I was asked to make some changes to the blog, but when I tried to import the theme to my local system, it showed incorrectly and something went terribly wrong. When inspecting the code, <img src="<? bloginfo( 'stylesheet_directory' );?>/assets/images/strange notes.svg" alt="" /> returns <img src=" <?bloginfo( 'stylesheet_directory' );?>/assets/images/strange notes.svg" alt="">, and a 403 error occurred, the image could not be loaded, and functions such as get_header() and get_footer() also failed. Not working, but online everything is fine. I don't know what I did wrong or forgot something, please help. </p><p>I tried copying the WordPress folder from the server and importing all the posts, pages, etc. </p><p><br /></p>
P粉322918729P粉322918729518 days ago554

reply all(1)I'll reply

  • P粉470645222

    P粉4706452222023-07-25 11:30:44

    std::string decodeRLE(const std::string& rleString) {
    std::string decodedString;
    char previousChar = '\0'; // Store the previous character for repeated characters

    for (const char& ch : rleString) {
        if ((ch & 0x80) == 0) {
            decodedString += ch;
            previousChar = ch;
        } else {
            unsigned char index = ch & 0x7F;
            unsigned char count = index + 3;
            decodedString.append(count, previousChar);
    }
    }
    
    return decodedString;
    }
    int main() {
    std::string rleString = "aAAb€Bc‚CƒdDDe€E";
    std::string decodedString = decodeRLE(rleString);
    std::cout << "Decoded string: " << decodedString << std::endl;
    return 0;
    }

    reply
    0
  • Cancelreply