PluginProbe
Sharing Image / 3.7
Sharing Image v3.7
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
← All changes | classes/class-tools.php +1 -6 3.103.7 View file →
@@ -35,8 +35,9 @@
35 35 /**
36 36 * Handle tools requests from admin-side.
37 37 */
38 38 public static function handle_requests() {
39 + add_action( 'admin_post_sharing_image_save_config', array( __CLASS__, 'save_config_tab' ) );
39 40 add_action( 'admin_post_sharing_image_export_templates', array( __CLASS__, 'export_templates' ) );
40 41 add_action( 'admin_post_sharing_image_import_templates', array( __CLASS__, 'import_templates' ) );
41 42 add_action( 'admin_post_sharing_image_clone_template', array( __CLASS__, 'clone_template' ) );
42 43 add_action( 'admin_post_sharing_image_clear_templates', array( __CLASS__, 'clear_templates' ) );
@@ -106,14 +107,8 @@
106 107 Settings::redirect_with_message( $redirect, 7 );
107 108 }
108 109
109 110 foreach ( $templates as $index => $template ) {
110 - $index = sanitize_key( $index );
111 -
112 - if ( ! Templates::is_valid_unique_index( $index ) ) {
113 - $index = Templates::create_unique_index();
114 - }
115 -
116 111 Templates::update_templates( $index, Templates::sanitize_editor( $template ) );
117 112 }
118 113
119 114 Settings::redirect_with_message( $redirect, 9 );