Skip to content

Commit 4e38e36

Browse files
authored
gw-update-posts.php: Added support to update post excerpt.
1 parent aca114f commit 4e38e36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gravity-forms/gw-update-posts.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct( $args = array() ) {
2525
'title' => false,
2626
'content' => false,
2727
'author' => false,
28-
'excerpt' => false,
28+
'excerpt' => false,
2929
'status' => false,
3030
'slug' => false,
3131
'terms' => array(),
@@ -105,10 +105,10 @@ public function update_post_by_entry( $entry, $form ) {
105105
if ( $this->_args['author'] ) {
106106
$post->post_author = (int) rgar( $entry, $this->_args['author'] );
107107
}
108-
109-
if ($this->_args['excerpt']) {
110-
$post->post_excerpt = rgar($entry, $this->_args['excerpt']);
111-
}
108+
109+
if ( $this->_args['excerpt'] ) {
110+
$post->post_excerpt = rgar( $entry, $this->_args['excerpt'] );
111+
}
112112

113113
if ( $this->_args['status'] ) {
114114
$stati = get_post_stati();

0 commit comments

Comments
 (0)