Plugin Directory

Changeset 3351982


Ignore:
Timestamp:
08/28/2025 12:05:53 PM (6 months ago)
Author:
DannyCooper
Message:

Update to version 3.9.8 from GitHub

Location:
olympus-google-fonts
Files:
12 edited
1 copied

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
    15= 3.9.7 =
    26
  • olympus-google-fonts/tags/3.9.8/class-olympus-google-fonts.php

    r3329683 r3351982  
    3939    public function constants() {
    4040        if ( ! defined( 'OGF_VERSION' ) ) {
    41             define( 'OGF_VERSION', '3.9.7' );
     41            define( 'OGF_VERSION', '3.9.8' );
    4242        }
    4343
  • olympus-google-fonts/tags/3.9.8/includes/class-ogf-notifications.php

    r3101012 r3351982  
    7878        public function seconds_to_words( $seconds ) {
    7979            // Get the years.
    80             $years = absint( $seconds / YEAR_IN_SECONDS ) % 100;
     80            $years = absint( $seconds / YEAR_IN_SECONDS );
    8181            if ( $years > 0 ) {
    8282                /* 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 );
    8490            }
    8591            // 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 ) {
    8894                /* translators: Number of weeks */
    89                 return sprintf( _n( 'a week', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks );
     95                return sprintf( _n( '%s week', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks );
    9096            }
    9197            // 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 ) {
    94100                /* translators: Number of days */
    95101                return sprintf( _n( '%s day', '%s days', $days, 'olympus-google-fonts' ), $days );
    96102            }
    97103
     104            /* translators: Number of seconds */
    98105            return sprintf( _n( '%s second', '%s seconds', $seconds, 'olympus-google-fonts' ), intval( $seconds ) );
    99106        }
     
    244251        public function set_no_bug() {
    245252            // 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' ) ) ) {
    247254                return;
    248255            }
  • olympus-google-fonts/tags/3.9.8/includes/customizer/controls/class-ogf-customize-typography-control.php

    r3102658 r3351982  
    243243        $choices = array(
    244244            '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' ),
    245248            '400' => esc_html__( 'Normal', 'olympus-google-fonts' ),
     249            '500' => esc_html__( 'Medium', 'olympus-google-fonts' ),
     250            '600' => esc_html__( 'Semi Bold', 'olympus-google-fonts' ),
    246251            '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' ),
    247254        );
    248255
  • olympus-google-fonts/tags/3.9.8/olympus-google-fonts.php

    r3329683 r3351982  
    66 * Plugin URI:  https://wordpress.org/plugins/olympus-google-fonts/
    77 * 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.7
     8 * Version:     3.9.8
    99 * Author:      Fonts Plugin
    1010 * 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  
    66Tested up to: 6.8
    77License: GPLv2 or later
    8 Stable tag: 3.9.7
     8Stable tag: 3.9.8
    99
    1010The 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
    15= 3.9.7 =
    26
  • olympus-google-fonts/trunk/class-olympus-google-fonts.php

    r3329683 r3351982  
    3939    public function constants() {
    4040        if ( ! defined( 'OGF_VERSION' ) ) {
    41             define( 'OGF_VERSION', '3.9.7' );
     41            define( 'OGF_VERSION', '3.9.8' );
    4242        }
    4343
  • olympus-google-fonts/trunk/includes/class-ogf-notifications.php

    r3101012 r3351982  
    7878        public function seconds_to_words( $seconds ) {
    7979            // Get the years.
    80             $years = absint( $seconds / YEAR_IN_SECONDS ) % 100;
     80            $years = absint( $seconds / YEAR_IN_SECONDS );
    8181            if ( $years > 0 ) {
    8282                /* 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 );
    8490            }
    8591            // 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 ) {
    8894                /* translators: Number of weeks */
    89                 return sprintf( _n( 'a week', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks );
     95                return sprintf( _n( '%s week', '%s weeks', $weeks, 'olympus-google-fonts' ), $weeks );
    9096            }
    9197            // 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 ) {
    94100                /* translators: Number of days */
    95101                return sprintf( _n( '%s day', '%s days', $days, 'olympus-google-fonts' ), $days );
    96102            }
    97103
     104            /* translators: Number of seconds */
    98105            return sprintf( _n( '%s second', '%s seconds', $seconds, 'olympus-google-fonts' ), intval( $seconds ) );
    99106        }
     
    244251        public function set_no_bug() {
    245252            // 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' ) ) ) {
    247254                return;
    248255            }
  • olympus-google-fonts/trunk/includes/customizer/controls/class-ogf-customize-typography-control.php

    r3102658 r3351982  
    243243        $choices = array(
    244244            '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' ),
    245248            '400' => esc_html__( 'Normal', 'olympus-google-fonts' ),
     249            '500' => esc_html__( 'Medium', 'olympus-google-fonts' ),
     250            '600' => esc_html__( 'Semi Bold', 'olympus-google-fonts' ),
    246251            '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' ),
    247254        );
    248255
  • olympus-google-fonts/trunk/olympus-google-fonts.php

    r3329683 r3351982  
    66 * Plugin URI:  https://wordpress.org/plugins/olympus-google-fonts/
    77 * 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.7
     8 * Version:     3.9.8
    99 * Author:      Fonts Plugin
    1010 * Author URI:  https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
  • olympus-google-fonts/trunk/readme.txt

    r3329683 r3351982  
    66Tested up to: 6.8
    77License: GPLv2 or later
    8 Stable tag: 3.9.7
     8Stable tag: 3.9.8
    99
    1010The 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.