Bug in Stackoverflow styled badge system script
On line 704 it mentions something about “User_ID => 5”. Not sure, but this might have something to do with your problem? // debug stuff $args = array(‘user_ID’ => 5); rhb_check_user_badges( $args );
On line 704 it mentions something about “User_ID => 5”. Not sure, but this might have something to do with your problem? // debug stuff $args = array(‘user_ID’ => 5); rhb_check_user_badges( $args );
Try the fix posted here: http://sourceforge.net/tracker/?func=detail&aid=3485384&group_id=315685&atid=1328061 It worked for me. translations.php line 726 Change this: $pattern = ‘/LIMIT\s*(\d+)((\s*,?\s*)(\d+))(;{0,1})$/is’; to this: $pattern = ‘/LIMIT\s(\d+)((\s*,?\s*)(\d+)*);{0,1}$/is’; Removing the extra parentheses allows “LIMIT 0, 10” to become “TOP 10”. With the extra parentheses, the “0” is used instead.
My suspicion is that, for some reason, the name “51m series” or slug 51m-series is (or both are) matching is_category( 51 ). The is_category() function uses the PHP in_array() conditional to match against ID, slug, and name: if ( in_array( $cat_obj->term_id, $category ) ) return true; elseif ( in_array( $cat_obj->name, $category ) ) return true; … Read more
Looks like this is a defect. Ish. As @s_ha_dum mentioned, this is to prevent a directory traversal attack. However, WordPress’ Media Library will happily let you upload a file with two or more periods in a row, even if ms-files.php will refuse to serve it up. So, nothing is technically “broken”, but this certainly isn’t … Read more
This is a known issue. The current fix (which may also make it into core) looks like this: add_action( ‘admin_enqueue_scripts’, ‘chrome_fix’ ); function chrome_fix() { if ( strpos( $_SERVER[ ‘HTTP_USER_AGENT’ ], ‘Chrome’ ) !== false ) { wp_add_inline_style( ‘wp-admin’, ‘#adminmenu { transform: translateZ(0) }’ ); } }
Maybe this can help delete_option(‘taxonomy-slug_children’); just replace the ‘taxonomy-slug’ with ‘cat’ or other taxonomy you are using. This line is supposed to used in the same action hook function, right after you create the term.
I think a quick thumbnail regeneration might be the cure for this. Try using Regenerate Thumbnails or a similar plugin, but backup your uploads directory before proceeding. In order to just disable WP responsive images use this filter. /** * Disable WP 4.4 srcset */ add_filter( ‘wp_calculate_image_srcset’, ‘__return_empty_array’ );
I have tested this with an image I created myself with Photoshop where I inserted the word “Süss” in every thinkable IPTC field. I uploaded it to my WordPress 4.6 installation, which has no image handling plugins installed. The uploading went smoothly, the right thumbnails were created in the uploads directory and the caption field … Read more
SOLUTION: after_switch_theme does exactly what I intended here. It fires after the theme is switched TO your theme. One of the solutions mentioned below uses switch_theme. This does not have the desired results, since it only happens upon switching away from your theme. Here is an article that I found as reference: http://core.trac.wordpress.org/ticket/7795#comment:29 Here is … Read more
This is another approach than the other answer that works when importing content with the importer and fixes the URLs once and for all. Again: This is not battle-tested but is the solution I settled on and it did work. I prefer this as it solves the issue once and for all and if it … Read more