Plugin Directory

Changeset 2834455


Ignore:
Timestamp:
12/15/2022 01:23:18 PM (3 years ago)
Author:
rockcontentplatform
Message:

Correção de escopo de função.

Location:
rock-content
Files:
84 added
5 edited

Legend:

Unmodified
Added
Removed
  • rock-content/tags/3.0.2/README.txt

    r2834020 r2834455  
    8383
    8484= 3.0.2 =
    85 * Correção de chamada de uma função.
     85* Correção de chamada de função.
    8686
    8787== Upgrade Notice ==
  • rock-content/tags/3.0.2/inc/Integrations/RockAnalytics.php

    r2834023 r2834455  
    4343            'post_date'           => strtotime( $post->post_date ),
    4444            'post_author'         => get_the_author_meta( 'display_name', $post->post_author ),
    45             'categories_json'     => wp_json_encode( $this->setup_chorus_analytics_get_post_categories( $post->ID ) ),
    46             'tags_json'           => wp_json_encode( $this->setup_chorus_analytics_get_post_tags( $post->ID ) ),
    47             'word_count'          => $this->setup_chorus_analytics_get_post_word_count( $post->ID ),
     45            'categories_json'     => wp_json_encode( self::setup_chorus_analytics_get_post_categories( $post->ID ) ),
     46            'tags_json'           => wp_json_encode( self::setup_chorus_analytics_get_post_tags( $post->ID ) ),
     47            'word_count'          => self::setup_chorus_analytics_get_post_word_count( $post->ID ),
    4848            'published_by_studio' => ( get_post_meta( $post->ID, 'published_by_studio', true ) ? 'true' : 'false' ),
    4949        );
     
    5757     * @since    1.0.0
    5858     */
    59     public function setup_chorus_analytics_get_post_categories( $post_id ) {
     59    public static function setup_chorus_analytics_get_post_categories( $post_id ) {
    6060        $categories = get_the_category( $post_id );
    6161        if ( ! $categories ) {
     
    7878     * @since    1.0.0
    7979     */
    80     public function setup_chorus_analytics_get_post_tags( $post_id ) {
     80    public static function setup_chorus_analytics_get_post_tags( $post_id ) {
    8181        $tags = get_the_tags( $post_id );
    8282        if ( ! $tags ) {
     
    9999     * @since    1.0.0
    100100     */
    101     public function setup_chorus_analytics_get_post_word_count( $post_id ) {
     101    public static function setup_chorus_analytics_get_post_word_count( $post_id ) {
    102102        $content = get_post( $post_id )->post_content;
    103103        if ( ! $content ) {
  • rock-content/trunk/README.txt

    r2834020 r2834455  
    55Requires at least: 3.5.0
    66Tested up to: 6.0.3
    7 Stable tag: 3.0.2
     7Stable tag: 3.0.3
    88
    99Este fantástico plugin permite integrar o seu blog Wordpress com as plataformas de marketing de conteúdo da [Rock Content](https://rockcontent.com/).
     
    8383
    8484= 3.0.2 =
    85 * Correção de chamada de uma função.
     85* Correção de chamada de função.
     86
     87= 3.0.3 =
     88* Correção de escopo de função.
    8689
    8790== Upgrade Notice ==
  • rock-content/trunk/RockContent.php

    r2834020 r2834455  
    1616 * Plugin URI:        https://rockcontent.com/
    1717 * Description:       Este fantástico plugin permite integrar o seu blog WordPress com a plataforma Rock Content.
    18  * Version:           3.0.2
     18 * Version:           3.0.3
    1919 * Author:            Rock Content
    2020 * Author URI:        https://rockcontent.com/
     
    3434define( 'RCP_NAME', 'rock-content' );
    3535
    36 define( 'RCP_VERSION', '3.0.2' );
     36define( 'RCP_VERSION', '3.0.3' );
    3737
    3838define( 'RCP_NAME_DIR', plugin_dir_path( __FILE__ ) );
  • rock-content/trunk/inc/Integrations/RockAnalytics.php

    r2834023 r2834455  
    4343            'post_date'           => strtotime( $post->post_date ),
    4444            'post_author'         => get_the_author_meta( 'display_name', $post->post_author ),
    45             'categories_json'     => wp_json_encode( $this->setup_chorus_analytics_get_post_categories( $post->ID ) ),
    46             'tags_json'           => wp_json_encode( $this->setup_chorus_analytics_get_post_tags( $post->ID ) ),
    47             'word_count'          => $this->setup_chorus_analytics_get_post_word_count( $post->ID ),
     45            'categories_json'     => wp_json_encode( self::setup_chorus_analytics_get_post_categories( $post->ID ) ),
     46            'tags_json'           => wp_json_encode( self::setup_chorus_analytics_get_post_tags( $post->ID ) ),
     47            'word_count'          => self::setup_chorus_analytics_get_post_word_count( $post->ID ),
    4848            'published_by_studio' => ( get_post_meta( $post->ID, 'published_by_studio', true ) ? 'true' : 'false' ),
    4949        );
     
    5757     * @since    1.0.0
    5858     */
    59     public function setup_chorus_analytics_get_post_categories( $post_id ) {
     59    public static function setup_chorus_analytics_get_post_categories( $post_id ) {
    6060        $categories = get_the_category( $post_id );
    6161        if ( ! $categories ) {
     
    7878     * @since    1.0.0
    7979     */
    80     public function setup_chorus_analytics_get_post_tags( $post_id ) {
     80    public static function setup_chorus_analytics_get_post_tags( $post_id ) {
    8181        $tags = get_the_tags( $post_id );
    8282        if ( ! $tags ) {
     
    9999     * @since    1.0.0
    100100     */
    101     public function setup_chorus_analytics_get_post_word_count( $post_id ) {
     101    public static function setup_chorus_analytics_get_post_word_count( $post_id ) {
    102102        $content = get_post( $post_id )->post_content;
    103103        if ( ! $content ) {
Note: See TracChangeset for help on using the changeset viewer.