Skip to content

Commit

Permalink
Fix a couple more PHP notices, update .pot file
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz committed Jul 17, 2014
1 parent 842ca39 commit ff034ec
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 67 deletions.
2 changes: 1 addition & 1 deletion includes/class-admin-welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function getting_started_screen() {
<div class="updated inline">
<h3><?php esc_html_e('How-To &amp; Documentation', 'gravity-view'); ?></h3>
<p>We&rsquo;re adding lots of features are working on providing helpful guides to get started and developer documentation.</p>
<p><a class="button button-secondary button-large" href="https://katzwebservices.zendesk.com/hc/en-us/categories/200136096">See our Help Docs</a>
<p><a class="button button-secondary button-primary" href="https://katzwebservices.zendesk.com/hc/en-us/categories/200136096">See our Help Docs</a>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion includes/class-frontend-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static function single_entry_title( $title, $passed_post_id ) {

// Don't modify the title for anything other than the current view/post.
// This is true for embedded shortcodes and Views.
if( (int)$post->ID !== (int)$passed_post_id ) {
if( is_object($post) && (int)$post->ID !== (int)$passed_post_id ) {
return $title;
}

Expand Down
6 changes: 5 additions & 1 deletion includes/connector-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ function gravityview_get_field( $form, $field_id ) {
*/
function has_gravityview_shortcode( $post = NULL ) {

if( is_a( $post, 'WP_Post' ) && 'gravityview' === get_post_type( $post ) ) {
if( !is_a( $post, 'WP_Post' ) ) {
return false;
}

if( 'gravityview' === get_post_type( $post ) ) {
return true;
}

Expand Down
Binary file modified languages/gravity-view.mo
Binary file not shown.
Loading

0 comments on commit ff034ec

Please sign in to comment.