Reputation
298
Top tag
Next privilege 300 Rep.
Create new tags
Badges
1 6 17
Impact
~32k people reached

  • 0 posts edited
  • 0 helpful flags
  • 36 votes cast
Jan
19
comment TinyMCE editor is breaking my beautiful HTML
Bryan, that's a good idea, but I still need the entire <figure> to be clickable, so I'm back to wrapping it in an <a> tag (or using multiple <a> tags which I would rather not do).
Jan
16
comment TinyMCE editor is breaking my beautiful HTML
Just to close this out. I wound up using <span> tags. I hate that my markup is now white-space dependent, but it was the path of least resistance for now. I tried <figcaption> but it's a block level element, and TinyMCE wouldn't allow the <a> tags to wrap it, so I was back at square one. Thanks again for all the ideas.
Jan
16
comment TinyMCE editor is breaking my beautiful HTML
That's an interesting thought. I hadn't considered marking it up as a figure and caption. I'll give that a try.
Jan
15
comment TinyMCE editor is breaking my beautiful HTML
Thanks for catching that typo in my example HTML (I edited the question). Just to be clear, the real HTML in question does not have that issue. I will checkout the plugin you mentioned.
Jan
8
comment WP function/filter for modifying http headers?
I think you might be misunderstanding what the send_headers() function is doing in the Last-Modified bit. All that code block does is determine whether the Last-Modified header should be removed, and if so it removes it. If full page caching is being used, the function will never run and neither hook will do anything. I guess it doesn't really matter in the end though. Both hooks will allow you to set a header. It's like Milo commented on your linked question, one's a filter, one's an action. It's just a matter of how you like to code.
Jan
8
comment WP function/filter for modifying http headers?
@Bryan, that's an interesting explanation. I'm curious though: if a page is statically cached and it's served before wp_headers runs, how could send_headers work if it runs after wp_headers? Wouldn't execution of the entire send_headers() function, along with the rest of WordPress, be skipped?
Dec
12
comment WP function/filter for modifying http headers?
Keep in mind though that the WordPress team is trying to transition away from the codex towards the new code reference
Apr
24
comment How to make WordPress emails async
Thanks, that's good to hear.
Nov
2
comment WP function/filter for modifying http headers?
That is very possible, but in this case it looks like the two hooks simply perform different functions. send_headers is an action that fires after the headers are sent while wp_headers is a filter on the headers that is applied before they are sent.
Nov
1
comment WP function/filter for modifying http headers?
Hmm, that's interesting. You checkout the wp_headers filter here.
Oct
3
comment Prevent the Editor From Moving My &nbsp;
That could definitely work. It's one more thing to remember which isn't necessarily ideal, but it would save me from fighting with TinyMCE.
Sep
19
comment Advise on Templates for Custom Queries
@ebohlman, I've been going through my unanswered questions and doing a little clean up. If you want to post your comment as an answer, I'll mark it as accepted. It was the info I needed.
Aug
14
comment Best Way to Enable Two Step Authentication
I've seen a couple examples where the second factor is given on a second page after the initial authentication. I prefer that UX, but if you do that, I think you pretty much have to use your own authentication cookies (or server side sessions) which, as you say, is not for the faint of heart.
Aug
14
comment Best Way to Enable Two Step Authentication
Thanks for the ideas. Those are really interesting. I'm using HTTP Digest authentication for some extra security on the admin area already, so that's good. I wonder if emailing the password would create another issue though. From what I understand, email isn't the most secure means of communication.
Aug
14
comment Best Way to Enable Two Step Authentication
Thanks. That's good advise. I really like that plugin, but I would also like to avoid an extra fields on the login form. Although, I can't really see a way around that.
Aug
13
comment Selectively Disabling PHP via .htaccess in Root Directory
@Wyck, thanks for the input. Could you maybe explain why it wouldn't make any sense?
Aug
13
comment Selectively Disabling PHP via .htaccess in Root Directory
Maybe I'm missing something, but as I understand it, the root dir .htaccess will disallow direct access to any PHP file except index.php. This will cascade into subdirectories, so you override it with the .htaccess in wp-admin to allow the admin panel to work normally. It's basically an extension of the practices described here and here.
Aug
13
comment Selectively Disabling PHP via .htaccess in Root Directory
Won't the allow from all directive in the wp-admin .htaccess allow the admin area to work?
Jul
17
comment Security and Must Use Plugins
Thanks for the explanation. Of course, simply uploading a file doesn't guarantee the web server will execute it in the WP environment where you can access $wpdb, but, as you say, replacing functions.php or a core file would easily accomplish that.
Jul
10
comment Using search.php without a 's' field in searchform.php
I can understand not wanting it in your code if it's not needed, but realize there's also nothing to stop people from entering yoursite.com?s=my+search directly which will accomplish the same thing as modifying a form input using dev tools.