ccarey75
Forum Replies Created
-
I can confirm I’ve observed the same behaviour – 1200 “resources”shows as “1”.
Forum: Plugins
In reply to: [Hide Featured Image] Doesn't work on PagesReplace index.php with this to enable it to work on pages. Basically the changes are:
– replace the check for is_single() to is_singular() in sh_featured_image (line 92)
– remove ‘$sh_post_types[‘page’]’ from the unset at line 36<?php /* Plugin Name: Hide Featured Image Plugin URI: https://shahpranav.com/ Description: To show/hide featured images on individual posts. Version: 1.0 Author: shahpranaf Author URI: https://shahpranav.com/ License: GPLv2 or later */ // Actions and hooks add_action( 'add_meta_boxes', 'sh_post_types_custom_box' ); // WP 3.0+ add_action( 'admin_init', 'sh_post_types_custom_box', 1 ); // backwards compatible add_action( 'save_post', 'sh_post_types_save_postdata' ); /* Do something with the data entered */ add_action('wp_head', 'sh_featured_image'); /** * Adds a box to the main column on the Post and Page edit screens * * @since Hide Featured Image 1.0 */ function sh_post_types_custom_box() { global $sh_post_types; $sh_post_types = get_post_types( '', 'names' ); unset( $sh_post_types['attachment'], $sh_post_types['revision'], $sh_post_types['nav_menu_item'] ); foreach ($sh_post_types as $post_type) { add_meta_box( 'hide_featured', __( 'Show or Hide Featured Image', 'Hide Image' ), 'sh_featured_box', $post_type, 'side', 'default' ); } } /** * Add metabox to posts. */ function sh_featured_box($post){ wp_nonce_field( plugin_basename( __FILE__ ), $post->post_type . '_noncename' ); $hide_featured = get_post_meta( $post->ID, '_hide_featured', true ); ?> <input type="checkbox" name="_hide_featured" value='1' <?php checked( 1 == $hide_featured ); ?> /> <?php _e('Hide Featured Image','hide-featured-image'); } /** * When the post is saved, saves our custom data * * @since Hide Featured Image 1.0 */ function sh_post_types_save_postdata( $post_id ) { global $sh_post_types; // verify if this is an auto save routine. // If it is our form has not been submitted, so we dont want to do anything if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; // verify this came from the our screen and with proper authorization, // because save_post can be triggered at other times if ( !wp_verify_nonce( @$_POST[$_POST['post_type'] . '_noncename'], plugin_basename( __FILE__ ) ) ) return; // OK,nonce has been verified and now we can save the data according the the capabilities of the user if( in_array($_POST['post_type'], $sh_post_types) ) { if ( !current_user_can( 'edit_page', $post_id ) ) { return; } else { $hide_featured = ( isset( $_POST['_hide_featured'] ) && $_POST['_hide_featured'] == 1 ) ? '1' : ''; update_post_meta( $post_id, '_hide_featured', $hide_featured ); } } } /** * To hide featured image from single post page * * @since Hide Featured Image 1.0 */ function sh_featured_image() { if( is_singular() ){ $hide_image = get_post_meta( get_the_ID(), '_hide_featured', true ); if( isset( $hide_image ) && $hide_image ){ ?> <style> .hero-image, .has-post-thumbnail img.wp-post-image{ display: none; } </style><?php } } } ?>
Forum: Plugins
In reply to: [Remote Media Libraries] Youtube ID ValidationI had the same issue – pasted in the YouTube user id that looks like this:
https://support.google.com/youtube/answer/3250431?hl=enI assume that’s the one it’s after? I also tried my login name and gmail address to no avail.
Do you have to authorise it as an “app” with Google?
Forum: Reviews
In reply to: [Bulk Password Reset] Good, but a bit complicatedHow did you get on with this?
We were looking into this plugin for our installation, however we have upwards of 2000 users to reset, which sounds like it may be an issue.
Just a suggestion, but rather than trying to handle the timeout, a more robust approach might be to handle them in batches of (say) 100 via ajax.
I had the same issue – the site was compromised and the scanner picked up files that had *changed* but not files that were *added*. I had “scan files outside your WP installation” checked. It went and scanned some stuff in an “archive” folder off the root, and found some dodgy files in the uploads folder but did not pick up
/I.php
/wp-admin/I.phpHere’s a screen shot of my config:
https://www.screencast.com/t/Ur80x4rSUWordPress 4.3.1
WordFence 6.0.17Any thoughts?
Did this ever get resolved? We just had the same issue – the site got hacked by someone uploading a malicious file but the scanner does not pick it up (v6.0.17)
Is there a scan option I’m missing somewhere?
Same error here with ‘nextcellent gallery’ plugin and WP 4.2.2
Forum: Plugins
In reply to: [NextCellent Gallery - NextGEN Legacy] Dropdown empty on adding a new galleryActually even when I disable ‘types’ i get prompted to fill out a non-existent field when I try to insert a gallery. I get a little tooltip ‘please fill in this field’ which is placed at the top left of the thickbox.
Does that happen to anyone else?
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] wpdb::escape deprecated errorsOK thanks I’ll keep an eye out for a release. Out of curiosity is the dev version available for testing at all?
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] wpdb::escape deprecated errorsThnaks for the reply – the issue came from domain_mapping.php, however. There are three instances of the deprecated code there. Sunrise.php was clean.
According to the header I’m running 0.5.5.1 – is that the latest or should I have a different version?
Is this only an issue if you enable gravatars? I’m just starting a new site with the plugin so I have only a couple of users. It’d be good to know up front whether performance will be an issue later.
Forum: Plugins
In reply to: [Advanced Editor Tools] Table cell selection "sticks" to mouseI just read this in relation to the link issue:
https://www.ads-software.com/support/topic/wp-36-insert-linkI retested and it turns out the issue with the tables is caused by the same thing (conflict with NextGen Gallery). If that plugin is disabled then everything works as it should.
Forum: Plugins
In reply to: [Advanced Editor Tools] Table cell selection "sticks" to mouseNo change unfortunately and no javascript errors either – or none that fall through to the console anyway. I tried this on my colleague’s PC with the same result. Also tried it in IE (8,9,10) with the same result just in case it was browser specific.
While I was hunting around I found this too: the link button doesn’t want to appear unless you click in the “path” toolbar first. That seems to “wake it up” so to speak.
https://screencast.com/t/KUkJtpLz
For reference here is a vid of the same tests using WP 3.5.1 with plugin version 3.5.8 (both wordpress instances are running the same plugin version).
Any update on this?
I have a new 3.4 intall (multi site) with the most recent NextGen and I also see this message (albeit with a different line number than reported above)Notice: Undefined index: wpmuStyle in ….\wp-content\plugins\nextgen-gallery\admin\admin.php on line 525