Timeline for Objective Best Practices for Plugin Development?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:37 | history | edited | CommunityBot |
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
|
|
Aug 17, 2013 at 13:34 | history | edited | tfrommen | CC BY-SA 3.0 |
updated deprecated functionality
|
Oct 28, 2011 at 18:01 | history | edited | kaiser | CC BY-SA 3.0 |
added 323 characters in body
|
Oct 28, 2011 at 18:00 | comment | added | kaiser |
@ProfK I'll post future updates to this Q. I'm currently inspecting the behavior of the wp error class and want to write a ticket about a public theme error API (draft already done). You'll find a link to another ticket that brings WP_Error and wp_die() closer together (already has a patch) at the bottom of the Q. Any comment, suggestions, critics and else is highly appreciated.
|
|
Oct 28, 2011 at 11:17 | history | edited | kaiser | CC BY-SA 3.0 |
added 1806 characters in body
|
Oct 28, 2011 at 11:01 | comment | added | kaiser |
@ProfK I reworked it to be shorter and the title/content for wp_die(); was wrong (reversed). About your Q) I don't completely get it. When you set up an instance of the WP_Error class you have full access to its data via functions like get_error_code(); , get_error_message(); , get_error_data(); and the plural versions. You could also only instantiate it once at the bootstrap of your theme or plugin and simply use $error->add(); to fill other errors and finally output it in the footer with $error->get_error_messages(); to catch them all.
|
|
Oct 28, 2011 at 10:55 | history | edited | kaiser | CC BY-SA 3.0 |
deleted 216 characters in body
|
Oct 28, 2011 at 6:03 | comment | added | ProfK | Why do you instantiate a WP_Error object if you only access it's properties and never pass the instance as an object? | |
S May 3, 2011 at 15:07 | history | answered | kaiser | CC BY-SA 3.0 | |
S May 3, 2011 at 15:07 | history | made wiki | Post Made Community Wiki by kaiser |