Skip to main content

WordPress Development Weekly Newsletter - Thursday, November 27, 2014

WordPress Development Weekly Newsletter

Top new questions this week:

Should I sanitize an email address before passing it to the is_email() function?

I'm using is_email() to check if a user-provided email address is valid. For example: $email = $_POST['email']; if ( is_email( $email ) ) // Do something. To the best of my knowledge, nothing ...

<sanitization>  
asked by henrywright 5 votes
answered by Howdy_McGee 2 votes

Portable Post Links

I quite often run into a situation where I develop a site on a staging domain, have my client fill it there with content, and then when everything's approved move it to production. Now, my ...

<posts> <links>  
asked by Steven 3 votes
answered by Rarst 0 votes

Server side validation

I'm trying to do some server side validation of post fields (custom and/ or non-custom fields). Validation works just fine. But I can't seems to stop the post from saving if a validation fails. Why ...

<server> <validation> <save>  
asked by john23klipp 2 votes

Taxonomy archive template to have conditional logic for displaying child categories

I have a custom post-type "downloads", and within the downloads menu, I have download categories, the taxonomy name is "downloadcats". My Downloads page uses a page template that lists all categories ...

<custom-taxonomy>  
asked by Adrian 2 votes
answered by Pieter Goosen 1 vote

What are these entries in the database? Looks similar to JSON

So I have been wondering for a while now what these entries are and what they do, also what the format of them are. They look similar to JSON but are definitely not JSON. ...

<plugins> <database>  
asked by Yamaha32088 2 votes
answered by Howdy_McGee 5 votes

Redirect to referring page after logging in

I am not using any custom login plugins or any bespoke code. A few of my pages have got this bit of code in them at the very beginning. <?php if(!is_user_logged_in()) ...

<redirect> <login>  
asked by Praveen Kumar 1 vote
answered by birgire 3 votes

Use hooks for undo/redo admin actions?

Is it possible to implement a undo/redo by tracing admin actions? I know its gonna be a heavy task, but is it possible at all? Plugins aside of course, core is enough, though

<core-modifications>  
asked by mc007 1 vote
answered by Mark Kaplun 1 vote

Greatest hits from previous weeks:

Allow HTML in excerpt

Here is my excerpt code. // Generate custom excerpt length function wpbx_excerpt_length($length) { return 300; } add_filter('excerpt_length', 'wpbx_excerpt_length'); How do I allow html like ...

<php> <excerpt>  
asked by user32447 6 votes
answered by Pieter Goosen 17 votes

How to manually fix the WordPress gallery code using PHP in functions.php?

It's been talked many times that Wordpress outputs some really bad code for the built-in gallery function. This is the core code responsible for the gallery output (in /wp-includes/media.php): ...

<php> <functions> <shortcode> <gallery>  
asked by its_me 10 votes
answered by Bainternet 16 votes

Can you answer these?

Looking for a secure way of storing/accessing user form entry preserving newlines?

I'm allowing users to enter information through a textarea on my site. I'm aware that there is a security risk whenever a user can enter information into a site. I want to be able to preserve ...

<php> <mysql> <sanitization>  
asked by John T 1 vote

Custom save button shows 'Are you sure you want to...' dialog

I'm looking for a way to replace the submitdiv meta box (publish box) with just one simple save button. By looking at Core I see there's a simple function returning a submit button: ...

<publish> <replace>  
asked by john23klipp 1 vote

Custom Post Type by Taxonomy

I have two custom post types - office and professional. Each professional needs to be tied to an office. I've created a custom taxonomy, 'tax-location', applied it to both post types to tie them ...

<custom-post-types> <custom-taxonomy>  
asked by certainstrings 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...