Changeset 3220301
- Timestamp:
- 01/10/2025 03:16:07 PM (15 months ago)
- Location:
- skyword-plugin/tags/2.5.3
- Files:
-
- 1 deleted
- 1 edited
- 5 copied
-
. (copied) (copied from skyword-plugin/trunk)
-
php/class-skyword-publish.php (copied) (copied from skyword-plugin/trunk/php/class-skyword-publish.php) (8 diffs)
-
php/class-skyword-shortcode.php (modified) (1 diff)
-
php/options.php (copied) (copied from skyword-plugin/trunk/php/options.php) (1 diff)
-
readme.txt (copied) (copied from skyword-plugin/trunk/readme.txt) (2 diffs)
-
skyword-plugin (deleted)
-
skyword.php (copied) (copied from skyword-plugin/trunk/skyword.php) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
skyword-plugin/tags/2.5.3/php/class-skyword-publish.php
r3078733 r3220301 354 354 $post = get_post( $post_id, ARRAY_A ); 355 355 if ( empty( $post['ID'] ) ) { 356 return new IXR_Error( 404, __( 'Invalid post ID.' ) );356 return new IXR_Error( 404, __( 'Invalid post ID.', 'skyword-plugin' ) ); 357 357 } 358 358 … … 360 360 361 361 if ( ! $result ) { 362 return new IXR_Error( 500, __( 'The post cannot be deleted.' ) );362 return new IXR_Error( 500, __( 'The post cannot be deleted.', 'skyword-plugin' ) ); 363 363 } 364 364 … … 451 451 452 452 $taxonomy['values'] = explode( ',', $taxonomy['values'] ); 453 453 454 454 if ( $this->valuesIsNumeric( $taxonomy['values'] ) ) { 455 455 if ( 'post' === $postType ) { … … 568 568 $upload = wp_upload_bits( $name, null, $bits ); 569 569 if ( ! empty( $upload['error'] ) ) { 570 $errorString = sprintf( __( 'Could not write file %1$s (%2$s)' ), $name, $upload['error'] );570 $errorString = __( 'Could not write file ', 'skyword-plugin') . $name . '(' . $upload['error']. ')'; 571 571 return new IXR_Error( 500, $errorString ); 572 572 } … … 618 618 $upload = wp_upload_bits( $name, null, $bits ); 619 619 if ( ! empty( $upload['error'] ) ) { 620 $errorString = sprintf( __( 'Could not write file %1$s (%2$s)' ), $name, $upload['error'] );620 $errorString = __( 'Could not write file', 'skyword-plugin') . $name . ' (' . $upload['error'] . ')'; 621 621 return new IXR_Error( 500, $errorString ); 622 622 } … … 741 741 if ( 'skywordapikey' !== $username ) { 742 742 if ( ! $user = $wp_xmlrpc_server->login( $username, $password ) ) { 743 $response['message'] = new IXR_Error( 403, __( 'Invalid UN/PW Combination: UN = ' . $username . ' PW = ' . $password ));743 $response['message'] = new IXR_Error( 403, __( 'Invalid UN/PW Combination: UN = ', 'skyword-plugin') . $username . __(' PW = ', 'skyword-plugin') . $password ); 744 744 $response['status'] = 'error'; 745 745 } else if ( ! user_can( $user->ID, 'edit_posts' ) ) { 746 $response['message'] = new IXR_Error( 403, __( 'You do not have sufficient privileges to login.' ) );746 $response['message'] = new IXR_Error( 403, __( 'You do not have sufficient privileges to login.', 'skyword-plugin' ) ); 747 747 $response['status'] = 'error'; 748 748 } else { … … 775 775 $response['status'] = 'success'; 776 776 } else { 777 $response['message'] = new IXR_Error( 403, __( 'Could not match hash.' ) );777 $response['message'] = new IXR_Error( 403, __( 'Could not match hash.' , 'skyword-plugin') ); 778 778 $response['status'] = 'error'; 779 779 } 780 780 } else { 781 $response['message'] = new IXR_Error( 403, __( 'Skyword API key not set.' ) );781 $response['message'] = new IXR_Error( 403, __( 'Skyword API key not set.' , 'skyword-plugin') ); 782 782 $response['status'] = 'error'; 783 783 } 784 784 } else { 785 $response['message'] = new IXR_Error( 403, __( 'Bad timestamp used. ' . $hash . ' Timestamp sent: ' . $timestamp ));785 $response['message'] = new IXR_Error( 403, __( 'Bad timestamp used. ', 'skyword-plugin') . $hash . __(' Timestamp sent: ', 'skyword-plugin') . $timestamp ); 786 786 $response['status'] = 'error'; 787 787 } … … 865 865 } 866 866 else 867 return new IXR_Error( 500, __( 'User cannot be created, ensure new user creation is enabled in both Skyword and WordPress or use the Co-Authors Plus plugin.' ) );867 return new IXR_Error( 500, __( 'User cannot be created, ensure new user creation is enabled in both Skyword and WordPress or use the Co-Authors Plus plugin.', 'skyword-plugin' ) ); 868 868 } 869 869 -
skyword-plugin/tags/2.5.3/php/class-skyword-shortcode.php
r2020690 r3220301 88 88 } 89 89 if (in_array($k, $validattrs, true) && isset($v)) { 90 $iframeattrs .= " " . $k . "=\"" . $v. "\"";90 $iframeattrs .= " " . sanitize_text_field($k) . "=\"" . sanitize_text_field($v) . "\""; 91 91 } 92 92 } -
skyword-plugin/tags/2.5.3/php/options.php
r3078733 r3220301 38 38 <p class="submit"> 39 39 <input name="Submit" type="submit" class="button-primary" 40 value="<?php esc_attr_e( 'Save Changes' ); ?>"/>40 value="<?php esc_attr_e( 'Save Changes', 'skyword-plugin' ); ?>"/> 41 41 </p> 42 42 </form> -
skyword-plugin/tags/2.5.3/readme.txt
r3078733 r3220301 4 4 Requires at least: 3.3 5 5 Tested up to: 6.5.2 6 Stable tag: 2.5. 26 Stable tag: 2.5.3 7 7 8 8 Allows integration with the skyword publishing platform. … … 20 20 21 21 == Changelog == 22 23 = 2.5.3 = 24 * Update iframe shortcode to sanitize user input 25 * Other changes suggested by Plugin Check 22 26 23 27 = 2.5.2 = -
skyword-plugin/tags/2.5.3/skyword.php
r3078733 r3220301 15 15 define( 'SKYWORD_PATH', plugin_dir_path( __FILE__ ) ); 16 16 if ( !defined('SKYWORD_VERSION') ) 17 define( 'SKYWORD_VERSION', "2.5. 2" );17 define( 'SKYWORD_VERSION', "2.5.3" ); 18 18 if ( !defined('SKYWORD_VN') ) 19 define( 'SKYWORD_VN', "2.5 2" ); //This CANNOT have two decimal places.19 define( 'SKYWORD_VN', "2.53" ); //This CANNOT have two decimal places. 20 20 //.1.4 is NOT valid. 21 21
Note: See TracChangeset
for help on using the changeset viewer.