Plugin Directory

Changeset 2690235


Ignore:
Timestamp:
03/07/2022 04:44:56 PM (4 years ago)
Author:
ircary
Message:

2022.2

*Release Date - 07 March 2022*

  • Added:
    • add_filter( 'lct/check_for_bad_youtubes/check_pages', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/check_for_bad_youtubes/check_posts', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/check_for_bad_youtubes/check_fusion', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/check_for_bad_iframes/check_pages', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/check_for_bad_iframes/check_posts', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/avada/check_for_bad_avada_assets/google_analytics', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/avada/check_for_bad_avada_assets/head_space', [ $this, 'disable_warning_notifications' ] );
    • add_filter( 'lct/avada/check_for_bad_avada_assets/custom_css', [ $this, 'disable_warning_notifications' ] );
  • Updated:
    • lct_mu{}
  • Improved:
    • lct_make_status_name()
    • lct_acf_format_value_true_false_display_format()
    • lct_acf_format_value_taxonomy()
    • lct_acf_loaded{}get_group_of_field()
    • lct_Avada_admin{}wp_enqueue_styles()
  • Moved:
    • afwp_acf_base64_decode()
Location:
lct-useful-shortcodes-functions/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • lct-useful-shortcodes-functions/trunk/code/admin/lct.php

    r2679272 r2690235  
    5959
    6060    /**
    61      * @verified 2020.11.09
     61     * @verified 2022.02.17
    6262     */
    6363    class lct_mu {
     
    9292            'dim-comment',
    9393            'add-link-category',
    94             'add-tag',
     94            //'add-tag',
    9595            'get-tagcloud',
    9696            'get-comments',
  • lct-useful-shortcodes-functions/trunk/code/api/_helpers.php

    r2679272 r2690235  
    22842284 * @return bool|string
    22852285 * @since    2017.96
    2286  * @verified 2018.02.13
     2286 * @verified 2022.02.22
    22872287 */
    22882288function lct_make_status_name( $status, $status_meta = [] ) {
     
    22942294
    22952295
    2296         if ( $status_meta[ get_cnst( 'a_c_f_tax_status' ) ] === false )
     2296        if (
     2297            ! isset( $status_meta[ get_cnst( 'a_c_f_tax_status' ) ] ) ||
     2298            $status_meta[ get_cnst( 'a_c_f_tax_status' ) ] === false
     2299        ) {
    22972300            $name .= ' (disabled)';
     2301        }
    22982302    }
    22992303
  • lct-useful-shortcodes-functions/trunk/code/plugins/Avada/_admin.php

    r2679272 r2690235  
    380380     *
    381381     * @since    0.0
    382      * @verified 2020.11.27
     382     * @verified 2022.02.23
    383383     */
    384384    function wp_enqueue_styles() {
     
    430430                        padding-top: %s;
    431431                        padding-bottom: %s;
     432                    }
     433                    .fusion-body .fusion-page-title-bar .fusion-page-title-row,
     434                    .fusion-body .fusion-page-title-bar .fusion-page-title-wrapper{
     435                        height: auto !important;
    432436                    }',
    433437                    $top,
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/_loaded.php

    r2679272 r2690235  
    857857     * @return null
    858858     * @since    2018.62
    859      * @verified 2019.05.03
     859     * @verified 2022.02.15
    860860     */
    861861    function get_group_of_field( $field_parent ) {
     
    870870        ) {
    871871            $r = $field_parent;
     872        } else if (
     873            ! acf_is_local_field_group( $field_parent ) &&
     874            is_numeric( $field_parent ) &&
     875            ( $parent_group = acf_get_field_group( $field_parent ) ) &&
     876            ! empty( $parent_group['key'] ) &&
     877            acf_is_field_group_key( $parent_group['key'] )
     878        ) {
     879            $r = $parent_group['key'];
    872880        } else if ( acf_is_field_key( $field_parent ) ) {
    873881            if (
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/api/_sort.php

    r2493704 r2690235  
    429429    return $hide_this;
    430430}
     431
     432
     433if ( ! function_exists( 'afwp_acf_base64_decode' ) ) {
     434    /**
     435     * base64 decode a value
     436     *
     437     * @param string $value
     438     *
     439     * @return string
     440     * @date     2021.10.19
     441     * @since    2021.3
     442     * @verified 2022.01.20
     443     */
     444    function afwp_acf_base64_decode( $value ) {
     445        $prefix = 'base64::';
     446
     447
     448        /**
     449         * Base decode the value if needed
     450         */
     451        if (
     452            is_string( $value ) && //Has to be a sting
     453            strpos( $value, $prefix ) === 0 //Needs to already be encoded
     454        ) {
     455            $value = base64_decode( str_replace( $prefix, '', $value ) );
     456            $value = _wp_specialchars( $value );
     457        }
     458
     459
     460        return $value;
     461    }
     462
     463
     464    /**
     465     * base64 encode a value
     466     *
     467     * @param string $value
     468     *
     469     * @return string
     470     * @date     2021.10.19
     471     * @since    2021.3
     472     * @verified 2021.10.19
     473     */
     474    function afwp_acf_base64_encode( $value ) {
     475        $prefix = 'base64::';
     476
     477
     478        /**
     479         * Base encode the value if needed
     480         */
     481        if (
     482            is_string( $value ) && //Has to be a sting
     483            strpos( $value, $prefix ) === false //Can't already be encoded
     484        ) {
     485            $value = $prefix . base64_encode( $value );
     486        }
     487
     488
     489        return $value;
     490    }
     491
     492
     493    /**
     494     * JSON decode a value
     495     *
     496     * @param string $value
     497     *
     498     * @return array|string|mixed
     499     * @date     2021.10.19
     500     * @since    2021.3
     501     * @verified 2022.01.20
     502     */
     503    function afwp_acf_json_decode( $value ) {
     504        /**
     505         * Do a quick decode to get the last error
     506         */
     507        $decoded = afwp_acf_base64_decode( $value );
     508
     509
     510        /**
     511         * Not a JSON string, force an error
     512         */
     513        if ( ! is_string( $decoded ) ) {
     514            json_decode( INF );
     515
     516
     517            return null;
     518        }
     519
     520        /**
     521         * Do a quick decode to get the last error
     522         */
     523        $decoded = json_decode( $decoded, true, 512, JSON_BIGINT_AS_STRING );
     524
     525
     526        /**
     527         * JSON decode the value if needed
     528         */
     529        if ( json_last_error() === JSON_ERROR_NONE )
     530            return $decoded;
     531
     532
     533        /**
     534         * Return null
     535         */
     536        return null;
     537    }
     538
     539
     540    /**
     541     * MAYBE JSON decode a value
     542     *
     543     * @param string|array $value
     544     *
     545     * @return array|string|mixed
     546     * @date       2022.01.18
     547     * @since      2022.1
     548     * @verified   2022.01.20
     549     */
     550    function afwp_acf_maybe_json_decode( $value ) {
     551        /**
     552         * Do a quick decode to get the last error
     553         */
     554        $decoded = afwp_acf_json_decode( $value );
     555
     556
     557        /**
     558         * JSON decode the value if needed
     559         */
     560        if ( json_last_error() === JSON_ERROR_NONE )
     561            return $decoded;
     562
     563
     564        /**
     565         * Just send back the original value
     566         */
     567        return $value;
     568    }
     569
     570
     571    /**
     572     * JSON encode a value
     573     *
     574     * @param array $value
     575     *
     576     * @return string|false
     577     * @date     2021.10.19
     578     * @since    2021.3
     579     * @verified 2022.01.20
     580     */
     581    function afwp_acf_json_encode( $value ) {
     582        /**
     583         * Do a quick encode to get the last error
     584         */
     585        $encoded = wp_json_encode( $value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_LINE_TERMINATORS | JSON_NUMERIC_CHECK );
     586
     587
     588        /**
     589         * JSON encode the value if needed
     590         */
     591        if ( json_last_error() === JSON_ERROR_NONE )
     592            return $encoded;
     593
     594
     595        /**
     596         * Return false
     597         */
     598        return false;
     599    }
     600}
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/api/form.php

    r2679272 r2690235  
    16861686 * @return string
    16871687 * @since    2019.1
    1688  * @verified 2019.04.18
     1688 * @verified 2022.02.15
    16891689 */
    16901690function lct_acf_format_value_true_false_display_format( $value, $field ) {
     
    16961696
    16971697
    1698     if ( $message = wp_strip_all_tags( $field['message'] ) )
     1698    if (
     1699        isset( $field['message'] ) &&
     1700        ( $message = wp_strip_all_tags( $field['message'] ) )
     1701    ) {
    16991702        $value = $answer . ' — ' . $message;
    1700     else
     1703    } else {
    17011704        $value = $answer;
     1705    }
    17021706
    17031707
     
    18221826 * @return mixed
    18231827 * @since    2017.84
    1824  * @verified 2020.08.27
     1828 * @verified 2022.02.17
    18251829 */
    18261830function lct_acf_format_value_taxonomy( $value, $field ) {
     
    18351839                $term_ids[] = $term;
    18361840            } else {
    1837                 $term_ids[] = get_term( (int) $term, $field['taxonomy'] );
     1841                $taxonomy = '';
     1842                if ( isset( $field['taxonomy'] ) )
     1843                    $taxonomy = $field['taxonomy'];
     1844
     1845
     1846                $term_ids[] = get_term( (int) $term, $taxonomy );
    18381847            }
    18391848        }
     
    18411850        $term_ids[] = $value;
    18421851    } else if ( is_numeric( $value ) ) {
    1843         $term_ids[] = get_term( (int) $value, $field['taxonomy'] );
     1852        $taxonomy = '';
     1853        if ( isset( $field['taxonomy'] ) )
     1854            $taxonomy = $field['taxonomy'];
     1855
     1856
     1857        $term_ids[] = get_term( (int) $value, $taxonomy );
    18441858    }
    18451859
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/inactive.php

    r2679272 r2690235  
    4343    }
    4444}
    45 
    46 
    47 if ( ! function_exists( 'afwp_acf_base64_decode' ) ) {
    48     /**
    49      * base64 decode a value
    50      *
    51      * @param string $value
    52      *
    53      * @return string
    54      * @date     2021.10.19
    55      * @since    2021.3
    56      * @verified 2022.01.20
    57      */
    58     function afwp_acf_base64_decode( $value ) {
    59         $prefix = 'base64::';
    60 
    61 
    62         /**
    63          * Base decode the value if needed
    64          */
    65         if (
    66             is_string( $value ) && //Has to be a sting
    67             strpos( $value, $prefix ) === 0 //Needs to already be encoded
    68         ) {
    69             $value = base64_decode( str_replace( $prefix, '', $value ) );
    70             $value = _wp_specialchars( $value );
    71         }
    72 
    73 
    74         return $value;
    75     }
    76 
    77 
    78     /**
    79      * base64 encode a value
    80      *
    81      * @param string $value
    82      *
    83      * @return string
    84      * @date     2021.10.19
    85      * @since    2021.3
    86      * @verified 2021.10.19
    87      */
    88     function afwp_acf_base64_encode( $value ) {
    89         $prefix = 'base64::';
    90 
    91 
    92         /**
    93          * Base encode the value if needed
    94          */
    95         if (
    96             is_string( $value ) && //Has to be a sting
    97             strpos( $value, $prefix ) === false //Can't already be encoded
    98         ) {
    99             $value = $prefix . base64_encode( $value );
    100         }
    101 
    102 
    103         return $value;
    104     }
    105 
    106 
    107     /**
    108      * JSON decode a value
    109      *
    110      * @param string $value
    111      *
    112      * @return array|string|mixed
    113      * @date     2021.10.19
    114      * @since    2021.3
    115      * @verified 2022.01.20
    116      */
    117     function afwp_acf_json_decode( $value ) {
    118         /**
    119          * Do a quick decode to get the last error
    120          */
    121         $decoded = afwp_acf_base64_decode( $value );
    122 
    123 
    124         /**
    125          * Not a JSON string, force an error
    126          */
    127         if ( ! is_string( $decoded ) ) {
    128             json_decode( INF );
    129 
    130 
    131             return null;
    132         }
    133 
    134         /**
    135          * Do a quick decode to get the last error
    136          */
    137         $decoded = json_decode( $decoded, true, 512, JSON_BIGINT_AS_STRING );
    138 
    139 
    140         /**
    141          * JSON decode the value if needed
    142          */
    143         if ( json_last_error() === JSON_ERROR_NONE )
    144             return $decoded;
    145 
    146 
    147         /**
    148          * Return null
    149          */
    150         return null;
    151     }
    152 
    153 
    154     /**
    155      * MAYBE JSON decode a value
    156      *
    157      * @param string|array $value
    158      *
    159      * @return array|string|mixed
    160      * @date       2022.01.18
    161      * @since      2022.1
    162      * @verified   2022.01.20
    163      */
    164     function afwp_acf_maybe_json_decode( $value ) {
    165         /**
    166          * Do a quick decode to get the last error
    167          */
    168         $decoded = afwp_acf_json_decode( $value );
    169 
    170 
    171         /**
    172          * JSON decode the value if needed
    173          */
    174         if ( json_last_error() === JSON_ERROR_NONE )
    175             return $decoded;
    176 
    177 
    178         /**
    179          * Just send back the original value
    180          */
    181         return $value;
    182     }
    183 
    184 
    185     /**
    186      * JSON encode a value
    187      *
    188      * @param array $value
    189      *
    190      * @return string|false
    191      * @date     2021.10.19
    192      * @since    2021.3
    193      * @verified 2022.01.20
    194      */
    195     function afwp_acf_json_encode( $value ) {
    196         /**
    197          * Do a quick encode to get the last error
    198          */
    199         $encoded = wp_json_encode( $value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_LINE_TERMINATORS | JSON_NUMERIC_CHECK );
    200 
    201 
    202         /**
    203          * JSON encode the value if needed
    204          */
    205         if ( json_last_error() === JSON_ERROR_NONE )
    206             return $encoded;
    207 
    208 
    209         /**
    210          * Return false
    211          */
    212         return false;
    213     }
    214 }
  • lct-useful-shortcodes-functions/trunk/code/plugins/acf/op_main_settings_groups.php

    r2310439 r2690235  
    45974597            ],
    45984598            [
     4599                'key'                => 'field_62262e7ce14c1',
     4600                'label'              => 'All Content Warning Notifications',
     4601                'name'               => 'lct:::disable_warning_notifications',
     4602                'type'               => 'true_false',
     4603                'instructions'       => '',
     4604                'required'           => 0,
     4605                'conditional_logic'  => 0,
     4606                'wrapper'            => [
     4607                    'width' => '',
     4608                    'class' => '',
     4609                    'id'    => '',
     4610                ],
     4611                'message'            => '',
     4612                'default_value'      => 0,
     4613                'ui'                 => 1,
     4614                'ui_on_text'         => 'Disable ALL Warning',
     4615                'ui_off_text'        => 'Show the Warnings',
     4616                'lct_class_selector' => '',
     4617                'menu_order'         => 7,
     4618            ],
     4619            [
    45994620                'key'               => 'field_59035e0dd7bf6',
    46004621                'label'             => 'Content Restrictions',
     
    46114632                'placement'         => 'top',
    46124633                'endpoint'          => 1,
    4613                 'menu_order'        => 7,
     4634                'menu_order'        => 8,
    46144635            ],
    46154636            [
     
    46324653                'ui_off_text'        => 'Disable',
    46334654                'lct_class_selector' => '',
    4634                 'menu_order'         => 8,
     4655                'menu_order'         => 9,
    46354656            ],
    46364657            [
     
    46554676                'lct_roles_n_caps'          => '',
    46564677                'lct_roles_n_caps_viewonly' => '',
    4657                 'menu_order'                => 9,
     4678                'menu_order'                => 10,
    46584679            ],
    46594680            [
     
    46764697                'ui_off_text'        => 'Disable',
    46774698                'lct_class_selector' => '',
    4678                 'menu_order'         => 10,
     4699                'menu_order'         => 11,
    46794700            ],
    46804701            [
     
    46974718                'ui_off_text'        => 'Disable',
    46984719                'lct_class_selector' => '',
    4699                 'menu_order'         => 11,
     4720                'menu_order'         => 12,
    47004721            ],
    47014722            [
     
    47324753                'lct_class_selector' => '',
    47334754                'placeholder'        => '',
    4734                 'menu_order'         => 12,
     4755                'menu_order'         => 13,
    47354756            ],
    47364757            [
     
    47534774                'ui_off_text'        => 'Disable',
    47544775                'lct_class_selector' => '',
    4755                 'menu_order'         => 13,
     4776                'menu_order'         => 14,
    47564777            ],
    47574778            [
     
    47884809                'lct_class_selector' => '',
    47894810                'placeholder'        => '',
    4790                 'menu_order'         => 14,
     4811                'menu_order'         => 15,
    47914812            ],
    47924813            [
     
    48094830                'ui_off_text'        => 'Disable',
    48104831                'lct_class_selector' => '',
    4811                 'menu_order'         => 15,
     4832                'menu_order'         => 16,
    48124833            ],
    48134834            [
     
    50655086                    ],
    50665087                ],
    5067                 'menu_order'         => 16,
     5088                'menu_order'         => 17,
    50685089            ],
    50695090            [
     
    50865107                'ui_off_text'        => 'Disable',
    50875108                'lct_class_selector' => '',
    5088                 'menu_order'         => 17,
     5109                'menu_order'         => 18,
    50895110            ],
    50905111            [
     
    53425363                    ],
    53435364                ],
    5344                 'menu_order'         => 18,
     5365                'menu_order'         => 19,
    53455366            ],
    53465367            [
     
    53595380                'placement'         => 'top',
    53605381                'endpoint'          => 0,
    5361                 'menu_order'        => 19,
     5382                'menu_order'        => 20,
    53625383            ],
    53635384            [
     
    53805401                'ui_off_text'        => 'Disable',
    53815402                'lct_class_selector' => '',
    5382                 'menu_order'         => 20,
     5403                'menu_order'         => 21,
    53835404            ],
    53845405            [
     
    54015422                'ui_off_text'        => 'Disable',
    54025423                'lct_class_selector' => '',
    5403                 'menu_order'         => 21,
     5424                'menu_order'         => 22,
    54045425            ],
    54055426            [
     
    54225443                'ui_off_text'        => 'Disable',
    54235444                'lct_class_selector' => '',
    5424                 'menu_order'         => 22,
     5445                'menu_order'         => 23,
    54255446            ],
    54265447            [
     
    54515472                'ui_off_text'        => '',
    54525473                'lct_class_selector' => '',
    5453                 'menu_order'         => 23,
     5474                'menu_order'         => 24,
    54545475            ],
    54555476            [
     
    54855506                'maxlength'          => '',
    54865507                'lct_class_selector' => '',
    5487                 'menu_order'         => 24,
     5508                'menu_order'         => 25,
    54885509            ],
    54895510            [
     
    55065527                'ui_off_text'        => 'Disable',
    55075528                'lct_class_selector' => '',
    5508                 'menu_order'         => 25,
     5529                'menu_order'         => 26,
    55095530            ],
    55105531            [
     
    55355556                'ui_off_text'        => '',
    55365557                'lct_class_selector' => '',
    5537                 'menu_order'         => 26,
     5558                'menu_order'         => 27,
    55385559            ],
    55395560            [
     
    55695590                'maxlength'          => '',
    55705591                'lct_class_selector' => '',
    5571                 'menu_order'         => 27,
     5592                'menu_order'         => 28,
    55725593            ],
    55735594            [
     
    55865607                'placement'         => 'top',
    55875608                'endpoint'          => 0,
    5588                 'menu_order'        => 28,
     5609                'menu_order'        => 29,
    55895610            ],
    55905611            [
     
    56075628                'ui_off_text'        => 'Disable',
    56085629                'lct_class_selector' => '',
    5609                 'menu_order'         => 29,
     5630                'menu_order'         => 30,
    56105631            ],
    56115632            [
     
    56365657                'ui_off_text'        => 'Include',
    56375658                'lct_class_selector' => '',
    5638                 'menu_order'         => 30,
     5659                'menu_order'         => 31,
    56395660            ],
    56405661            [
     
    56535674                'placement'         => 'top',
    56545675                'endpoint'          => 0,
    5655                 'menu_order'        => 31,
     5676                'menu_order'        => 32,
    56565677            ],
    56575678            [
     
    56745695                'ui_off_text'        => 'Off',
    56755696                'lct_class_selector' => '',
    5676                 'menu_order'         => 32,
     5697                'menu_order'         => 33,
    56775698            ],
    56785699            [
     
    56975718                'ui_off_text'        => 'Unlock',
    56985719                'lct_class_selector' => '',
    5699                 'menu_order'         => 33,
     5720                'menu_order'         => 34,
    57005721            ],
    57015722            [
     
    57265747                'multiple'          => 1,
    57275748                'return_format'     => 'array',
    5728                 'menu_order'        => 34,
     5749                'menu_order'        => 35,
    57295750            ],
    57305751            [
     
    57515772                'display_format'    => 'g:i a',
    57525773                'return_format'     => 'g:i a',
    5753                 'menu_order'        => 35,
     5774                'menu_order'        => 36,
    57545775            ],
    57555776            [
     
    57725793                'ui_off_text'        => '',
    57735794                'lct_class_selector' => '',
    5774                 'menu_order'         => 36,
     5795                'menu_order'         => 37,
    57755796            ],
    57765797            [
     
    58015822                'maxlength'          => '',
    58025823                'lct_class_selector' => '',
    5803                 'menu_order'         => 37,
     5824                'menu_order'         => 38,
    58045825            ],
    58055826            [
     
    58225843                'ui_off_text'        => '',
    58235844                'lct_class_selector' => '',
    5824                 'menu_order'         => 38,
     5845                'menu_order'         => 39,
    58255846            ],
    58265847            [
     
    58515872                'maxlength'          => '',
    58525873                'lct_class_selector' => '',
    5853                 'menu_order'         => 39,
     5874                'menu_order'         => 40,
    58545875            ],
    58555876            [
     
    58725893                'ui_off_text'        => 'Disable',
    58735894                'lct_class_selector' => '',
    5874                 'menu_order'         => 40,
     5895                'menu_order'         => 41,
    58755896            ],
    58765897            [
     
    58955916                'lct_roles_n_caps'          => '',
    58965917                'lct_roles_n_caps_viewonly' => '',
    5897                 'menu_order'                => 41,
     5918                'menu_order'                => 42,
    58985919            ],
    58995920            [
     
    59595980                    ],
    59605981                ],
    5961                 'menu_order'         => 42,
     5982                'menu_order'         => 43,
    59625983            ],
    59635984            [
     
    59765997                'placement'         => 'top',
    59775998                'endpoint'          => 0,
    5978                 'menu_order'        => 43,
     5999                'menu_order'        => 44,
    59796000            ],
    59806001            [
     
    60966117                    ],
    60976118                ],
    6098                 'menu_order'         => 44,
     6119                'menu_order'         => 45,
    60996120            ],
    61006121            [
     
    61136134                'placement'         => 'top',
    61146135                'endpoint'          => 0,
    6115                 'menu_order'        => 45,
     6136                'menu_order'        => 46,
    61166137            ],
    61176138            [
     
    61346155                'ui_off_text'        => '',
    61356156                'lct_class_selector' => '',
    6136                 'menu_order'         => 46,
     6157                'menu_order'         => 47,
    61376158            ],
    61386159            [
     
    61636184                'maxlength'          => '',
    61646185                'lct_class_selector' => '',
    6165                 'menu_order'         => 47,
     6186                'menu_order'         => 48,
    61666187            ],
    61676188            [
     
    61926213                'maxlength'          => '',
    61936214                'lct_class_selector' => '',
    6194                 'menu_order'         => 48,
     6215                'menu_order'         => 49,
    61956216            ],
    61966217            [
     
    62276248                'lct_class_selector' => '',
    62286249                'placeholder'        => '',
    6229                 'menu_order'         => 49,
     6250                'menu_order'         => 50,
    62306251            ],
    62316252        ],
     
    62476268        'active'                => true,
    62486269        'description'           => '',
     6270        'show_in_rest'          => 1,
    62496271    ] );
    62506272
  • lct-useful-shortcodes-functions/trunk/code/wp-admin/admin/_admin.php

    r2679272 r2690235  
    6262
    6363        add_filter( 'wp_check_filetype_and_ext', [ $this, 'check_for_needed_filetype' ], 10, 4 );
     64
     65        add_filter( 'lct/check_for_bad_youtubes/check_pages', [ $this, 'disable_warning_notifications' ] );
     66        add_filter( 'lct/check_for_bad_youtubes/check_posts', [ $this, 'disable_warning_notifications' ] );
     67        add_filter( 'lct/check_for_bad_youtubes/check_fusion', [ $this, 'disable_warning_notifications' ] );
     68        add_filter( 'lct/check_for_bad_iframes/check_pages', [ $this, 'disable_warning_notifications' ] );
     69        add_filter( 'lct/check_for_bad_iframes/check_posts', [ $this, 'disable_warning_notifications' ] );
     70        add_filter( 'lct/avada/check_for_bad_avada_assets/google_analytics', [ $this, 'disable_warning_notifications' ] );
     71        add_filter( 'lct/avada/check_for_bad_avada_assets/head_space', [ $this, 'disable_warning_notifications' ] );
     72        add_filter( 'lct/avada/check_for_bad_avada_assets/custom_css', [ $this, 'disable_warning_notifications' ] );
    6473
    6574
     
    15461555        return array_merge( $wp_check_filetype_and_ext, $wp_filetype );
    15471556    }
     1557
     1558
     1559    /**
     1560     * Global setting for content notifications
     1561     *
     1562     * @param bool $do_the_check
     1563     *
     1564     * @return bool
     1565     * @date     2022.03.07
     1566     * @since    2022.2
     1567     * @verified 2022.03.07
     1568     */
     1569    function disable_warning_notifications( $do_the_check ) {
     1570        if ( lct_acf_get_option( 'disable_warning_notifications' ) )
     1571            return false;
     1572        else if ( lct_acf_get_option( 'disable_warning_notifications' ) === false )
     1573            return true;
     1574
     1575
     1576        return $do_the_check;
     1577    }
    15481578}
  • lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php

    r2679272 r2690235  
    44 * Plugin URI: https://www.simplesmithmedia.com
    55 * Description: Shortcodes & Functions that will help make your life easier.
    6  * Version: 2022.1
     6 * Version: 2022.2
    77 * Author: SimpleSmithMedia
    88 * Author URI: https://www.simplesmithmedia.com
  • lct-useful-shortcodes-functions/trunk/readme.txt

    r2679272 r2690235  
    3333
    3434== Changelog ==
     35= 2022.2 =
     36*Release Date - 07 March 2022*
     37
     38* Added:
     39    * add_filter( 'lct/check_for_bad_youtubes/check_pages', [ $this, 'disable_warning_notifications' ] );
     40    * add_filter( 'lct/check_for_bad_youtubes/check_posts', [ $this, 'disable_warning_notifications' ] );
     41    * add_filter( 'lct/check_for_bad_youtubes/check_fusion', [ $this, 'disable_warning_notifications' ] );
     42    * add_filter( 'lct/check_for_bad_iframes/check_pages', [ $this, 'disable_warning_notifications' ] );
     43    * add_filter( 'lct/check_for_bad_iframes/check_posts', [ $this, 'disable_warning_notifications' ] );
     44    * add_filter( 'lct/avada/check_for_bad_avada_assets/google_analytics', [ $this, 'disable_warning_notifications' ] );
     45    * add_filter( 'lct/avada/check_for_bad_avada_assets/head_space', [ $this, 'disable_warning_notifications' ] );
     46    * add_filter( 'lct/avada/check_for_bad_avada_assets/custom_css', [ $this, 'disable_warning_notifications' ] );
     47* Updated:
     48    * lct_mu{}
     49* Improved:
     50    * lct_make_status_name()
     51    * lct_acf_format_value_true_false_display_format()
     52    * lct_acf_format_value_taxonomy()
     53    * lct_acf_loaded{}get_group_of_field()
     54    * lct_Avada_admin{}wp_enqueue_styles()
     55* Moved:
     56    * afwp_acf_base64_decode()
     57
    3558= 2022.1 =
    3659*Release Date - 15 February 2022*
Note: See TracChangeset for help on using the changeset viewer.