flymike
Forum Replies Created
-
Not the answer I was hoping for, but thorough and complete – and I thank you for it.
Fit Slides Cover is already checked.
Answering my own question: the secret is
wp_transition_post_status(’publish’, 'draft')
Just have to get the parameters the right way round…
Forum: Developing with WordPress
In reply to: Change URI query string while processing shortcodeMy apologies. I missed that point completely. I’ll research that.
Thanks again.
Forum: Developing with WordPress
In reply to: Change URI query string while processing shortcodeThanks. I realize I can reload the page without the query string using JS but, if I do that, the user will never get chance to see the status message which I present on the original page.
To clarify, I present a status message when the state is changed, but a warning message if the user subsequently attempts to change the state again.
Maybe one solutions is a 5 second delay before the JS reloads the page, so that the user can briefly see the status message. But that seems a bit of a hack…
Forum: Fixing WordPress
In reply to: <link rel='stylesheet' being converted to inline cssAnswering my own question…
It is not some WordPress plugin – but Chrome (80.0.3987.87) which is converting my linked stylesheet to inline style.And I assume this is because I have the linked stylesheet within the HTML document body, instead of within the head. This was not supported at all in HTML 4, but is allowed, though not recommended, in HTML 5.
Firefox 72.0.2 appears to fully support linked stylesheets within the body, but Chrome converts to inline.
I worked around the problem by using
<style>@import url("my-stylesheet");</style>
And, finally – it mattered – because I was using @media to control style when printing, and @media is not available for inline styles.
The light dawns! Thanks again for your patience & understanding.
I appreciate your patience, and I see the confusion.
So, I’m on the privileged Subscribers page, and therefore in admin/subscribers.php and not admin/your-subscriptions.php.
That is, as an administrator, I’m setting or reviewing subscriptions of others – not myself. And I’m trying to display the current subscriptions of some other particular user – by using the Search box.
So, because I’m in admin/subscribers.php, display_category_form() is called from line 310 of admin/subscribers.php, and not via s2_your_subscription_form().
So now I think I must have imagined that existing subscriptions were ever displayed. Instead, is it that the behavior of this (administrator’s) form is to blindly either subscribe or unsubscribe a category, without ever actually showing its status?I’m not multisite, and I’ve refreshed from your github site.
When display_category_form() is called from line 310 of admin/subscribers.php, the $categories array is empty. BUT the (registered) email address (successfully) searched on is subscribed to at least one category.
Can you point me to where the $categories array is initialized for the searched-on subscriber?Sorry, I had to travel. I’ll look at the problem again in November.
I’m on 10.30.1.
I have PHP skill. Can you point me to relevant component? I’ll try to figure out what’s wrong.But a post notification to who? If notification is being determined by category and no category is available?
I have found that the cause of wp_get_object_terms() in line 402 of class-s2-core.php returning an array with zero items was caused by an interaction between WP 4.7 and an unrelated plugin.
But the issue with S2 remains. wp_get_object_terms() can legitimately return an empty array and, in that case, S2’s get_registered() when called with format=html will return an array of the majority of registered users – when it should return an empty array. In my case, a confidential post intended for a handful of users was sent to almost 700 users. My client was NOT happy!Forum: Plugins
In reply to: [Theme My Login] /login not recognized after PHP 7Duh! Did not only migrate to PHP 7, but also to Ubuntu 16.04. And mod-rewrite was not enabled in Apache: sudo a2enmod rewrite
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Excerpts mangled in Posterboard ViewClick here and look for the “69th Annual Labor Day Regatta ” event. The excerpt is shown as plain text.
Now click here and look for the same event. The excerpt is formatted as a list with links.
The actual event content is the same in both cases – it contains html markup for the list and links.
But the second one displays the excerpt formatted as a list with links because I have patched AI1EC to NOT call strip_tags() on the excerpt text.