Errata

Building Web Apps with WordPress

Errata for Building Web Apps with WordPress

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 18
Example 1-1

elseif(is_user_logged_in()) will only go in to that block if the user is logged in, I believe its missing a !

reference: http://codex.wordpress.org/Function_Reference/is_user_logged_in

Devon Noonan  Apr 17, 2014 
PDF Page 24
$autoload description

Description of autoload variable says default is "no" which differs from method declaration and schema and contrasts with the following sentence about caching.

Devon Noonan  Apr 17, 2014 
PDF Page 24
add_option method line

For the optional variables value and deprecated there is a single ' as the default value on the right side if the ='s which would result in some word behaviour if someone used it.

Devon Noonan  Apr 17, 2014 
Printed Page 24
$autoload description under add_option definition

Text indicates: "The default value is no" but the current codex reports:
Default: yes

Dave Phillips  May 20, 2016 
PDF Page 32
Example 2-3

Comment lines have been word wrapped and don't have a leading //. I know you state the examples aren't purely functional all the time but thought you may want to know.

Devon Noonan  Apr 18, 2014 
PDF Page 35
get_posts method

The $output variable takes a string but lacks 's in the method signature line and is given OBJECT which may mislead some folks.

Devon Noonan  Apr 18, 2014 
PDF Page 39
add_post_meta description

$post_id is mistyped as $user_id.

Wataru Hirayama  Apr 20, 2014 
PDF Page 49
1st para under wp_links heading, line 8

"feature is on it’s way out"

should be

"feature is on its way out"

"its", possessive, never has an apostrophe

Roman Orszanski  Dec 30, 2014 
PDF Page 73
penultimate para on page

para currently reads
"$wpdb→get_col($query, $collumn_offset = 0) will return an array of the values in the first column of the MySQL results. The $collumn_offset parameter can be used to grab other columns from the results (0 is the first, 1 is the second, and so on)."

while correct, it might be better to use the same second parameter in the wp documentation: "$column_offset" rather than "$collumn_offset"

This would then read:
$wpdb→get_col($query, $column_offset = 0) will return an array of the values in the first column of the MySQL results. The $column_offset parameter can be used to grab other columns from the results (0 is the first, 1 is the second, and so on)."

Roman Orszanski  Dec 30, 2014 
Printed Page 198
United States

Lines like:

'index.php?name=contact&subject=' . $matches[1],

Should read:

'index.php?name=contact&subject=$1',

Should also include a note RE using single quotes version double quotes here since $1 in double quotes would need to be escaped.

Jason Coleman  Sep 23, 2014 
Printed Page 414
2nd paragraph under Using JavaScript to Increase Performance

...portion of the site can loaded... should be "portion of the site can be loaded" (add be)

Jason Coleman  Jul 03, 2014 
PDF, ePub, Mobi Page 7711
text

Typos:

"asynchronous by using using AJAX calls" should be "asynchronous by using AJAX calls"

"auotmatically filter" should be "automatically filter"

"scannging" should be "scanning"

Anonymous  Sep 17, 2019