Skip to content

Commit

Permalink
Updated default argument value
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Aug 3, 2015
1 parent fff06da commit ecbd1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/lib/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function papi_get_field( $post_id = null, $slug = null, $default = null, $type =
*
* @return bool
*/
function papi_update_field( $post_id = null, $slug = null, $value = null, $type = Papi_Core_Page::TYPE_POST ) {
function papi_update_field( $post_id = null, $slug = null, $value = null, $type = 'post' ) {
if ( ! is_numeric( $post_id ) && is_string( $post_id ) ) {
$value = $slug;
$slug = $post_id;
Expand Down

0 comments on commit ecbd1f8

Please sign in to comment.