The coding-standards tag has no wiki summary.
0
votes
1answer
35 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
30 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
0answers
8 views
Using prefixes in Wordpress [duplicate]
I have a question about prefixes that pro Wordpress themes tend to use.
Example:
<?php bandit::lang('post_meta_on',__('on','sprout')); ?>
Why 'sprout' is there? What is it good for?
Thank ...
0
votes
2answers
78 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
274 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 ...
0
votes
1answer
121 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 ...
9
votes
1answer
122 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
42 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
165 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.