We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b05cc8 + 9935d5a commit db28e34Copy full SHA for db28e34
inc/media_rename/attachment_edit.php
@@ -85,6 +85,10 @@ public function enqueue_scripts( $hook ) {
85
* @return array Modified form fields.
86
*/
87
public function add_attachment_fields( $form_fields, $post ) {
88
+ if ( ! function_exists( 'get_current_screen' ) ) {
89
+ return $form_fields;
90
+ }
91
+
92
$screen = get_current_screen();
93
94
$attachment = new Optml_Attachment_Model( $post->ID );
0 commit comments