Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPT: Fatal error when using Front End Editor #7955

Closed
kraftbj opened this issue Oct 7, 2017 · 0 comments · Fixed by #7956
Closed

CPT: Fatal error when using Front End Editor #7955

kraftbj opened this issue Oct 7, 2017 · 0 comments · Fixed by #7956
Assignees
Labels
[Feature] Custom Content Types Custom post or content types (usually for testimonials and portfolios) and their settings. [Pri] Low [Type] Bug When a feature is broken and / or not performing as intended

Comments

@kraftbj
Copy link
Contributor

kraftbj commented Oct 7, 2017

When using the Front End Editor feature plugin, a fatal is thrown due to us assuming the enter_title_here filter will only run within wp-admin

Fatal error: Uncaught Error: Call to undefined function get_current_screen() in
/public_html/wp-content/plugins/jetpack-dev/modules/custom-post-types/testimonial.php:371
Stack trace: #0
/public_html/wp-includes/class-wp-hook.php(288):
Jetpack_Testimonial->change_default_title('Enter title her...') #1
/public_html/wp-includes/plugin.php(203):
WP_Hook->apply_filters('Enter title her...', Array) #2
/public_html/wp-content/plugins/wp-front-end-editor/class-fee.php(242):
apply_filters('enter_title_her...', 'Enter title her...', Object(WP_Post)) #3
public_html/wp-includes/class-wp-hook.php(286):
FEE->register_scripts('') #4
public_html/wp-includes/class-wp-hook.php(310):
WP_Hook->apply_filters(NULL, Array) #5
public_html/wp-includes/plugin.php(453):
WP_Hook->do_action(Array) #6 in
public_html/wp-content/plugins/jetpack-dev/modules/custom-post-types/testimonial.php
on line 371

Reported by beta tester in 722002-zen

@kraftbj kraftbj added [Feature] Custom Content Types Custom post or content types (usually for testimonials and portfolios) and their settings. [Pri] Low [Type] Bug When a feature is broken and / or not performing as intended labels Oct 7, 2017
@kraftbj kraftbj self-assigned this Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Custom Content Types Custom post or content types (usually for testimonials and portfolios) and their settings. [Pri] Low [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant