Reputation
Next privilege 125 Rep.
Vote down
Badges
1 11
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
Oct
20
accepted Problems after wp_set_password() containing an apostrophe
Oct
14
comment Problems after wp_set_password() containing an apostrophe
@CodesInChaos I think this goes way back to the time of magic quotes. Wordpress still does "addslashes" to every single $_POST and get variable there is. Knowing a little bit of Wordpress's internals doing this is pretty obvious - though getting to the point of realization cost me 6 hours of work Xx for a freaking addslashes.... Xx
Oct
14
awarded  Self-Learner
Oct
14
comment Problems after wp_set_password() containing an apostrophe
@cybmeta Just to ping you again - the issue was that those functions require wp_slash() to be used. This however isn't documented, but will surely be added as now there is an open ticket for it :)
Oct
14
comment Problems after wp_set_password() containing an apostrophe
Just to ping you again - the issue was that those functions require wp_slash() to be used. This however isn't documented, but will surely be added as now there is an open ticket for it :)
Oct
14
answered Problems after wp_set_password() containing an apostrophe
Oct
14
revised Problems after wp_set_password() containing an apostrophe
edited body
Oct
14
revised Problems after wp_set_password() containing an apostrophe
added 765 characters in body
Oct
14
comment Problems after wp_set_password() containing an apostrophe
@cybmeta the problem clearly lies within the usage of wp_set_password() and/or wp_update_user() - I just ran my test snipped on a naked wordpress installation. (snipped see update 3)
Oct
14
comment Problems after wp_set_password() containing an apostrophe
I am aware of this, thank you. I am using it the way it is meant to be. As far as I can tell there is two ways to update a users password. wp_set_password() and wp_update_user() - both ultimately result in the same outcome :(
Oct
14
comment Problems after wp_set_password() containing an apostrophe
@ThemesCreator correct, sorry for not being explicit enough. Please see the second update. I can only imagine this being a bug.
Oct
14
revised Problems after wp_set_password() containing an apostrophe
added 516 characters in body
Oct
14
revised Problems after wp_set_password() containing an apostrophe
updated current progress
Oct
14
asked Problems after wp_set_password() containing an apostrophe
Jun
11
awarded  Notable Question
Apr
15
accepted Custom Rewriting to Plugin with Parameters
Apr
15
awarded  Benefactor
Apr
15
awarded  Commentator
Apr
15
comment Custom Rewriting to Plugin with Parameters
Got it working. ?p= vs. ?page_id=. I got really confused why it kept redirecting to the page without any parameters. I noticed that internally page_id is used. So my assumption is: ?p= does an redirect to ?page_id= and strips all other stuff. I have no proof for this code-based, but ultimately with using page_id it works. Thanks for your patience!
Apr
15
comment Custom Rewriting to Plugin with Parameters
Sad news... here's what I did: Download WP (4.1.1), extract, copy myplugin.php // cd wp-dir // php -S localhost:9090 Create new Page with the given shortcode as body content. Synchronize page id within myplugin.php Enable Plugin on backend // go to Settings > Permalinks and save them a few times ("Post Name" setting) foo.dom/myplugin/123 redirects to foo.dom/myplugin with no filter being displayed.