Changeset 10102 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php
- Timestamp:
- 07/27/2020 09:23:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php
r10101 r10102 802 802 803 803 /** 804 * Check that the plugin uses `wp_set_script_translations`. 805 */ 806 function check_for_translation_function() { 807 $functions = wp_list_pluck( $this->php_function_calls, 0 ); 808 if ( ! in_array( 'wp_set_script_translations', $functions ) ) { 809 $this->record_result( 810 __FUNCTION__, 811 'warning', 812 __( 'No translations are loaded for the scripts.', 'wporg-plugins' ), 813 $call 814 ); 815 } 816 } 817 818 /** 804 819 * Does it make PHP function calls that shouldn't be in a block plugin? 805 820 */
Note: See TracChangeset
for help on using the changeset viewer.