Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image uploads breaking #133

Open
paulhennell opened this issue Jun 27, 2013 · 0 comments
Open

Image uploads breaking #133

paulhennell opened this issue Jun 27, 2013 · 0 comments
Labels
Milestone

Comments

@paulhennell
Copy link

I'm developing a child theme of bootstrap, but have been having issues with image uploads. (They originally work, then suddenly refuses to upload or show old image uploads on the post/edit pages, although the media library continues to work)

Removing the following code from bootstraps functions (Actually the add_filter call to it) makes uploads/gallery work again, which has solved my current issues.

I don't however completely understand the purpose of the code, - can anyone tell me if disabling is likely to cause further problems, if there is a bug in the code here or what.

(I'm guessing this may be related to using Advanced Custom Fields to add images to category pages, as I think that's what caused it to suddenly break, but I reached my limits just in finding where the problem was.)

function bootstrapwp_enhanced_image_navigation($url)
{
    global $post;
    if (wp_attachment_is_image($post->ID)) {
        $url = $url . '#main';
    }
    return $url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant