Changeset 3443154
- Timestamp:
- 01/20/2026 10:46:59 AM (4 weeks ago)
- Location:
- smartmetadesc
- Files:
-
- 5 deleted
- 2 edited
- 10 copied
-
tags/2.0.0/README.md (deleted)
-
tags/2.0.0/vendor (deleted)
-
tags/2.0.1 (copied) (copied from smartmetadesc/trunk)
-
tags/2.0.1/assets/css/mittsfcsmd_admin.css (copied) (copied from smartmetadesc/trunk/assets/css/mittsfcsmd_admin.css)
-
tags/2.0.1/assets/js/mittsfcsmd_admin.js (copied) (copied from smartmetadesc/trunk/assets/js/mittsfcsmd_admin.js)
-
tags/2.0.1/assets/js/mittsfcsmd_column.js (copied) (copied from smartmetadesc/trunk/assets/js/mittsfcsmd_column.js)
-
tags/2.0.1/assets/screenshot-1.png (copied) (copied from smartmetadesc/trunk/assets/screenshot-1.png)
-
tags/2.0.1/assets/screenshot-2.png (copied) (copied from smartmetadesc/trunk/assets/screenshot-2.png)
-
tags/2.0.1/languages/smartmetadesc-en_US.po (copied) (copied from smartmetadesc/trunk/languages/smartmetadesc-en_US.po)
-
tags/2.0.1/languages/smartmetadesc-es_ES.mo (deleted)
-
tags/2.0.1/languages/smartmetadesc-es_ES.po (deleted)
-
tags/2.0.1/languages/smartmetadesc.pot (copied) (copied from smartmetadesc/trunk/languages/smartmetadesc.pot)
-
tags/2.0.1/readme.txt (copied) (copied from smartmetadesc/trunk/readme.txt) (2 diffs)
-
tags/2.0.1/smartmetadesc.php (copied) (copied from smartmetadesc/trunk/smartmetadesc.php) (4 diffs)
-
tags/2.0.1/vendor/freemius (deleted)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smartmetadesc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smartmetadesc/tags/2.0.1/readme.txt
r3440950 r3443154 4 4 Requires at least: 4.7 5 5 Tested up to: 6.9 6 Stable tag: 2.0. 06 Stable tag: 2.0.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 2.0.1 = 54 * Fixed sanitization and escaping issues (Security hardening). 55 * Removed discouraged load_plugin_textdomain() call. 56 * Improved REST API and AJAX nonce verification. 57 53 58 = 2.0.0 = 54 59 * Major Release: Complete code refactor. -
smartmetadesc/tags/2.0.1/smartmetadesc.php
r3440940 r3443154 3 3 Plugin Name: Smart Meta Desc 4 4 Description: Show a list of posts without a meta description and allow writing or generating them based on their content using AI. 5 Version: 2.0. 05 Version: 2.0.1 6 6 Author: Mitts For Code 7 7 Author URI: https://mittsforcode.es … … 81 81 82 82 /** 83 * Carga de traducciones84 */85 add_action( 'plugins_loaded', 'mittsfcsmd_load_textdomain' );86 function mittsfcsmd_load_textdomain() {87 load_plugin_textdomain( 'smartmetadesc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );88 }89 90 /**91 83 * Menú de ajustes 92 84 */ … … 236 228 'callback' => 'mittsfcsmd_save_meta_descripcion', 237 229 'permission_callback' => function () { 238 $nonce = isset( $_SERVER['HTTP_X_WP_NONCE'] ) ? sanitize_text_field( $_SERVER['HTTP_X_WP_NONCE']) : '';230 $nonce = isset( $_SERVER['HTTP_X_WP_NONCE'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_WP_NONCE'] ) ) : ''; 239 231 if ( !wp_verify_nonce( $nonce, 'wp_rest' ) ) { 240 232 return new WP_Error('rest_forbidden', __( 'Nonce invalid.', 'smartmetadesc' ), array('status' => 403)); … … 294 286 add_action( 'wp_ajax_mittsfcsmd_save_meta_desc', 'mittsfcsmd_save_meta_desc_ajax' ); 295 287 function mittsfcsmd_save_meta_desc_ajax() { 296 $nonce = isset($_POST['nonce']) ? sanitize_text_field( $_POST['nonce']) : '';288 $nonce = isset($_POST['nonce']) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : ''; 297 289 if ( !wp_verify_nonce( $nonce, 'mittsfcsmd_nonce' ) || !current_user_can( 'edit_posts' ) ) { 298 290 wp_send_json_error( __( 'Permission denied.', 'smartmetadesc' ) ); -
smartmetadesc/trunk/readme.txt
r3440950 r3443154 4 4 Requires at least: 4.7 5 5 Tested up to: 6.9 6 Stable tag: 2.0. 06 Stable tag: 2.0.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 2.0.1 = 54 * Fixed sanitization and escaping issues (Security hardening). 55 * Removed discouraged load_plugin_textdomain() call. 56 * Improved REST API and AJAX nonce verification. 57 53 58 = 2.0.0 = 54 59 * Major Release: Complete code refactor. -
smartmetadesc/trunk/smartmetadesc.php
r3440940 r3443154 3 3 Plugin Name: Smart Meta Desc 4 4 Description: Show a list of posts without a meta description and allow writing or generating them based on their content using AI. 5 Version: 2.0. 05 Version: 2.0.1 6 6 Author: Mitts For Code 7 7 Author URI: https://mittsforcode.es … … 81 81 82 82 /** 83 * Carga de traducciones84 */85 add_action( 'plugins_loaded', 'mittsfcsmd_load_textdomain' );86 function mittsfcsmd_load_textdomain() {87 load_plugin_textdomain( 'smartmetadesc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );88 }89 90 /**91 83 * Menú de ajustes 92 84 */ … … 236 228 'callback' => 'mittsfcsmd_save_meta_descripcion', 237 229 'permission_callback' => function () { 238 $nonce = isset( $_SERVER['HTTP_X_WP_NONCE'] ) ? sanitize_text_field( $_SERVER['HTTP_X_WP_NONCE']) : '';230 $nonce = isset( $_SERVER['HTTP_X_WP_NONCE'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_WP_NONCE'] ) ) : ''; 239 231 if ( !wp_verify_nonce( $nonce, 'wp_rest' ) ) { 240 232 return new WP_Error('rest_forbidden', __( 'Nonce invalid.', 'smartmetadesc' ), array('status' => 403)); … … 294 286 add_action( 'wp_ajax_mittsfcsmd_save_meta_desc', 'mittsfcsmd_save_meta_desc_ajax' ); 295 287 function mittsfcsmd_save_meta_desc_ajax() { 296 $nonce = isset($_POST['nonce']) ? sanitize_text_field( $_POST['nonce']) : '';288 $nonce = isset($_POST['nonce']) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : ''; 297 289 if ( !wp_verify_nonce( $nonce, 'mittsfcsmd_nonce' ) || !current_user_can( 'edit_posts' ) ) { 298 290 wp_send_json_error( __( 'Permission denied.', 'smartmetadesc' ) );
Note: See TracChangeset
for help on using the changeset viewer.