Changeset 3351982
- Timestamp:
- 08/28/2025 12:05:53 PM (6 months ago)
- Location:
- olympus-google-fonts
- Files:
-
- 12 edited
- 1 copied
-
tags/3.9.8 (copied) (copied from olympus-google-fonts/trunk)
-
tags/3.9.8/changelog.txt (modified) (1 diff)
-
tags/3.9.8/class-olympus-google-fonts.php (modified) (1 diff)
-
tags/3.9.8/includes/class-ogf-notifications.php (modified) (2 diffs)
-
tags/3.9.8/includes/customizer/controls/class-ogf-customize-typography-control.php (modified) (1 diff)
-
tags/3.9.8/olympus-google-fonts.php (modified) (1 diff)
-
tags/3.9.8/readme.txt (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/class-olympus-google-fonts.php (modified) (1 diff)
-
trunk/includes/class-ogf-notifications.php (modified) (2 diffs)
-
trunk/includes/customizer/controls/class-ogf-customize-typography-control.php (modified) (1 diff)
-
trunk/olympus-google-fonts.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
olympus-google-fonts/tags/3.9.8/changelog.txt
r3329683 r3351982 1 = 3.9.8 = 2 3 * Add new font weights to the Customizer 4 1 5 = 3.9.7 = 2 6 -
olympus-google-fonts/tags/3.9.8/class-olympus-google-fonts.php
r3329683 r3351982 39 39 public function constants() { 40 40 if ( ! defined( 'OGF_VERSION' ) ) { 41 define( 'OGF_VERSION', '3.9. 7' );41 define( 'OGF_VERSION', '3.9.8' ); 42 42 } 43 43 -
olympus-google-fonts/tags/3.9.8/includes/class-ogf-notifications.php
r3101012 r3351982 78 78 public function seconds_to_words( $seconds ) { 79 79 // Get the years. 80 $years = absint( $seconds / YEAR_IN_SECONDS ) % 100;80 $years = absint( $seconds / YEAR_IN_SECONDS ); 81 81 if ( $years > 0 ) { 82 82 /* translators: Number of years */ 83 return sprintf( _n( 'a year', '%s years', $years, 'olympus-google-fonts' ), $years ); 83 return sprintf( _n( '%s year', '%s years', $years, 'olympus-google-fonts' ), $years ); 84 } 85 // Get the months (approximate 30 days). 86 $months = absint( intval( $seconds ) / ( DAY_IN_SECONDS * 30 ) ); 87 if ( $months > 0 ) { 88 /* translators: Number of months */ 89 return sprintf( _n( '%s month', '%s months', $months, 'olympus-google-fonts' ), $months ); 84 90 } 85 91 // Get the weeks. 86 $weeks = absint( intval( $seconds ) / WEEK_IN_SECONDS ) % 52;87 if ( $weeks > 1) {92 $weeks = absint( intval( $seconds ) / WEEK_IN_SECONDS ); 93 if ( $weeks > 0 ) { 88 94 /* translators: Number of weeks */ 89 return sprintf( _n( ' aweek', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks );95 return sprintf( _n( '%s week', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks ); 90 96 } 91 97 // Get the days. 92 $days = absint( intval( $seconds ) / DAY_IN_SECONDS ) % 7;93 if ( $days > 1) {98 $days = absint( intval( $seconds ) / DAY_IN_SECONDS ); 99 if ( $days > 0 ) { 94 100 /* translators: Number of days */ 95 101 return sprintf( _n( '%s day', '%s days', $days, 'olympus-google-fonts' ), $days ); 96 102 } 97 103 104 /* translators: Number of seconds */ 98 105 return sprintf( _n( '%s second', '%s seconds', $seconds, 'olympus-google-fonts' ), intval( $seconds ) ); 99 106 } … … 244 251 public function set_no_bug() { 245 252 // Bail out if not on correct page. 246 if ( ! isset( $_GET['_wpnonce'] ) || ( ! wp_verify_nonce( $_GET['_wpnonce'], 'ogf-notification-nonce' ) || ! is_admin() || ! isset( $_GET[ $this->nobug_option ] ) || ! current_user_can( 'manage_options' ) ) ) {253 if ( ! isset( $_GET['_wpnonce'] ) || ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'ogf-notification-nonce' ) || ! is_admin() || ! isset( $_GET[ $this->nobug_option ] ) || ! current_user_can( 'manage_options' ) ) ) { 247 254 return; 248 255 } -
olympus-google-fonts/tags/3.9.8/includes/customizer/controls/class-ogf-customize-typography-control.php
r3102658 r3351982 243 243 $choices = array( 244 244 '0' => esc_html__( '- Default -', 'olympus-google-fonts' ), 245 '100' => esc_html__( 'Thin', 'olympus-google-fonts' ), 246 '200' => esc_html__( 'Extra Light', 'olympus-google-fonts' ), 247 '300' => esc_html__( 'Light', 'olympus-google-fonts' ), 245 248 '400' => esc_html__( 'Normal', 'olympus-google-fonts' ), 249 '500' => esc_html__( 'Medium', 'olympus-google-fonts' ), 250 '600' => esc_html__( 'Semi Bold', 'olympus-google-fonts' ), 246 251 '700' => esc_html__( 'Bold', 'olympus-google-fonts' ), 252 '800' => esc_html__( 'Extra Bold', 'olympus-google-fonts' ), 253 '900' => esc_html__( 'Ultra Bold', 'olympus-google-fonts' ), 247 254 ); 248 255 -
olympus-google-fonts/tags/3.9.8/olympus-google-fonts.php
r3329683 r3351982 6 6 * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/ 7 7 * Description: The easiest to customize fonts in WordPress. Optimized for Speed. 1000+ font choices. Supports Google Fonts, Adobe Fonts and Upload Fonts. 8 * Version: 3.9. 78 * Version: 3.9.8 9 9 * Author: Fonts Plugin 10 10 * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description -
olympus-google-fonts/tags/3.9.8/readme.txt
r3329683 r3351982 6 6 Tested up to: 6.8 7 7 License: GPLv2 or later 8 Stable tag: 3.9. 78 Stable tag: 3.9.8 9 9 10 10 The easiest to customize fonts in WordPress. Optimized for Speed. 1000+ font choices. Supports Google Fonts, Adobe Fonts and Upload Fonts. -
olympus-google-fonts/trunk/changelog.txt
r3329683 r3351982 1 = 3.9.8 = 2 3 * Add new font weights to the Customizer 4 1 5 = 3.9.7 = 2 6 -
olympus-google-fonts/trunk/class-olympus-google-fonts.php
r3329683 r3351982 39 39 public function constants() { 40 40 if ( ! defined( 'OGF_VERSION' ) ) { 41 define( 'OGF_VERSION', '3.9. 7' );41 define( 'OGF_VERSION', '3.9.8' ); 42 42 } 43 43 -
olympus-google-fonts/trunk/includes/class-ogf-notifications.php
r3101012 r3351982 78 78 public function seconds_to_words( $seconds ) { 79 79 // Get the years. 80 $years = absint( $seconds / YEAR_IN_SECONDS ) % 100;80 $years = absint( $seconds / YEAR_IN_SECONDS ); 81 81 if ( $years > 0 ) { 82 82 /* translators: Number of years */ 83 return sprintf( _n( 'a year', '%s years', $years, 'olympus-google-fonts' ), $years ); 83 return sprintf( _n( '%s year', '%s years', $years, 'olympus-google-fonts' ), $years ); 84 } 85 // Get the months (approximate 30 days). 86 $months = absint( intval( $seconds ) / ( DAY_IN_SECONDS * 30 ) ); 87 if ( $months > 0 ) { 88 /* translators: Number of months */ 89 return sprintf( _n( '%s month', '%s months', $months, 'olympus-google-fonts' ), $months ); 84 90 } 85 91 // Get the weeks. 86 $weeks = absint( intval( $seconds ) / WEEK_IN_SECONDS ) % 52;87 if ( $weeks > 1) {92 $weeks = absint( intval( $seconds ) / WEEK_IN_SECONDS ); 93 if ( $weeks > 0 ) { 88 94 /* translators: Number of weeks */ 89 return sprintf( _n( ' aweek', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks );95 return sprintf( _n( '%s week', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks ); 90 96 } 91 97 // Get the days. 92 $days = absint( intval( $seconds ) / DAY_IN_SECONDS ) % 7;93 if ( $days > 1) {98 $days = absint( intval( $seconds ) / DAY_IN_SECONDS ); 99 if ( $days > 0 ) { 94 100 /* translators: Number of days */ 95 101 return sprintf( _n( '%s day', '%s days', $days, 'olympus-google-fonts' ), $days ); 96 102 } 97 103 104 /* translators: Number of seconds */ 98 105 return sprintf( _n( '%s second', '%s seconds', $seconds, 'olympus-google-fonts' ), intval( $seconds ) ); 99 106 } … … 244 251 public function set_no_bug() { 245 252 // Bail out if not on correct page. 246 if ( ! isset( $_GET['_wpnonce'] ) || ( ! wp_verify_nonce( $_GET['_wpnonce'], 'ogf-notification-nonce' ) || ! is_admin() || ! isset( $_GET[ $this->nobug_option ] ) || ! current_user_can( 'manage_options' ) ) ) {253 if ( ! isset( $_GET['_wpnonce'] ) || ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'ogf-notification-nonce' ) || ! is_admin() || ! isset( $_GET[ $this->nobug_option ] ) || ! current_user_can( 'manage_options' ) ) ) { 247 254 return; 248 255 } -
olympus-google-fonts/trunk/includes/customizer/controls/class-ogf-customize-typography-control.php
r3102658 r3351982 243 243 $choices = array( 244 244 '0' => esc_html__( '- Default -', 'olympus-google-fonts' ), 245 '100' => esc_html__( 'Thin', 'olympus-google-fonts' ), 246 '200' => esc_html__( 'Extra Light', 'olympus-google-fonts' ), 247 '300' => esc_html__( 'Light', 'olympus-google-fonts' ), 245 248 '400' => esc_html__( 'Normal', 'olympus-google-fonts' ), 249 '500' => esc_html__( 'Medium', 'olympus-google-fonts' ), 250 '600' => esc_html__( 'Semi Bold', 'olympus-google-fonts' ), 246 251 '700' => esc_html__( 'Bold', 'olympus-google-fonts' ), 252 '800' => esc_html__( 'Extra Bold', 'olympus-google-fonts' ), 253 '900' => esc_html__( 'Ultra Bold', 'olympus-google-fonts' ), 247 254 ); 248 255 -
olympus-google-fonts/trunk/olympus-google-fonts.php
r3329683 r3351982 6 6 * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/ 7 7 * Description: The easiest to customize fonts in WordPress. Optimized for Speed. 1000+ font choices. Supports Google Fonts, Adobe Fonts and Upload Fonts. 8 * Version: 3.9. 78 * Version: 3.9.8 9 9 * Author: Fonts Plugin 10 10 * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description -
olympus-google-fonts/trunk/readme.txt
r3329683 r3351982 6 6 Tested up to: 6.8 7 7 License: GPLv2 or later 8 Stable tag: 3.9. 78 Stable tag: 3.9.8 9 9 10 10 The easiest to customize fonts in WordPress. Optimized for Speed. 1000+ font choices. Supports Google Fonts, Adobe Fonts and Upload Fonts.
Note: See TracChangeset
for help on using the changeset viewer.