Viestit paikassa WordPress Support Forums

”Security check failed” if session expires during editing

17. marraskuuta 2022 klo 19.10
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

Plugin version: 3.6.2

This is similar to one previously reported issue, but I have a specific situation where this occurs (and appears to be 100 % reproducible):

1. Start editing an article
2. Have your session cookie expire (to simulate, you can delete the cookie in browser settings)
3. Continue editing the article, or just wait until the next heartbeat, to have the login form pop up
4. Fill in the login form (over the editor) to log back in
5. Click Save draft

Result is the ”WP to Twitter: Security check failed” error page.

Thankfully, the draft has still been saved, and going back to the editor (using the browser’s back button) restores it. Also the next attempt to Save draft goes through without issues2 (I’ve only tried this using Firefox though, and can’t say if it’s as harmless in other browsers).

I haven’t looked at the code, but if the issue is caused by nonce invalidation at step 2, the plugin should probably update its nonce(s) when login-related hooks fire after step 3.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Tremendously useful

11. lokakuuta 2020 klo 13.14
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

Happy to see the plugin get a new lease on life from an active and engaged developer. I only use a small portion of the features (suggested local tags), but this features alone makes it one of the most useful plugins for me.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Inflection causes Simple Tags to miss relevant tag suggestions

10. lokakuuta 2020 klo 16.20
Sijainti: Keskustelupalstat: kieli
Avainsanat: WordPress

Thanks for keeping Simple Tags alive!

Simple Tags is great in picking exact local tag matches from the post text, but with Finnish (and probably some other languages as well), inflection often causes it to miss relevant suggestions (from Local tags). For instance, when using the inessive case ”Helsingissä” in the post, Simple Tags won’t suggest (previously added local tag) ”Helsinki”.

A fuzzy matching feature would help here.

While Simple Tags’ future was in limbo, I tested some other plugins, and one of them (maybe Smart Tag Insert) had such a feature: it showed related tags using some kind of fuzzy matching. I have no idea how difficult this feature would be to incorporate into Simple Tags though.

I know I can show all tags with the ”Click tags” feature, but with close to 2000 pre-existing tags, the full list is quite unwieldy.

Vastaa viestiin sen kontekstissa (kieli)

It works! Brilliant, thanks a lot!

28. helmikuuta 2019 klo 19.58
Sijainti: Keskustelupalstat: WordPress Support Forums

It works! Brilliant, thanks a lot!

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Problem adding a custom image after removing existing image: no ’Add Image’

28. helmikuuta 2019 klo 17.16
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: saavutettavuus

I’m having a problem adding a custom image when the generated preview has already picked up an image. If I remove the automatically linked image, the ’Remove Image’ button remains as such, so there’s no ’Add Image’ button in its place to add the custom image.

As an example, here’s a recorded gif of my attempt to customize the image when linking to this page on Tukes’ website.

With few hints about preview-suitable content provided by that page, Visual Link Preview picks up an overlay image (magnifying glass), which I’d then like to replace with the actual image (a safety reflector) from that page (after already downloading it). But after I click ’Remove Image’ to remove the overlay image, I have no way to add the correct image, because the ’Add Image’ button is missing.

I’m using the current latest release of the plugin (2.0.1) in WP 5.1.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Feature request: searchability

20. lokakuuta 2018 klo 20.49
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: saavutettavuus, WordPress

Thanks for the excellent plugin! I’ve only had one issue so far: the previews are apparently saved encoded, which makes any decoded preview content unsearchable with WordPress’ search function (whereas searching for a piece of the encoded string brings up the matching post). If you could implement searchability of the decoded content, that’d be great.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Shortcode examples on FAQ page are broken

2. huhtikuuta 2018 klo 18.26
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

The shortcode examples on the FAQ page seem to be rendered (”It’s only fair to share…” + sharing icons) by the plugin instead of being shown as code. You should probably escape the shortcodes in those examples.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Patch: fix array key, has_cap warnings

1. elokuuta 2012 klo 21.15
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

— wp-status-net.php 2012-07-16 20:51:15.604960940 +0300

+++ wp-status-net.php.new	2012-08-01 21:04:36.392944461 +0300
@@ -700,7 +700,7 @@
 function wpstatusnet_options()
 {

-      	if ( 'save' == $_REQUEST['action'] )
+      	if ( array_key_exists('action', $_REQUEST) && 'save' == $_REQUEST['action'] )
 		{
 			$options = array(
 				"apitype" => $_REQUEST[apitype],
@@ -931,7 +931,7 @@
 {
 	if (function_exists('add_options_page'))
 	{
-		add_options_page('WP-Status.net', 'WP-Status.net', 0, basename(__FILE__), 'wpstatusnet_options');
+		add_options_page('WP-Status.net', 'WP-Status.net', 'manage_options', basename(__FILE__), 'wpstatusnet_options');
     	}
 }

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Inserting newlines

6. tammikuuta 2012 klo 19.46
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

There was a topic about replacing br tags with newlines on Urban Giraffe, but it seems to have led nowhere, so I’m posting this here just so that I can find it when I again need it, and maybe of help to others too.

I modified the search_and_replace function on line 37 of models/search.php so that $this->replace is assigned a replaced string itself:

$this->replace = str_replace("\\n", '
', $replace);

This means I want to replace any occurences of ”\n”’s in my replacement string with actual newlines just prior to applying the replacement.

It’s an ad hoc solution which I’m reverting once I’m done with newlines. I’ve not explored any possible side effects this solution may have, so use with caution.

Edit: Forum ate my br.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

No problem, and thanks for the rapid response to my bug-report-turned-support-request!

22. joulukuuta 2011 klo 5.43
Sijainti: Keskustelupalstat: WordPress Support Forums

No problem, and thanks for the rapid response to my bug-report-turned-support-request!

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Vanhempia »