Changeset 1750040
- Timestamp:
- 10/20/2017 05:36:26 PM (8 years ago)
- Location:
- pre-tag-for-wp-editor/trunk
- Files:
-
- 2 added
- 2 deleted
- 3 edited
-
actions.php (modified) (1 diff)
-
includes/admin/actions.php (modified) (1 diff)
-
includes/admin/functions.php (modified) (6 diffs)
-
includes/admin/js/pre-tag-for-wp-editor.js (added)
-
includes/admin/js/pre-tag-wp-editor.js (deleted)
-
pre-tag-for-wp-editor.php (added)
-
pre-tag-wp-editor.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
pre-tag-for-wp-editor/trunk/actions.php
r1749416 r1750040 5 5 6 6 7 $pre_tag_ wp_editor = pre_tag_wp_editor();8 $plugin_file = $pre_tag_ wp_editor->file;7 $pre_tag_for_wp_editor = pre_tag_for_wp_editor(); 8 $plugin_file = $pre_tag_for_wp_editor->file; 9 9 10 10 // Plugin Activation 11 register_activation_hook( $plugin_file, 'pre_tag_ wp_editor__activation_action' );11 register_activation_hook( $plugin_file, 'pre_tag_for_wp_editor__activation_action' ); 12 12 13 13 // Plugin Deactivation 14 register_deactivation_hook( $plugin_file, 'pre_tag_ wp_editor__deactivation_action' );14 register_deactivation_hook( $plugin_file, 'pre_tag_for_wp_editor__deactivation_action' ); -
pre-tag-for-wp-editor/trunk/includes/admin/actions.php
r1749416 r1750040 8 8 9 9 // For registering styles and scripts 10 add_action( 'admin_init', 'pre_tag_ wp_editor__register_scripts_and_styles_admin_action' );10 add_action( 'admin_init', 'pre_tag_for_wp_editor__register_scripts_and_styles_admin_action' ); 11 11 12 12 // For adding the script files to the array that will get used later 13 add_action( 'pre_tag_ wp_editor__enqueue_style_scripts_admin_settings', 'pre_tag_wp_editor__enqueue_style_scripts_admin_settings' );13 add_action( 'pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings', 'pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings' ); 14 14 15 15 // For priting styles and scripts files urls in header 16 add_action( 'admin_enqueue_scripts', 'pre_tag_ wp_editor__enqueue_style_scripts_by_hook_suffix_action_action' );16 add_action( 'admin_enqueue_scripts', 'pre_tag_for_wp_editor__enqueue_style_scripts_by_hook_suffix_action_action' ); -
pre-tag-for-wp-editor/trunk/includes/admin/functions.php
r1749416 r1750040 5 5 6 6 // Registering scripts and styles for later 7 function pre_tag_ wp_editor__register_scripts_and_styles_admin_action() {8 $pre_tag_ wp_editor = pre_tag_wp_editor();9 $includes_url = $pre_tag_ wp_editor->includes_url;10 $version = $pre_tag_ wp_editor->version;7 function pre_tag_for_wp_editor__register_scripts_and_styles_admin_action() { 8 $pre_tag_for_wp_editor = pre_tag_for_wp_editor(); 9 $includes_url = $pre_tag_for_wp_editor->includes_url; 10 $version = $pre_tag_for_wp_editor->version; 11 11 12 12 // pre tag to wp_editor 13 wp_register_script( 'pre-tag- wp-editor', $includes_url . 'admin/js/pre-tag-wp-editor.js', array(), $version, true );13 wp_register_script( 'pre-tag-for-wp-editor', $includes_url . 'admin/js/pre-tag-for-wp-editor.js', array(), $version, true ); 14 14 } 15 15 16 16 // Function for enqueue styles and scripts in the footer and header for custom pages in WordPress Dashboard 17 function pre_tag_ wp_editor__enqueue_style_scripts_by_hook_suffix_action_action() {17 function pre_tag_for_wp_editor__enqueue_style_scripts_by_hook_suffix_action_action() { 18 18 global $hook_suffix; 19 19 20 $settings = apply_filters( 'pre_tag_ wp_editor__enqueue_style_scripts_admin_settings', array() );20 $settings = apply_filters( 'pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings', array() ); 21 21 22 22 if ( ! empty ( $settings ) ) { … … 41 41 42 42 // List of dashboard pages and what to add 43 function pre_tag_ wp_editor__enqueue_style_scripts_admin_settings( $settings_options = array() ) {43 function pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings( $settings_options = array() ) { 44 44 45 45 // Edit post page … … 47 47 'menu_slug' => 'post.php', 48 48 'scripts' => array( 49 'pre-tag- wp-editor',49 'pre-tag-for-wp-editor', 50 50 ), 51 51 'styles' => array( … … 58 58 'menu_slug' => 'post-new.php', 59 59 'scripts' => array( 60 'pre-tag- wp-editor',60 'pre-tag-for-wp-editor', 61 61 ), 62 62 'styles' => array( … … 69 69 'menu_slug' => 'widgets.php', 70 70 'scripts' => array( 71 'pre-tag- wp-editor',71 'pre-tag-for-wp-editor', 72 72 ), 73 73 'styles' => array( … … 80 80 'menu_slug' => 'customize.php', 81 81 'scripts' => array( 82 'pre-tag- wp-editor',82 'pre-tag-for-wp-editor', 83 83 ), 84 84 'styles' => array(
Note: See TracChangeset
for help on using the changeset viewer.