Make WordPress Core

Ticket #56301: file.php.patch

File file.php.patch, 600 bytes (added by sajjad67, 16 months ago)

A Testing Patch, Added an action hook inside wp_edit_theme_plugin_file() function

  • file.php

     
    636636                $theme->cache_delete();
    637637        }
    638638
     639        /**
     640         * Fires after theme-plugin file edited (doc will be added, this is just a testing patch).
     641         *
     642         * @since 6.0.0
     643         *
     644         * @param string $real_file The file full path.
     645         * @param string $content New updated content.
     646         * @param string $previous_content Previous content.
     647         */
     648        do_action( 'after_theme_plugin_file_edited', $real_file, $content, $previous_content );
     649
    639650        return true;
    640651}
    641652