Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like what you’re looking to change is what WordPress calls one of its “login page errors.” You can see the original errors listed in wp-login.php if you just do a search for “Check your e-mail for the confirmation link.” In any case, there is a filter for modifying those login page errors just below that you can apparently use to modify them. This article on WordPress Stack Exchange explains how to modify the message that is displayed on the registration confirmation page, but the same basic concept should work for the message you’re interested in on the Forgot Password confirmation page:

    https://wordpress.stackexchange.com/questions/161709/customize-the-registration-complete-please-check-your-e-mail-message-on-wp-4/161722#161722

    Please note that in the second example code block where it is actually using the login page error filter, that it specifies the following:

    if( isset( $errors->errors[‘registered’] ) )

    For your purposes, you’ll want to change all instance of ‘registered’ to ‘confirm’. Later in the code, you would of course want to change “Registration complete. Please check your e-mail.” to “Check your e-mail for the confirmation link.”

    I’m having the same problem as I try to migrate from a single-site to multisite setup. I decided to track down the function that actually writes the “Featured Image” widget into an edit post page.

    I started by hunting through my wordpress installation for the string “Remove featured image” (that’s the text of the link that shows up at the bottom of the widget when you have already added a featured image). That text appears in wp-admin\includes\post.php, in a function called “_wp_post_thumbnail_html()”. I did a search for _wp_post_thumbnail_html, and it gets called in wp-admin\includes\meta-boxes.php in a function called post_thumbnail_meta_box(). So far neither of these functions appeared to do anything out of the ordinary. I couldn’t see any conditional logic that would prevent the Featured Image widget from appearing.

    So I did a search for post_thumbnail_meta_box. That function gets called in wp-admin\edit-form-advanced.php…or at least SOMETIMES it gets called. There are a number of conditions that must return true for the function to get called at all. Here’s the snippet that does it:


    if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' )
    && ( ! is_multisite() || ( ( $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ) ) && ! empty( $mu_media_buttons['image'] ) ) ) )
    add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', $post_type, 'side', 'low');

    See that nasty little ! is_multisite() in there? Looks like they have purposefully disabled the display of the Featured Image widget in multisite installations. There must be some deeper conflict or bug that it’s causing.

    I don’t know what their reasons are, but I think I’m going to try to figure out what they’re testing with that $mu_media_buttons variable. Maybe there is some option in multisite that lets you see your featured image. If I find anything, I’ll post it.

    INCIDENTALLY, you can still add a featured image to a post in your multisite installation, even thought the Featured Image widget won’t show. At the top of an Edit Post page, under the title but above the content area, there is an “Upload/Insert” area with an icon that looks like a 6-pointed star (it’s the “Add Media” button). You can click on that, and either upload a new image or view one in your gallery or whatever you would do if you were just adding it to the post content area. When you get to the screen that has a button that says “Insert into Post,” you’ll find that there is a text link next to it that says “Use as featured image.” You can click that, and the image will become the featured image for the post.

    You won’t be able to see what featured image it is when you come back to the Edit Post page, but at least you can still attach the image to the post as a featured image and your site visitors will see it.

    Hope that’s somewhat helpful.

    I’m getting the same problem now that I have upgraded to the most recent version of Add to Any: Subscribe. I’ve had the plugin working properly in my site for some time, but when I used WordPress’ automatic update feature to bring it up to version .9.9.

    Lines 53 and 54 of wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php are commented as handling “/** Backwards compatibility for Add_to_Any_Subscribe_Widget::display(); usage */”. It appears that in the latest update this backwards compatibility feature got broken. I suppose many people use the thing as a widget so they can have the ease of drag-and-drop to get it into their site, but I’m hoping the developers behind add-to-any will still permit us to just use the code snippet top pop it in wherever we want.

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