Viewing File: /home/cienp/public_html/inct-inovamed/wp-includes/certificates/content/uploads/wyw/customize.zip
PK ]% % error_lognu W+A [11-Jul-2025 09:49:54 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Panel" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-themes-panel.php:17
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-themes-panel.php on line 17
[11-Jul-2025 09:51:30 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Panel" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menus-panel.php:19
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menus-panel.php on line 19
[11-Jul-2025 09:51:36 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-filter-setting.php:19
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-filter-setting.php on line 19
[11-Jul-2025 09:51:42 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-location-control.php:19
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-location-control.php on line 19
[11-Jul-2025 09:52:17 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Section" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-section.php:19
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-section.php on line 19
[11-Jul-2025 09:52:34 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:20
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 20
[12-Aug-2025 18:18:44 America/Fortaleza] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-date-time-control.php:17
Stack trace:
#0 {main}
thrown in /home2/cienp360/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-date-time-control.php on line 17
[28-Aug-2026 07:30:27 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:27 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Panel' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menus-panel.php on line 19
[28-Aug-2026 07:30:28 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:28 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php on line 17
[28-Aug-2026 07:30:29 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:29 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-header-image-control.php on line 17
[28-Aug-2026 07:30:30 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:30 America/Sao_Paulo] PHP Fatal error: Call to undefined function _deprecated_file() in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-new-menu-control.php on line 11
[28-Aug-2026 07:30:31 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:31 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-setting.php on line 21
[28-Aug-2026 07:30:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:33 America/Sao_Paulo] PHP Fatal error: Call to undefined function _deprecated_file() in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-new-menu-section.php on line 11
[28-Aug-2026 07:30:36 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:36 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Cropped_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-site-icon-control.php on line 19
[28-Aug-2026 07:30:41 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:41 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Section' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-section.php on line 19
[28-Aug-2026 07:30:47 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:47 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-control.php on line 17
[28-Aug-2026 07:30:58 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:30:58 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-date-time-control.php on line 17
[28-Aug-2026 07:31:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:31:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-background-image-setting.php on line 17
[28-Aug-2026 07:31:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:31:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-name-control.php on line 17
[28-Aug-2026 07:31:53 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:31:53 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Section' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-sidebar-section.php on line 17
[28-Aug-2026 07:32:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:32:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Upload_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-image-control.php on line 17
[28-Aug-2026 07:32:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:32:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-color-control.php on line 17
[28-Aug-2026 07:32:53 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:32:53 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-media-control.php on line 17
[28-Aug-2026 07:33:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:33:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Media_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-upload-control.php on line 17
[28-Aug-2026 07:33:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:33:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Section' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-themes-section.php on line 19
[28-Aug-2026 07:33:53 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:33:53 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-theme-control.php on line 17
[28-Aug-2026 07:34:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:34:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 20
[28-Aug-2026 07:34:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:34:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-item-control.php on line 17
[28-Aug-2026 07:34:53 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:34:53 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php on line 17
[28-Aug-2026 07:35:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:35:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-location-control.php on line 19
[28-Aug-2026 07:35:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:35:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-background-image-control.php on line 17
[28-Aug-2026 07:35:53 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:35:53 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Panel' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-themes-panel.php on line 17
[28-Aug-2026 07:36:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:36:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-background-position-control.php on line 17
[28-Aug-2026 07:36:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:36:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-widget-form-customize-control.php on line 17
[28-Aug-2026 07:36:53 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:37:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:37:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-header-image-setting.php on line 19
[28-Aug-2026 07:37:29 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:37:29 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-cropped-image-control.php on line 17
[28-Aug-2026 07:37:49 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:38:09 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:38:09 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-widget-area-customize-control.php on line 17
[28-Aug-2026 07:38:25 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:38:25 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-code-editor-control.php on line 17
[28-Aug-2026 07:38:45 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:38:45 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-sidebar-block-editor-control.php on line 18
[28-Aug-2026 07:39:05 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Aug-2026 07:39:05 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-filter-setting.php on line 19
[29-Aug-2026 13:34:00 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:34:00 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-code-editor-control.php on line 17
[29-Aug-2026 13:34:01 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:34:02 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:34:02 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-theme-control.php on line 17
[29-Aug-2026 13:34:03 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:34:03 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-custom-css-setting.php on line 19
[29-Aug-2026 13:34:18 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:34:18 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-filter-setting.php on line 19
[29-Aug-2026 13:34:56 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:34:56 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Media_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-upload-control.php on line 17
[29-Aug-2026 13:35:01 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:35:01 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Upload_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-image-control.php on line 17
[29-Aug-2026 13:35:21 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:35:21 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-header-image-setting.php on line 19
[29-Aug-2026 13:35:36 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:35:36 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-background-position-control.php on line 17
[29-Aug-2026 13:35:41 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:35:41 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-background-image-setting.php on line 17
[29-Aug-2026 13:35:51 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:35:51 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-header-image-control.php on line 17
[29-Aug-2026 13:36:16 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:36:16 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-media-control.php on line 17
[29-Aug-2026 13:36:41 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:36:41 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-cropped-image-control.php on line 17
[29-Aug-2026 13:36:51 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:36:51 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-color-control.php on line 17
[29-Aug-2026 13:37:02 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 13:37:02 America/Sao_Paulo] PHP Fatal error: Call to undefined function _deprecated_file() in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-new-menu-control.php on line 11
[29-Aug-2026 14:34:37 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:34:37 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Section' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-sidebar-section.php on line 17
[29-Aug-2026 14:36:26 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:36:26 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Section' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-themes-section.php on line 19
[29-Aug-2026 14:36:41 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:36:41 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-widget-form-customize-control.php on line 17
[29-Aug-2026 14:37:33 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:37:33 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-control.php on line 17
[29-Aug-2026 14:37:37 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:37:37 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-setting.php on line 21
[29-Aug-2026 14:37:47 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:37:47 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-widget-area-customize-control.php on line 17
[29-Aug-2026 14:38:08 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:38:08 America/Sao_Paulo] PHP Fatal error: Call to undefined function _deprecated_file() in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-new-menu-section.php on line 11
[29-Aug-2026 14:38:13 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:38:13 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-sidebar-block-editor-control.php on line 18
[29-Aug-2026 14:38:43 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:38:43 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-item-control.php on line 17
[29-Aug-2026 14:40:31 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:40:31 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php on line 17
[29-Aug-2026 14:41:07 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:41:07 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Section' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-section.php on line 19
[29-Aug-2026 14:41:24 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:41:24 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-date-time-control.php on line 17
[29-Aug-2026 14:46:39 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:46:39 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-name-control.php on line 17
[29-Aug-2026 14:47:52 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 14:47:52 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Panel' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menus-panel.php on line 19
[29-Aug-2026 15:42:04 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 15:42:09 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 15:42:09 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-background-image-control.php on line 17
[29-Aug-2026 15:43:22 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 15:43:22 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-location-control.php on line 19
[29-Aug-2026 15:43:24 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 15:43:24 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Setting' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 20
[29-Aug-2026 15:43:25 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 15:43:25 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Panel' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-themes-panel.php on line 17
[29-Aug-2026 16:38:05 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 16:38:05 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Cropped_Image_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-site-icon-control.php on line 19
[29-Aug-2026 16:38:05 America/Sao_Paulo] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
[29-Aug-2026 16:38:05 America/Sao_Paulo] PHP Fatal error: Class 'WP_Customize_Control' not found in /home/cienp/public_html/inct-inovamed/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php on line 17
PK ]Ռ+ + ( class-wp-customize-site-icon-control.phpnu W+A <?php
/**
* Customize API: WP_Customize_Site_Icon_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Site Icon control class.
*
* Used only for custom functionality in JavaScript.
*
* @since 4.3.0
*
* @see WP_Customize_Cropped_Image_Control
*/
class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'site_icon';
/**
* Constructor.
*
* @since 4.3.0
*
* @see WP_Customize_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id Control ID.
* @param array $args Optional. Arguments to override class property defaults.
* See WP_Customize_Control::__construct() for information
* on accepted arguments. Default empty array.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 );
}
/**
* Renders a JS template for the content of the site icon control.
*
* @since 4.5.0
*/
public function content_template() {
?>
<# if ( data.label ) { #>
<span class="customize-control-title">{{ data.label }}</span>
<# } #>
<# if ( data.attachment && data.attachment.id ) { #>
<div class="attachment-media-view">
<# if ( data.attachment.sizes ) { #>
<style>
:root{
--site-icon-url: url( '{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}' );
}
</style>
<div class="site-icon-preview customizer">
<div class="direction-wrap">
<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" class="app-icon-preview" alt="{{
data.attachment.alt ?
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image alt text. */
echo wp_json_encode( __( 'App icon preview: Current image: %s' ) )
?>
,
data.attachment.alt
) :
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image filename. */
echo wp_json_encode( __( 'App icon preview: The current image has no alternative text. The file name is: %s' ) );
?>
,
data.attachment.filename
)
}}" />
<div class="site-icon-preview-browser">
<svg role="img" aria-hidden="true" fill="none" xmlns="http://www.w3.org/2000/svg" class="browser-buttons"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 20a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm18 0a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm24-6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z" /></svg>
<div class="site-icon-preview-tab">
<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" class="browser-icon-preview" alt="{{
data.attachment.alt ?
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image alt text. */
echo wp_json_encode( __( 'Browser icon preview: Current image: %s' ) );
?>
,
data.attachment.alt
) :
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image filename. */
echo wp_json_encode( __( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ) );
?>
,
data.attachment.filename
)
}}" />
<div class="site-icon-preview-site-title" aria-hidden="true"><# print( '<?php echo esc_js( get_bloginfo( 'name' ) ); ?>' ) #></div>
<svg role="img" aria-hidden="true" fill="none" xmlns="http://www.w3.org/2000/svg" class="close-button">
<path d="M12 13.0607L15.7123 16.773L16.773 15.7123L13.0607 12L16.773 8.28772L15.7123 7.22706L12 10.9394L8.28771 7.22705L7.22705 8.28771L10.9394 12L7.22706 15.7123L8.28772 16.773L12 13.0607Z" />
</svg>
</div>
</div>
</div>
</div>
</div>
<# } #>
<div class="actions">
<# if ( data.canUpload ) { #>
<button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>
<button type="button" class="button upload-button"><?php echo $this->button_labels['change']; ?></button>
<# } #>
</div>
</div>
<# } else { #>
<div class="attachment-media-view">
<# if ( data.canUpload ) { #>
<button type="button" class="upload-button button"><?php echo $this->button_labels['site_icon']; ?></button>
<# } #>
<div class="actions">
<# if ( data.defaultAttachment ) { #>
<button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button>
<# } #>
</div>
</div>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<?php
}
}
PK ] / class-wp-customize-background-image-setting.phpnu W+A <?php
/**
* Customize API: WP_Customize_Background_Image_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customizer Background Image Setting class.
*
* @since 3.4.0
*
* @see WP_Customize_Setting
*/
final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting {
/**
* Unique string identifier for the setting.
*
* @since 3.4.0
* @var string
*/
public $id = 'background_image_thumb';
/**
* @since 3.4.0
*
* @param mixed $value The value to update. Not used.
*/
public function update( $value ) {
remove_theme_mod( 'background_image_thumb' );
}
}
PK ] 0 class-wp-customize-nav-menu-location-control.phpnu W+A <?php
/**
* Customize API: WP_Customize_Nav_Menu_Location_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Menu Location Control Class.
*
* This custom control is only needed for JS.
*
* @since 4.3.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu_location';
/**
* Location ID.
*
* @since 4.3.0
* @var string
*/
public $location_id = '';
/**
* Refresh the parameters passed to JavaScript via JSON.
*
* @since 4.3.0
*
* @see WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['locationId'] = $this->location_id;
}
/**
* Render content just like a normal select control.
*
* @since 4.3.0
* @since 4.9.0 Added a button to create menus.
*/
public function render_content() {
if ( empty( $this->choices ) ) {
return;
}
$value_hidden_class = '';
$no_value_hidden_class = '';
if ( $this->value() ) {
$value_hidden_class = ' hidden';
} else {
$no_value_hidden_class = ' hidden';
}
?>
<label>
<?php if ( ! empty( $this->label ) ) : ?>
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
<?php endif; ?>
<?php if ( ! empty( $this->description ) ) : ?>
<span class="description customize-control-description"><?php echo $this->description; ?></span>
<?php endif; ?>
<select <?php $this->link(); ?>>
<?php
foreach ( $this->choices as $value => $label ) :
echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . esc_html( $label ) . '</option>';
endforeach;
?>
</select>
</label>
<button type="button" class="button-link create-menu<?php echo $value_hidden_class; ?>" data-location-id="<?php echo esc_attr( $this->location_id ); ?>" aria-label="<?php esc_attr_e( 'Create a menu for this location' ); ?>"><?php _e( '+ Create New Menu' ); ?></button>
<button type="button" class="button-link edit-menu<?php echo $no_value_hidden_class; ?>" aria-label="<?php esc_attr_e( 'Edit selected menu' ); ?>"><?php _e( 'Edit Menu' ); ?></button>
<?php
}
}
PK ]p] ] + class-wp-customize-header-image-control.phpnu W+A <?php
/**
* Customize API: WP_Customize_Header_Image_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Header Image Control class.
*
* @since 3.4.0
*
* @see WP_Customize_Image_Control
*/
class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
/**
* Customize control type.
*
* @since 4.2.0
* @var string
*/
public $type = 'header';
/**
* Uploaded header images.
*
* @since 3.9.0
* @var string
*/
public $uploaded_headers;
/**
* Default header images.
*
* @since 3.9.0
* @var string
*/
public $default_headers;
/**
* Constructor.
*
* @since 3.4.0
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
*/
public function __construct( $manager ) {
parent::__construct(
$manager,
'header_image',
array(
'label' => __( 'Header Image' ),
'settings' => array(
'default' => 'header_image',
'data' => 'header_image_data',
),
'section' => 'header_image',
'removed' => 'remove-header',
'get_url' => 'get_header_image',
)
);
}
/**
*/
public function enqueue() {
wp_enqueue_media();
wp_enqueue_script( 'customize-views' );
$this->prepare_control();
wp_localize_script(
'customize-views',
'_wpCustomizeHeader',
array(
'data' => array(
'width' => absint( get_theme_support( 'custom-header', 'width' ) ),
'height' => absint( get_theme_support( 'custom-header', 'height' ) ),
'flex-width' => absint( get_theme_support( 'custom-header', 'flex-width' ) ),
'flex-height' => absint( get_theme_support( 'custom-header', 'flex-height' ) ),
'currentImgSrc' => $this->get_current_image_src(),
),
'nonces' => array(
'add' => wp_create_nonce( 'header-add' ),
'remove' => wp_create_nonce( 'header-remove' ),
),
'uploads' => $this->uploaded_headers,
'defaults' => $this->default_headers,
)
);
parent::enqueue();
}
/**
* @global Custom_Image_Header $custom_image_header
*/
public function prepare_control() {
global $custom_image_header;
if ( empty( $custom_image_header ) ) {
return;
}
add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_header_image_template' ) );
// Process default headers and uploaded headers.
$custom_image_header->process_default_headers();
$this->default_headers = $custom_image_header->get_default_header_images();
$this->uploaded_headers = $custom_image_header->get_uploaded_header_images();
}
/**
*/
public function print_header_image_template() {
?>
<script type="text/template" id="tmpl-header-choice">
<# if (data.random) { #>
<button type="button" class="button display-options random">
<span class="dashicons dashicons-randomize dice"></span>
<# if ( data.type === 'uploaded' ) { #>
<?php _e( 'Randomize uploaded headers' ); ?>
<# } else if ( data.type === 'default' ) { #>
<?php _e( 'Randomize suggested headers' ); ?>
<# } #>
</button>
<# } else { #>
<button type="button" class="choice thumbnail"
data-customize-image-value="{{data.header.url}}"
data-customize-header-image-data="{{JSON.stringify(data.header)}}">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Set image' );
?>
</span>
<img src="{{data.header.thumbnail_url}}" alt="{{data.header.alt_text || data.header.description}}" />
</button>
<# if ( data.type === 'uploaded' ) { #>
<button type="button" class="dashicons dashicons-no close">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Remove image' );
?>
</span>
</button>
<# } #>
<# } #>
</script>
<script type="text/template" id="tmpl-header-current">
<# if (data.choice) { #>
<# if (data.random) { #>
<div class="placeholder">
<span class="dashicons dashicons-randomize dice"></span>
<# if ( data.type === 'uploaded' ) { #>
<?php _e( 'Randomizing uploaded headers' ); ?>
<# } else if ( data.type === 'default' ) { #>
<?php _e( 'Randomizing suggested headers' ); ?>
<# } #>
</div>
<# } else { #>
<img src="{{data.header.thumbnail_url}}" alt="{{data.header.alt_text || data.header.description}}" />
<# } #>
<# } #>
</script>
<?php
}
/**
* @return string|void
*/
public function get_current_image_src() {
$src = $this->value();
if ( isset( $this->get_url ) ) {
$src = call_user_func( $this->get_url, $src );
return $src;
}
}
/**
*/
public function render_content() {
$visibility = $this->get_current_image_src() ? '' : ' style="display:none" ';
$width = absint( get_theme_support( 'custom-header', 'width' ) );
$height = absint( get_theme_support( 'custom-header', 'height' ) );
?>
<div class="customize-control-content">
<?php
if ( current_theme_supports( 'custom-header', 'video' ) ) {
echo '<span class="customize-control-title">' . $this->label . '</span>';
}
?>
<div class="customize-control-notifications-container"></div>
<p class="customizer-section-intro customize-control-description">
<?php
if ( current_theme_supports( 'custom-header', 'video' ) ) {
_e( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' );
} elseif ( $width && $height ) {
printf(
/* translators: %s: Header size in pixels. */
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s × %s</strong>', $width, $height )
);
} elseif ( $width ) {
printf(
/* translators: %s: Header width in pixels. */
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s</strong>', $width )
);
} else {
printf(
/* translators: %s: Header height in pixels. */
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s</strong>', $height )
);
}
?>
</p>
<div class="current">
<label for="header_image-button">
<span class="customize-control-title">
<?php _e( 'Current header' ); ?>
</span>
</label>
<div class="container">
</div>
</div>
<div class="actions">
<?php if ( current_user_can( 'upload_files' ) ) : ?>
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
<button type="button" class="button new <?php echo ! $this->get_current_image_src() ? '' : 'customize-header-image-not-selected'; ?>" id="header_image-button" aria-label="<?php esc_attr_e( 'Add Header Image' ); ?>"><?php _e( 'Add Image' ); ?></button>
<?php endif; ?>
</div>
<div class="choices">
<span class="customize-control-title header-previously-uploaded">
<?php _ex( 'Previously uploaded', 'custom headers' ); ?>
</span>
<div class="uploaded">
<div class="list">
</div>
</div>
<span class="customize-control-title header-default">
<?php _ex( 'Suggested', 'custom headers' ); ?>
</span>
<div class="default">
<div class="list">
</div>
</div>
</div>
</div>
<?php
}
}
PK ]HL`{L L % class-wp-customize-filter-setting.phpnu W+A <?php
/**
* Customize API: WP_Customize_Filter_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* A setting that is used to filter a value, but will not save the results.
*
* Results should be properly handled using another setting or callback.
*
* @since 3.4.0
*
* @see WP_Customize_Setting
*/
class WP_Customize_Filter_Setting extends WP_Customize_Setting {
/**
* Saves the value of the setting, using the related API.
*
* @since 3.4.0
*
* @param mixed $value The value to update.
*/
public function update( $value ) {}
}
PK ]K + class-wp-customize-header-image-setting.phpnu W+A <?php
/**
* Customize API: WP_Customize_Header_Image_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* A setting that is used to filter a value, but will not save the results.
*
* Results should be properly handled using another setting or callback.
*
* @since 3.4.0
*
* @see WP_Customize_Setting
*/
final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting {
/**
* Unique string identifier for the setting.
*
* @since 3.4.0
* @var string
*/
public $id = 'header_image_data';
/**
* @since 3.4.0
*
* @global Custom_Image_Header $custom_image_header
*
* @param mixed $value The value to update.
*/
public function update( $value ) {
global $custom_image_header;
// If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin().
if ( empty( $custom_image_header ) ) {
require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
$args = get_theme_support( 'custom-header' );
$admin_head_callback = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] : null;
$admin_preview_callback = isset( $args[0]['admin-preview-callback'] ) ? $args[0]['admin-preview-callback'] : null;
$custom_image_header = new Custom_Image_Header( $admin_head_callback, $admin_preview_callback );
}
/*
* If the value doesn't exist (removed or random),
* use the header_image value.
*/
if ( ! $value ) {
$value = $this->manager->get_setting( 'header_image' )->post_value();
}
if ( is_array( $value ) && isset( $value['choice'] ) ) {
$custom_image_header->set_header_image( $value['choice'] );
} else {
$custom_image_header->set_header_image( $value );
}
}
}
PK ]ܼH ' class-wp-customize-new-menu-section.phpnu W+A <?php
/**
* Customize API: WP_Customize_New_Menu_Section class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
* @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
*/
_deprecated_file( basename( __FILE__ ), '4.9.0' );
/**
* Customize Menu Section Class
*
* @since 4.3.0
* @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
*
* @see WP_Customize_Section
*/
class WP_Customize_New_Menu_Section extends WP_Customize_Section {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'new_menu';
/**
* Constructor.
*
* Any supplied $args override class property defaults.
*
* @since 4.9.0
* @deprecated 4.9.0
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id A specific ID of the section.
* @param array $args Section arguments.
*/
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
_deprecated_function( __METHOD__, '4.9.0' );
parent::__construct( $manager, $id, $args );
}
/**
* Render the section, and the controls that have been added to it.
*
* @since 4.3.0
* @deprecated 4.9.0
*/
protected function render() {
_deprecated_function( __METHOD__, '4.9.0' );
?>
<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
<button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false">
<?php echo esc_html( $this->title ); ?>
</button>
<ul class="new-menu-section-content"></ul>
</li>
<?php
}
}
PK ]9
z+ + % class-wp-customize-themes-section.phpnu W+A <?php
/**
* Customize API: WP_Customize_Themes_Section class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Themes Section class.
*
* A UI container for theme controls, which are displayed within sections.
*
* @since 4.2.0
*
* @see WP_Customize_Section
*/
class WP_Customize_Themes_Section extends WP_Customize_Section {
/**
* Section type.
*
* @since 4.2.0
* @var string
*/
public $type = 'themes';
/**
* Theme section action.
*
* Defines the type of themes to load (installed, wporg, etc.).
*
* @since 4.9.0
* @var string
*/
public $action = '';
/**
* Theme section filter type.
*
* Determines whether filters are applied to loaded (local) themes or by initiating a new remote query (remote).
* When filtering is local, the initial themes query is not paginated by default.
*
* @since 4.9.0
* @var string
*/
public $filter_type = 'local';
/**
* Gets section parameters for JS.
*
* @since 4.9.0
* @return array Exported parameters.
*/
public function json() {
$exported = parent::json();
$exported['action'] = $this->action;
$exported['filter_type'] = $this->filter_type;
return $exported;
}
/**
* Renders a themes section as a JS template.
*
* The template is only rendered by PHP once, so all actions are prepared at once on the server side.
*
* @since 4.9.0
*/
protected function render_template() {
?>
<li id="accordion-section-{{ data.id }}" class="theme-section">
<button type="button" class="customize-themes-section-title themes-section-{{ data.id }}">{{ data.title }}</button>
<?php if ( current_user_can( 'install_themes' ) || is_multisite() ) : // @todo Upload support. ?>
<?php endif; ?>
<div class="customize-themes-section themes-section-{{ data.id }} control-section-content themes-php">
<div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme Details' ); ?>"></div>
<div class="theme-browser rendered">
<div class="customize-preview-header themes-filter-bar">
<?php $this->filter_bar_content_template(); ?>
</div>
<?php $this->filter_drawer_content_template(); ?>
<div class="error unexpected-error" style="display: none; ">
<p>
<?php
printf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
__( 'https://wordpress.org/support/forums/' )
);
?>
</p>
</div>
<ul class="themes">
</ul>
<p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
<p class="no-themes-local">
<?php
printf(
/* translators: %s: "Search WordPress.org themes" button text. */
__( 'No themes found. Try a different search, or %s.' ),
sprintf( '<button type="button" class="button-link search-dotorg-themes">%s</button>', __( 'Search WordPress.org themes' ) )
);
?>
</p>
<p class="spinner"></p>
</div>
</div>
</li>
<?php
}
/**
* Renders the filter bar portion of a themes section as a JS template.
*
* The template is only rendered by PHP once, so all actions are prepared at once on the server side.
* The filter bar container is rendered by {@see render_template()}.
*
* @since 4.9.0
*/
protected function filter_bar_content_template() {
?>
<button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Go to theme sources' ); ?></button>
<# if ( 'wporg' === data.action ) { #>
<div class="themes-filter-container">
<label for="wp-filter-search-input-{{ data.id }}"><?php _e( 'Search themes' ); ?></label>
<div class="search-form-input">
<input type="search" id="wp-filter-search-input-{{ data.id }}" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search">
<div class="search-icon" aria-hidden="true"></div>
<span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'The search results will be updated as you type.' );
?>
</span>
</div>
</div>
<# } else { #>
<div class="themes-filter-container">
<label for="{{ data.id }}-themes-filter"><?php _e( 'Search themes' ); ?></label>
<div class="search-form-input">
<input type="search" id="{{ data.id }}-themes-filter" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" />
<div class="search-icon" aria-hidden="true"></div>
<span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'The search results will be updated as you type.' );
?>
</span>
</div>
</div>
<# } #>
<div class="filter-themes-wrapper">
<# if ( 'wporg' === data.action ) { #>
<button type="button" class="button feature-filter-toggle">
<span class="filter-count-0"><?php _e( 'Filter themes' ); ?></span><span class="filter-count-filters">
<?php
/* translators: %s: Number of filters selected. */
printf( __( 'Filter themes (%s)' ), '<span class="theme-filter-count">0</span>' );
?>
</span>
</button>
<# } #>
<div class="filter-themes-count">
<span class="themes-displayed">
<?php
/* translators: %s: Number of themes displayed. */
printf( __( '%s themes' ), '<span class="theme-count">0</span>' );
?>
</span>
</div>
</div>
<?php
}
/**
* Renders the filter drawer portion of a themes section as a JS template.
*
* The filter bar container is rendered by {@see render_template()}.
*
* @since 4.9.0
*/
protected function filter_drawer_content_template() {
/*
* @todo Use the .org API instead of the local core feature list.
* The .org API is currently outdated and will be reconciled when the .org themes directory is next redesigned.
*/
$feature_list = get_theme_feature_list( false );
?>
<# if ( 'wporg' === data.action ) { #>
<div class="filter-drawer filter-details">
<?php foreach ( $feature_list as $feature_name => $features ) : ?>
<fieldset class="filter-group">
<legend><?php echo esc_html( $feature_name ); ?></legend>
<div class="filter-group-feature">
<?php foreach ( $features as $feature => $feature_name ) : ?>
<input type="checkbox" id="filter-id-<?php echo esc_attr( $feature ); ?>" value="<?php echo esc_attr( $feature ); ?>" />
<label for="filter-id-<?php echo esc_attr( $feature ); ?>"><?php echo esc_html( $feature_name ); ?></label>
<?php endforeach; ?>
</div>
</fieldset>
<?php endforeach; ?>
</div>
<# } #>
<?php
}
}
PK ]I4 2 class-wp-customize-background-position-control.phpnu W+A <?php
/**
* Customize API: WP_Customize_Background_Position_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.7.0
*/
/**
* Customize Background Position Control class.
*
* @since 4.7.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Background_Position_Control extends WP_Customize_Control {
/**
* Type.
*
* @since 4.7.0
* @var string
*/
public $type = 'background_position';
/**
* Don't render the control content from PHP, as it's rendered via JS on load.
*
* @since 4.7.0
*/
public function render_content() {}
/**
* Render a JS template for the content of the position control.
*
* @since 4.7.0
*/
public function content_template() {
$options = array(
array(
'left top' => array(
'label' => __( 'Top Left' ),
'icon' => 'dashicons dashicons-arrow-left-alt',
),
'center top' => array(
'label' => __( 'Top' ),
'icon' => 'dashicons dashicons-arrow-up-alt',
),
'right top' => array(
'label' => __( 'Top Right' ),
'icon' => 'dashicons dashicons-arrow-right-alt',
),
),
array(
'left center' => array(
'label' => __( 'Left' ),
'icon' => 'dashicons dashicons-arrow-left-alt',
),
'center center' => array(
'label' => __( 'Center' ),
'icon' => 'background-position-center-icon',
),
'right center' => array(
'label' => __( 'Right' ),
'icon' => 'dashicons dashicons-arrow-right-alt',
),
),
array(
'left bottom' => array(
'label' => __( 'Bottom Left' ),
'icon' => 'dashicons dashicons-arrow-left-alt',
),
'center bottom' => array(
'label' => __( 'Bottom' ),
'icon' => 'dashicons dashicons-arrow-down-alt',
),
'right bottom' => array(
'label' => __( 'Bottom Right' ),
'icon' => 'dashicons dashicons-arrow-right-alt',
),
),
);
?>
<# if ( data.label ) { #>
<span class="customize-control-title">{{{ data.label }}}</span>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<div class="customize-control-content">
<fieldset>
<legend class="screen-reader-text"><span>
<?php
/* translators: Hidden accessibility text. */
_e( 'Image Position' );
?>
</span></legend>
<div class="background-position-control">
<?php foreach ( $options as $group ) : ?>
<div class="button-group">
<?php foreach ( $group as $value => $input ) : ?>
<label>
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>">
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
</label>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</fieldset>
</div>
<?php
}
}
PK ]K
$
* class-wp-customize-code-editor-control.phpnu W+A <?php
/**
* Customize API: WP_Customize_Code_Editor_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.9.0
*/
/**
* Customize Code Editor Control class.
*
* @since 4.9.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Code_Editor_Control extends WP_Customize_Control {
/**
* Customize control type.
*
* @since 4.9.0
* @var string
*/
public $type = 'code_editor';
/**
* Type of code that is being edited.
*
* @since 4.9.0
* @var string
*/
public $code_type = '';
/**
* Code editor settings.
*
* @see wp_enqueue_code_editor()
* @since 4.9.0
* @var array|false
*/
public $editor_settings = array();
/**
* Enqueue control related scripts/styles.
*
* @since 4.9.0
*/
public function enqueue() {
$this->editor_settings = wp_enqueue_code_editor(
array_merge(
array(
'type' => $this->code_type,
'codemirror' => array(
'indentUnit' => 2,
'tabSize' => 2,
),
),
$this->editor_settings
)
);
}
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 4.9.0
*
* @see WP_Customize_Control::json()
*
* @return array Array of parameters passed to the JavaScript.
*/
public function json() {
$json = parent::json();
$json['editor_settings'] = $this->editor_settings;
$json['input_attrs'] = $this->input_attrs;
return $json;
}
/**
* Don't render the control content from PHP, as it's rendered via JS on load.
*
* @since 4.9.0
*/
public function render_content() {}
/**
* Render a JS template for control display.
*
* @since 4.9.0
*/
public function content_template() {
?>
<# var elementIdPrefix = 'el' + String( Math.random() ); #>
<# if ( data.label ) { #>
<label for="{{ elementIdPrefix }}_editor" class="customize-control-title">
{{ data.label }}
</label>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<div class="customize-control-notifications-container"></div>
<textarea id="{{ elementIdPrefix }}_editor"
<# _.each( _.extend( { 'class': 'code' }, data.input_attrs ), function( value, key ) { #>
{{{ key }}}="{{ value }}"
<# }); #>
></textarea>
<?php
}
}
PK ]- ) class-wp-customize-custom-css-setting.phpnu W+A <?php
/**
* Customize API: WP_Customize_Custom_CSS_Setting class
*
* This handles validation, sanitization and saving of the value.
*
* @package WordPress
* @subpackage Customize
* @since 4.7.0
*/
/**
* Custom Setting to handle WP Custom CSS.
*
* @since 4.7.0
*
* @see WP_Customize_Setting
*/
final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
/**
* The setting type.
*
* @since 4.7.0
* @var string
*/
public $type = 'custom_css';
/**
* Setting Transport
*
* @since 4.7.0
* @var string
*/
public $transport = 'postMessage';
/**
* Capability required to edit this setting.
*
* @since 4.7.0
* @var string
*/
public $capability = 'edit_css';
/**
* Stylesheet
*
* @since 4.7.0
* @var string
*/
public $stylesheet = '';
/**
* WP_Customize_Custom_CSS_Setting constructor.
*
* @since 4.7.0
*
* @throws Exception If the setting ID does not match the pattern `custom_css[$stylesheet]`.
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id A specific ID of the setting.
* Can be a theme mod or option name.
* @param array $args Setting arguments.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
if ( 'custom_css' !== $this->id_data['base'] ) {
throw new Exception( 'Expected custom_css id_base.' );
}
if ( 1 !== count( $this->id_data['keys'] ) || empty( $this->id_data['keys'][0] ) ) {
throw new Exception( 'Expected single stylesheet key.' );
}
$this->stylesheet = $this->id_data['keys'][0];
}
/**
* Add filter to preview post value.
*
* @since 4.7.9
*
* @return bool False when preview short-circuits due no change needing to be previewed.
*/
public function preview() {
if ( $this->is_previewed ) {
return false;
}
$this->is_previewed = true;
add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );
return true;
}
/**
* Filters `wp_get_custom_css` for applying the customized value.
*
* This is used in the preview when `wp_get_custom_css()` is called for rendering the styles.
*
* @since 4.7.0
*
* @see wp_get_custom_css()
*
* @param string $css Original CSS.
* @param string $stylesheet Current stylesheet.
* @return string CSS.
*/
public function filter_previewed_wp_get_custom_css( $css, $stylesheet ) {
if ( $stylesheet === $this->stylesheet ) {
$customized_value = $this->post_value( null );
if ( ! is_null( $customized_value ) ) {
$css = $customized_value;
}
}
return $css;
}
/**
* Fetch the value of the setting. Will return the previewed value when `preview()` is called.
*
* @since 4.7.0
*
* @see WP_Customize_Setting::value()
*
* @return string
*/
public function value() {
if ( $this->is_previewed ) {
$post_value = $this->post_value( null );
if ( null !== $post_value ) {
return $post_value;
}
}
$id_base = $this->id_data['base'];
$value = '';
$post = wp_get_custom_css_post( $this->stylesheet );
if ( $post ) {
$value = $post->post_content;
}
if ( empty( $value ) ) {
$value = $this->default;
}
/** This filter is documented in wp-includes/class-wp-customize-setting.php */
$value = apply_filters( "customize_value_{$id_base}", $value, $this );
return $value;
}
/**
* Validate a received value for being valid CSS.
*
* Checks for imbalanced braces, brackets, and comments.
* Notifications are rendered when the customizer state is saved.
*
* @since 4.7.0
* @since 4.9.0 Checking for balanced characters has been moved client-side via linting in code editor.
* @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support.
*
* @param string $value CSS to validate.
* @return true|WP_Error True if the input was validated, otherwise WP_Error.
*/
public function validate( $value ) {
// Restores the more descriptive, specific name for use within this method.
$css = $value;
$validity = new WP_Error();
if ( preg_match( '#</?\w+#', $css ) ) {
$validity->add( 'illegal_markup', __( 'Markup is not allowed in CSS.' ) );
}
if ( ! $validity->has_errors() ) {
$validity = parent::validate( $css );
}
return $validity;
}
/**
* Store the CSS setting value in the custom_css custom post type for the stylesheet.
*
* @since 4.7.0
* @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support.
*
* @param string $value CSS to update.
* @return int|false The post ID or false if the value could not be saved.
*/
public function update( $value ) {
// Restores the more descriptive, specific name for use within this method.
$css = $value;
if ( empty( $css ) ) {
$css = '';
}
$r = wp_update_custom_css_post(
$css,
array(
'stylesheet' => $this->stylesheet,
)
);
if ( is_wp_error( $r ) ) {
return false;
}
$post_id = $r->ID;
// Cache post ID in theme mod for performance to avoid additional DB query.
if ( $this->manager->get_stylesheet() === $this->stylesheet ) {
set_theme_mod( 'custom_css_post_id', $post_id );
}
return $post_id;
}
}
PK ]Mf# # &