Not sure why, because the code seems sound. Ideas? (note the bdn_attach pocket near the bottom).
// Add the attachment link to the media library page
add_filter( 'attachment_fields_to_edit', 'bdn_add_link_to_attach_image_to_post', 20, 2 );
function bdn_add_link_to_attach_image_to_post( $fields, $attachment ) {
if( empty( $_GET[ 'post_id' ] ) )
return $fields;
if( empty( $_GET[ 'tab' ] ) || $_GET[ 'tab' ] != 'library' )
return $fields;
$post_id = (int) $_GET[ 'post_id' ];
if( empty( $post_id ) )
return $fields;
$nonce = wp_create_nonce( 'bdn-attach_' . $attachment->ID );
$attach_image_action_url = admin_url( "media-upload.php?tab=library&post_id=$post_id" );
$fields[ 'bdn_attach' ] = array(
'label' => __('Attach to story:'),
'input' => 'html',
'html' => "<a href='$attach_image_action_url&bdn-attach=$attachment->ID&_attachnonce=$nonce'>Attach</a> "
);
return $fields;
}
]]>and installed Theme Headway Base with 4 Widgets
I am trying to update to WordPress 3.5 automatically and keep getting this message
“Downloading update from https://www.ads-software.com/wordpress-3.5-new-bundled.zip…
Unpacking the update…
Warning: copy(/homepages/35/d375653974/htdocs/app442269628/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: Permission denied in /homepages/35/d375653974/htdocs/app442269628/wp-admin/includes/class-wp-filesystem-direct.php on line 200
Could not copy files.
Installation Failed”
please help?
]]>I’m writing because I have problems with YAK for WordPress plugin.
I installed it on my WordPress 3.5 website and it doesn’t work. Then I installed it on my second WordPress website which uses a little bit older WP and it works without any problems.
The main problem is that I can’t load GENERAL OPTIONS, SHIPPING OPTIONS and MISC OPTIONS in WP 3.5.
In WP 3.5 it looks like this (screenshot) and in older WP it looks like this (screenshot).
Could you please help me? What should I do to make this plugin work?
Tnx in advance
]]>I’m writing because I have problems with YAK for WordPress plugin.
I installed it on my WordPress 3.5 website and it doesn’t work. Then I installed it on my second WordPress website which uses a little bit older WP and it works without any problems.
The main problem is that I can’t load GENERAL OPTIONS, SHIPPING OPTIONS and MISC OPTIONS in WP 3.5.
In WP 3.5 it looks like this (screenshot) and in older WP it looks like this (screenshot).
Could you please help me? What should I do to make this plugin work?
Tnx in advance
]]>I am developing a site here:
https://ally2.alchemycs.com
On the home page, in the middle where it says “Screenings,” there is a box with scrollbars. The site should be using jScrollPane to make the scrollbars match the design of the rest of the site. It worked fine before 3.5, but when I upgraded to 3.5, it broke and jScrollPane no longer works. Now I get an error message:
Error: Permission denied to access property 'toString'
This error message is caused by the embedded Vimeo video. If I take that out, I get a new error message:
Error: Syntax error, unrecognized expression: [type="text/javascript"],not([type])
That message is caused by modernizr.js, so if I disable that, I get a new error message:
Error: Syntax error, unrecognized expression: [type="text/javascript"],not([type])
It says that this error occurs in line 2 of jquery.min.js, which is being served by Google, so I know it doesn’t have errors in it.
In 3.4.2, this doesn’t happen. In 3.5, it does. Disabling all of the plugins doesn’t fix it.
Any suggestions for what to do next?
]]>I’m on Mac and I used Safari and Firefox.
Lefteris
https://www.ads-software.com/extend/plugins/leaflet-maps-marker/
]]>I just upgraded our company website: https://www.human1.com, which is using a custom theme that has a javascript graphic menu on the top of our home page.
After upgrading the custom menus aren’t working and it’s displaying all the menus under the graphics instead of showing each relevant menu when you hover your mouse over each graphic.
The code used to control this on the backend in the header.php file is this:
<!-- This JavaScript snippet activates those tabs -->
<script>
// perform JavaScript after the document is scriptable.
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div", {
event: 'mouseover',
effect: 'fade',
history: true
});
});
</script>
What do I need to do to this to get it to work under the new javascript in 3.5?
Please help, this is urgent as our main site is compromised.
Thank you so much!!
Alexandra
]]>