Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/share/ruby/rss
File: content.rb
# frozen_string_literal: false
[0] Fix | Delete
require_relative "rss"
[1] Fix | Delete
[2] Fix | Delete
module RSS
[3] Fix | Delete
# The prefix for the Content XML namespace.
[4] Fix | Delete
CONTENT_PREFIX = 'content'
[5] Fix | Delete
# The URI of the Content specification.
[6] Fix | Delete
CONTENT_URI = "http://purl.org/rss/1.0/modules/content/"
[7] Fix | Delete
[8] Fix | Delete
module ContentModel
[9] Fix | Delete
extend BaseModel
[10] Fix | Delete
[11] Fix | Delete
ELEMENTS = ["#{CONTENT_PREFIX}_encoded"]
[12] Fix | Delete
[13] Fix | Delete
def self.append_features(klass)
[14] Fix | Delete
super
[15] Fix | Delete
[16] Fix | Delete
klass.install_must_call_validator(CONTENT_PREFIX, CONTENT_URI)
[17] Fix | Delete
ELEMENTS.each do |full_name|
[18] Fix | Delete
name = full_name[(CONTENT_PREFIX.size + 1)..-1]
[19] Fix | Delete
klass.install_text_element(name, CONTENT_URI, "?", full_name)
[20] Fix | Delete
end
[21] Fix | Delete
end
[22] Fix | Delete
end
[23] Fix | Delete
[24] Fix | Delete
prefix_size = CONTENT_PREFIX.size + 1
[25] Fix | Delete
ContentModel::ELEMENTS.each do |full_name|
[26] Fix | Delete
name = full_name[prefix_size..-1]
[27] Fix | Delete
BaseListener.install_get_text_element(CONTENT_URI, name, full_name)
[28] Fix | Delete
end
[29] Fix | Delete
end
[30] Fix | Delete
[31] Fix | Delete
require 'rss/content/1.0'
[32] Fix | Delete
require 'rss/content/2.0'
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function