Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem, except it’s not just the [gallery] shortcode, it’s any shortcode. In addition, it only occurs when the [loop] shortcode includes the post content or excerpt – if it’s just the title and featured image, everything works as normal. But if I include [field excerpt] it displays the excerpt, but all other shortcodes no longer work.

    I haven’t done thorough testing but I think it may only happen if the looped post’s content contains shortcodes.

    I was getting this problem too… I think it’s because the quickedit function is run for every custom column on the screen, when it only needs to run for the post_type column.

    I fixed it locally (WP 3.4) by making the function on line 141 into this, modeled on the function above:

    public function quickedit( $column_name, $post_type ) {
    		switch( $column_name ) {
    			case 'post_type' :
    	?>
    		<fieldset class="inline-edit-col-right">
    			<div class="inline-edit-col">
    				<label class="alignleft">
    					<span class="title"><?php _e( 'Post Type' ); ?></span>
    					<?php wp_nonce_field( 'post-type-selector', 'pts-nonce-select' ); ?>
    					<?php $this->select_box(); ?>
    				</label>
    			</div>
    		</fieldset>
    <?php
    			break;
    		}
    	}

    I haven’t tested this on other systems, though!

    In case it’s useful for others (or the original developer!) I’ve managed to fix this on mine with a couple of code changes. (This is my first time posting code here so I hope it works…)

    In enable-media-replace.php, make the following replacements:

    Line 55:
    function enable_media_replace( $form_fields, $post ) {
    The attachment_fields_to_edit hook also passes through a $post variable containing the current post.

    Line 57:

    $current_screen = get_current_screen();
    if ( $current_screen->base == 'post' && $current_screen->post_type == 'attachment' ) {

    This checks that we’re on the attachment edit screen.

    Line 59:
    $url = admin_url( "upload.php?page=enable-media-replace/enable-media-replace.php&action=media_replace&attachment_id=" . $post->ID);
    Changes the way the method fetches the current attachment id.

    I made a pastebin of the entire method here: http://pastebin.com/HJVXz0qa

    It’s not pretty but it’ll do until there’s an official update!

    I have the same symptoms, but I DO have a WordPress multi-site install with domain mapping. I’m running in the default English.

    Any solutions? I’ve made an attempt at looking for missing JS files and changed the domain in tiny_mce_popup.js, but to no avail.

Viewing 4 replies - 1 through 4 (of 4 total)