The tag has no wiki summary.

learn more… | top users | synonyms

6
votes
2answers
235 views

Wordpress and event-driven programming - what is it about?

I want to state very clearly that this does not intend to revive the discussion about functional/procedural programming versus object-oriented programming. There is plenty said about that, on WPSE and ...
0
votes
0answers
23 views

Strict Standards: Declaration of … should be compatible with [duplicate]

I try this answer, and i changed the function start_el(&$output, $item, $depth = 0, $args = array() ) { but it did not work. The problem is, I have this theme, link here. and I'm getting this ...
0
votes
2answers
140 views

Wordpress Theme Validator?

I'm looking for a Wordpress theme Validator. Not necessarily something that validates the HTML but more along the lines of adhering to the Wordpress Coding Standards for Theme Development.
0
votes
0answers
37 views

sanatize text string

am I right to use sanitize_text_field() for every echo of a variable? I'm trying to get my code to pass the wordpress coding standards and according to docs this seems to be the proper way to ...
0
votes
0answers
23 views

Download Plugin(Uploaded Wordpress Plugin) from linux server using FTP (Filezilla)

I am Hosting Server with Linux. I uploaded the wordpress plugin from the admin settings. After that i download that plugin from the plugin folder through ftp(Filezilla). When i view the code after ...
1
vote
2answers
277 views

What is WordPress file encoding?

I noticed that WordPress files use UNIX end-of-line and UTF-8 without BOM. Is this a standard that should be used? Is there anything else to pay attention to? I noticed that Filezilla fails to ...
0
votes
1answer
45 views

Is there a common structure for a wordpress formular?

I am working on a plugin for wordpress and was wondering if there is any common standard for the html and css structure and naming which I should use if I create a html form? so is there a definition ...
0
votes
1answer
55 views

spaces inside parenthesis

The Wordpress coding standards states to put parenthesis both inside and outside opening and closing parenthesis. What is the rationale behind spaces on the inside of parenthesis? I've hardly ever ...
0
votes
2answers
272 views

REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker

I have run my theme through WordPress theme checker to see if it can be submitted to WordPress.org. I encountered this error: REQUIRED: Could not find wp_link_pages. See: wp_link_pages But this ...
6
votes
1answer
327 views

Why does WordPress reverse conditional statements?

In WordPress' core code, you often see this: if (1 == $someVar) as opposed to this: if ($someVar == 1) I don't know if the first way is a WordPress-centric style of coding, but I've only noticed ...
1
vote
1answer
390 views

Using global $post v/s $GLOBALS['post']

It's probably more of a PHP question, but I would like to know if there are any differences in using global $post; echo $post->ID; when compared to echo $GLOBALS['post']->ID; to access the ...
10
votes
1answer
144 views

Why isn't WordPress part of Framework Interop Group?

Are there any technical reasons that prevent WP to be part of Framework Interop Group?
1
vote
1answer
61 views

Is it better to create a function or a variable for current_theme_supports?

Well I just asking myself this, there are two ways I could implement this. What would be a better fit to coding standards? Or is this just a a matter of personal like? And what about php and memory, ...
1
vote
1answer
199 views

WordPress mode for emacs?

Is anyone using emacs for editing WordPress and have a mode that follow the code style guidelines that they would care to share? If so I would appreciate it. Thanks.