/
scamii
/
scam-dev
Обзор
Документация
Войти
/
scamii
/
scam-dev
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
develop
plugins/scam-dev-gallery/render.php
16 строк
476 B
github-actions[bot]
fix: remediate repository audit findings
10 июл 2026, 07:12
10 июл 2026, 07:12
8b37701
Код
Авторство
О чём код?
<?php /** * Dynamic gallery block renderer. * * @package Scam_Dev_Gallery */ if ( ! defined( 'ABSPATH' ) ) { exit; } $columns = isset( $attributes['cols'] ) ? absint( $attributes['cols'] ) : 3; $gallery_id = isset( $attributes['galleryId'] ) ? absint( $attributes['galleryId'] ) : 0; $gallery_ids = $gallery_id ? array( $gallery_id ) : array(); echo scamdev_gallery_render( $gallery_ids, $columns ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped